table of Contents
Definition of the linear form
Linear table having the same data type (n (n = 0) \ ) \ finite sequence of data elements, where \ (n-\) is a long table, when the \ (n = 0 \) when the linear list is an empty table . If using \ (L \) named linear form, it is generally expressed as:
\[L=(a_1, a_2, \cdots, a_i, a_{i+1}, \cdots, a_n)\]
Features of the linear form
- The same data type of each data item
- Have the order, and the bit sequence from the beginning
- Limited capacity of the data item
The basic operation of the linear form
★ basic operation of the linear form:
- Initialization table
- destroy
- insert
- delete
- Find by value
- Find by location
- Seeking long table
- Output of all the elements
- Sentenced empty
Tip: record sales, CRUD
Linear table storage structure
Linear table storage structure comprises: sequentially storing, linked storage.
Appreciated: different storage structures, data structures embodied on the computer is different.
The storage structure is divided into:
- Sequence table , with the table refers to a linear sequence of memory structures to achieve;
- Chain , refers to a linear chain with a stored table to achieve.
Also divided into:
- Table static array with sequential implementation, called static order table
- With the order table without head node implementation of dynamic arrays is called without head dynamic sequence table
- Lead sequence table with a dynamic array node implementation, called lead dynamic sequence table
- The one-way linked list node implemented with a single pointer, called single-chain
- The one-way linked list of nodes implemented with the double pointer, called double-linked list
- Doubly linked list with pointers to the node with a single implementation, called cycle chain single
- Bidirectional linked list node implemented with the double pointer, called circular doubly linked list