当前位置:网站首页>Operations related to sequence table
Operations related to sequence table
2022-07-01 12:23:00 【Between the steps】
**
For the relevant operations of the sequence table
For the relevant operations of the sequence table
**
1、 The first is the initialization of the sequence table ( static state )
At initialization , Define the maximum length ( Like arrays , Can't expand ), And the actual length of the current stored data , Initialization defines the actual length as 0, The subsequent insertion value is incremented ,,

improvement ( Dynamic allocation )
If there's not enough memory , Will expand the space , Copy the original content
( The red line points to the first data element in the sequence table )
From the picture below ( How much space to expand ?)
Define pointer p Point to the first data location , And then use L.data Expand space , Copy the past , The maximum length of the sequence table is updated

Insert operation of sequence table ------------------
We are in the... Of the linear table i Location insert element e Return to update the linear table (&) , Thought is to move backward as a whole , take e Insert in ,

At the same time, we should also judge whether the space is full ,,, Or it is not allowed to insert more than the maximum length !!!!!!
The deletion of the sequence table -------------------
The deletion operation is to delete the i Deduct the value of , The elements behind move forward You can see the parameters (&)
Let's take out the deleted data and wait for it to return
Deletion is the opposite of insertion It's to remove it from the front and move it forward from the back

Search operation of sequence table ------------------
The search of static memory allocation only needs to return return L.data[i-1] that will do ( Pay attention to the i Bit order , An array is data[i-1])
( Search by bit )
Search by value By reference e Compare
By traversing L.data[i] and e Compare , Same return bit order
( According to the value lookup )
边栏推荐
- ASTM D 3801 vertical burning test of solid plastics
- The Missing Semester
- Chapter 14 signals (IV) - examples of multi process tasks
- Four years after graduation: work, resign, get married, buy a house
- LeetCode 454. 四数相加 II
- Summary of JFrame knowledge points 2
- 【datawhale202206】pyTorch推荐系统:召回模型 DSSM&YoutubeDNN
- 第十四章 信号(四)- 多进程任务示例
- Use set_ Handler filters out specific SystemC wrapping & error messages
- [shell programming] - shell introductory learning
猜你喜欢

Computer graduation project asp Net hotel room management system VS development SQLSERVER database web structure c programming computer web page source code project

Sort out relevant contents of ansible
![[106] 360 check font - check whether the copyright of local Fonts is commercially available](/img/a7/615e8000647b56f03a6a1d3dd81b6d.jpg)
[106] 360 check font - check whether the copyright of local Fonts is commercially available
![[speech signal processing] 3 speech signal visualization -- prosody](/img/06/5f57f9dfe3a0f2f70022706f7d4d17.jpg)
[speech signal processing] 3 speech signal visualization -- prosody
![[Yunju entrepreneurial foundation notes] Chapter VII Entrepreneurial Resource test 1](/img/be/1194125442aaa2d7cc20b6a4a6762a.jpg)
[Yunju entrepreneurial foundation notes] Chapter VII Entrepreneurial Resource test 1
![[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 3](/img/ea/c5e8d12007873385fa0d197fa62fd2.jpg)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 3

【语音信号处理】3语音信号可视化——prosody

Summary of JFrame knowledge points 1

Common chart usage of Bi tools
![[Suanli network] technological innovation of Suanli Network -- key technology of operation service](/img/80/6e3648c88d309516d4bc29db9c153c.jpg)
[Suanli network] technological innovation of Suanli Network -- key technology of operation service
随机推荐
AI抠图工具
区间乘积的因子数之和——前缀和思想+定一移二
IOS interview
BIM and safety in road maintenance-buildSmart Spain
I wish you all a happy reunion
C serialization simple experiment
Sort out relevant contents of ansible
CPI tutorial - asynchronous interface creation and use
BIM and safety in road maintenance-buildSmart Spain
[20211129] configuration du serveur distant du carnet de notes jupyter
Common chart usage of Bi tools
Interpretation of R & D effectiveness measurement framework
(混更一篇)多个txt文本转一个表格
GPS 数据中的精度因子(DOP)与协方差之间的关系 (参考链接)
Summary of JFrame knowledge points 2
Leetcode force buckle (Sword finger offer 31-35) 31 Stack push pop-up sequence 32i II. 3. Print binary tree from top to bottom 33 Post order traversal sequence 34 of binary search tree The path with a
Joint Time-Frequency and Time Domain Learning for Speech Enhancement
STM32 project practice (1) introduction and use of photosensitive resistor
Golang des-cbc
巩固-C#运算符




