The purpose of the experiment: (1) To be proficient in the commonly used inner sorting methods and to compare them.
Experiment content: Use random function to generate N random integers (above 20000), and sort these numbers in a variety of ways. Requirements: (1) At least three methods are used to solve the above problems (hint, the methods that can be used are Hill sorting, bubble sorting, quick sorting, selective sorting, and heap sorting). And save the sorted results in different files. (2) Count the performance of each sorting method (the time spent on running the program on the above computer is subject to comparison), and find out two of the faster methods. 3. Experimental code: