The algorithm in Linux is very concise and efficient.

Source: Internet
Author: User
The algorithms in Linux are very concise and efficient-general Linux technology-Linux programming and kernel information. For more information, see the following. I read the Linux kernel code during the last few days and found that its List is very delicate. It is embedded in various data structures and its definition is:

Struct list_head {
Struct list_head * next, * prev;
};

In comparison, the structure I use is a waste of memory and the processing process is complicated.

However, the project has been accepted and cannot be modified. Modify similar projects later.

During this time, I read a lot of Linux code and found many useful algorithms, such as Hash functions and Hash linked lists. Radix tree and red/black tree are both concise and efficient, and are worth learning and applying.

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.