1. Performance analysis
2. Application
Application considerations:
number of elements, element size, keyword structure and distribution, stability, storage structure, auxiliary space, etc.
- If n is small (n≤50), direct insertion sort or simple selection sort can be used.
When n is large, fast sort, heap sort or merge sort can be used - If n is large, the record key has fewer digits and can be decomposed, and the radix sort is used
- When the n keywords of the file are randomly distributed, any sorting by means of "comparison" requires at least O(nlogzn) time
- If the initial order is basically in order, use direct insertion or bubble sort
- When the record element is relatively large, a large number of moving sorting algorithms should be avoided, and chain storage should be used as much as possible
3. Conclusion
Now the data structure of the postgraduate entrance examination is probably completed, and I have gone through the tutorial myself. There are still some interesting content, such as dynamic memory management and other unlearned parts, which will be learned by myself and added here.
Now, it’s over ✿✿ヽ(°▽°)ノ✿