The advantages and disadvantages of linear table sequential storage and the advantages and disadvantages of linear list

Source: Internet
Author: User

Sequential storage of linear tables

Advantages: It has the advantages of simplicity and convenient operation, especially for linear table with small linear table or fixed length, the advantage of sequential storage structure is more outstanding;

Disadvantages: 1. Sequential storage inserts and deletes an element that must move large data elements to this large linear table, especially in the case of inserting and deleting elements very frequently, taking sequential storage is inconvenient and inefficient;

2. Sequential storage space is easy to fill, overflow, program access problems, sequential storage structure, storage space is inconvenient to expand;

3. The allocation of sequential storage space, divided into more waste, less space on the overflow.

For large linear table, especially the large linear table with frequent element change, the sequential storage space should not be used, but the chain-type storage structure is adopted.

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.