当前位置:网站首页>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 )
边栏推荐
- Onenet Internet of things platform - create mqtts products and devices
- How to use opcache, an optimization acceleration component of PHP
- Summary of JFrame knowledge points 2
- AI抠图工具
- kubernetes之ingress探索实践
- USB peripheral driver - cable connect/disconnect
- Unity xlua co process packaging
- Use of easyexcel
- 强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
- Golang des-cbc
猜你喜欢
随机推荐
GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021
Onenet Internet of things platform - mqtt product equipment upload data points
GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021
[Yu Yue education] financial management reference materials of Ningbo University of Finance and Economics
Common chart usage of Bi tools
比特熊直播间一周年,英雄集结令!邀你来合影!
消息队列之监控退款任务批处理过程
USB peripheral driver - cable connect/disconnect
循环链表--
MQ-防止消息丢失及重复消费
The Missing Semester
Efforts at the turn of the decade
谈思生物直播—GENOVIS张洪妍抗体特异性酶切技术助力抗体药物结构表征
Arm GIC (V) how arm TrustZone supports security interrupt analysis notes.
GPS 数据中的精度因子(DOP)与协方差之间的关系 (参考链接)
[Yunju entrepreneurial foundation notes] Chapter 7 Entrepreneurial Resource test 8
技术分享 | MySQL:从库复制半个事务会怎么样?
Machine learning - Data Science Library Day 3 - Notes
Switch basic experiment
2022-06-28-06-29











![[speech signal processing] 3 speech signal visualization -- prosody](/img/06/5f57f9dfe3a0f2f70022706f7d4d17.jpg)

