MindMap Gallery data structure
This is a mind map about data structure. The main content includes algorithm description methods, algorithm characteristics, algorithm design goals, etc. hope it is of help to you!
Edited at 2022-08-21 10:41:52This infographic, created using EdrawMax, outlines the pivotal moments in African American history from 1619 to the present. It highlights significant events such as emancipation, key civil rights legislation, and notable achievements that have shaped the social and political landscape. The timeline serves as a visual representation of the struggle for equality and justice, emphasizing the resilience and contributions of African Americans throughout history.
This infographic, designed with EdrawMax, presents a detailed timeline of the evolution of voting rights and citizenship in the U.S. from 1870 to the present. It highlights key legislative milestones, court decisions, and societal changes that have expanded or challenged voting access. The timeline underscores the ongoing struggle for equality and the continuous efforts to secure voting rights for all citizens, reflecting the dynamic nature of democracy in America.
This infographic, created using EdrawMax, highlights the rich cultural heritage and outstanding contributions of African Americans. It covers key areas such as STEM innovations, literature and thought, global influence of music and arts, and historical preservation. The document showcases influential figures and institutions that have played pivotal roles in shaping science, medicine, literature, and public memory, underscoring the integral role of African American contributions to society.
This infographic, created using EdrawMax, outlines the pivotal moments in African American history from 1619 to the present. It highlights significant events such as emancipation, key civil rights legislation, and notable achievements that have shaped the social and political landscape. The timeline serves as a visual representation of the struggle for equality and justice, emphasizing the resilience and contributions of African Americans throughout history.
This infographic, designed with EdrawMax, presents a detailed timeline of the evolution of voting rights and citizenship in the U.S. from 1870 to the present. It highlights key legislative milestones, court decisions, and societal changes that have expanded or challenged voting access. The timeline underscores the ongoing struggle for equality and the continuous efforts to secure voting rights for all citizens, reflecting the dynamic nature of democracy in America.
This infographic, created using EdrawMax, highlights the rich cultural heritage and outstanding contributions of African Americans. It covers key areas such as STEM innovations, literature and thought, global influence of music and arts, and historical preservation. The document showcases influential figures and institutions that have played pivotal roles in shaping science, medicine, literature, and public memory, underscoring the integral role of African American contributions to society.
data structure
content
Chapter One Introduction
1.1 Basic concepts of data structure
1.1.1 Summary of key points
Relationships between data elements
data
data element
data item
Data>Data Element>Data Item (Student Table>Personal Record>Student Number, Name...)
data object
data structure
Data structure concept
a. The logical relationship between data, also called logical structure
b. The representation of data elements and their relationships in computer memory becomes the physical structure of data or the storage structure of data.
(The storage structure is the image of the logical relationship and the image of the element itself, the logical structure is the abstraction of the data structure, and the storage structure is the implementation of the data structure)
c. Data calculation and implementation
logical structure of data
The physical structure of data (storage structure)
Data types and abstract data types
1) Data type
2) Abstract data type (ADT)
Data object: <Definition of data object> Data relationship: <Definition of data relationship> Basic operation: <Definition of basic operation>}ADT abstract data type name
Data object: D={r, : Circle (&C, r, x, y) Operation result: Construct a circle. double Area (C) Initial condition: The circle already exists. Operation result: Calculate the area. double Circumferece (C) Initial condition: The circle already exists. Operation result: Calculate the circumference. . . . }ADT Circle
The definition format of basic operations is: a. Basic operation name (parameter list) b. Initial conditions: (description of initial conditions) c. Operation result: (operation result description)
######
1.2 Algorithms and algorithm characteristics
How to describe an algorithm
natural language
programming language
flow chart
pseudocode
algorithmic language
Algorithm characteristics
1) Finiteness: It ends after executing finite steps, and each step is completed within finite time.
2) Certainty: Each instruction must have an exact meaning without ambiguity
3) Feasibility: the algorithm is executable
4) Input: An algorithm has 0 or more inputs
5) Output
Algorithm design goals
correctness
usability
readability
Robustness
Algorithmic efficiency (high efficiency and low storage requirements)
Algorithm time complexity
space complexity
Chapter 2 Linear Table
2.1 Basic concepts of linear tables
Definition (Linear List)
Characteristics of data
Data elements of the same type
limited
orderly
important terms
Table length, empty table
Table header, table footer
precursor, successor
Bit order of data elements (starting from 1)
logical structure
(a1,a2,a3...an) (as shown below)
Basic operations (operations)
Create, sell, add, delete, modify, check
Judge empty, judge long, print output, etc.
be careful
When is it necessary to quote "&"
Function naming should be readable
C language to calculate the size of data elements
sizeof(ElemType)
Storage/Physical Structure
Sequence table (sequential storage)
storage structure
Linked list (linked storage)
2.2 Algorithm of sequence table
Method to realize
static allocation
Implemented using "static array"
Once the size is determined, it cannot be changed
code
dynamic allocation
Implemented using "dynamic array"
L.data=(ElemType
)malloc(sizeof(ElemType) size);
When the sequence table is full, malloc can be used to dynamically expand the maximum capacity of the sequence table.
It is necessary to copy the data elements to a new storage area and use the free function to release the original area.
code
The header file using malloc and free functions is #include