Hark data structure and algorithm practice library sort

Source: Internet
Author: User

Algorithm description

Library sorting is a variant of the insertion sequence, typically a method of space-time change. I personally feel that this kind of thinking can be learned, but the direct use of the scene should be small.

We know that the actual insertion sort is usually followed by inserting elements forward, and we're going to move back all the elements behind. The idea of library sorting is to reserve n space behind each element (for example, reserving 10 element spaces) so that when inserted before an element, only a few fewer elements will be moved under the pre-reserved space.

Code

Because April to test, so the code is not written, and later when there is time to fill in

Reference

Http://www.cnblogs.com/kkun/archive/2011/12/05/2276411.html

Hark data structure and algorithm practice library sort

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.