Java Core class Library-data Structure-overview of data structures

Source: Internet
Author: User

What is a data structure :

The data structure is the way that the computer stores and organizes it.

A data structure is a collection of elements that have one or more specific relationships to each other

typically, a well-chosen data structure can lead to higher operational or storage Efficiency. Data structures are often associated with efficient retrieval algorithms and indexing Techniques.

Common data structures, array (array), stack (stack), list of links (Linked list), hash table (hash), queues (queue), heap (heap), graph (graph), Tree

The collection framework in Java is actually the encapsulation of the implementation of the data structure, here is the simulation and implementation data Structure.

different data structure operation performance is different, some query performance is very fast, some insert speed quickly, some insert head and tail speed quickly, Some do the equivalent judgment quickly, some do range query quickly, some allow elements to repeat, some do not allow Repetition.

the role of data structures :

1. Simulating the storage of data in your life

2. As a tool developed by programmers (discovering that an operation is often used, each use has to be re-called very troublesome we encapsulate the common operation as a Tool)

Example: An array of tool Arraylist.

Java Core class Library-data Structure-overview of data structures

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.