Common sort, find, tree algorithm collection

Source: Internet
Author: User

This article reprinted to http://blog.csdn.net/zhangkongzhongyun/article/details/8080466Category: C language 2012-10-17 11:16 275 people read Comments (0) favorite reports Algorithm Google

Written in front of a number of sorts, red and black trees, B-tree algorithm of the article, and left to find this chunk did not write, find the relevant algorithm code has been implemented, but did not write the search algorithm to log the leisure, had to first put out the code here, after there is plenty of leisure time to fill it.

Algorithmic code for Google Warehouse: Click here

Completed algorithm

Sort

    1. Insert Sort
    2. Hill sort
    3. Bubble sort
    4. Quick Sort
    5. Select sort
    6. Heap Sort
    7. Merge sort
    8. Count sort
    9. Barrels/carton sorting
    10. Base sort

Find

    1. Sequential Lookup
    2. Two-point Search
    3. Block sort
    4. Hash Lookup
    5. Binary Tree Lookup

Tree

    1. Binary search Tree
    2. B-Tree
    3. Red and black Trees

Common sort, find, tree algorithm collection

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.