Python sequence table

Source: Internet
Author: User

Python sequence table

Learn a bit, data structure and algorithm, do a summary. If it's not right there, please give me more advice.

Sequential tables , in which elements are stored sequentially in a contiguous storage area, the order relationships between elements are naturally represented by their order of storage.

A linked list that stores elements in a series of storage blocks constructed from links.

The C in B is no longer the size of the data element, but the amount of storage required to store a link address, which is usually very small.

List and tuple two types in Python using sequential table implementation techniques

Added element 1 to the end of the element, the time complexity is O (1) 2 Non-guaranteed addition element (uncommon), time complexity of O (1) 3 Order of elements added, time complexity O (n)

Delete element 1. Delete the footer element with a time complexity of O (1) 2. non-preserving element deletion (uncommon), time complexity is O (1) 3. isotonic element Deletion, time complexity O (n)

Python sequence table

Related Article

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.