2022年数据结构知识点总结整理资料2 .pdf

上传人:Q****o 文档编号:60292657 上传时间:2022-11-15 格式:PDF 页数:31 大小:80.13KB
返回 下载 相关 举报
2022年数据结构知识点总结整理资料2 .pdf_第1页
第1页 / 共31页
2022年数据结构知识点总结整理资料2 .pdf_第2页
第2页 / 共31页
点击查看更多>>
资源描述

《2022年数据结构知识点总结整理资料2 .pdf》由会员分享,可在线阅读,更多相关《2022年数据结构知识点总结整理资料2 .pdf(31页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、数据结构知识点总结整理资料0、常考基础必知必会A.排序:排序有几种,各种排序的比较,哪些排序是稳定的,快排的算法;B.查找:哈希查找、二叉树查找、折半查找的对比,哈希映射和哈希表的区别?C.链表和数组的区别,在什么情况下用链表什么情况下用数组?D.栈和队列的区别?E.多态,举例说明;overload 和 override 的区别?F.字符串有关的函数,比如让你写一个拷贝字符串的函数啊,或者字符串反转啊什么的。strcpy 和 memcpy?G.继承、多继承?H.面向对象有什么好处?I.说说static 的与众不同之处,如果一个变量被声明为static,它会被分配在哪里?在什么时候分配空间等?J

2、.什么是虚函数、纯虚函数、虚的析构函数,用途?K.内存泄漏及解决方法?网络部分:OSI 模型 7 层结构,TCP/IP 模型结构?B.TCP/UDP 区别?C.TCP 建立连接的步骤?D.香农定理?1、二叉树三种遍历的非递归算法(背诵版)本贴给出二叉树先序、中序、后序三种遍历的非递归算法,此三个算法可视为标准算法,直接用于考研答题。1.先序遍 历非递 归算法#define size 100 typedef struct Bitree Elemsize;int top;SqStack;void PreOrderUnrecBitree t SqStack s;StackInits;pt;while

3、 p!null|!StackEmptys while p!null/遍 历 左 子 树visitep-data;pushs,p;pp-lchild;/endwhile if!StackEmptys /通过下一次循环中的内 嵌while 实 现 右 子 树 遍 历ppops;pp-rchild;/endif/endwhile/PreOrderUnrec 2.中序遍 历非递 归算法#define size 100 typedef struct Bitree Elemsize;int top;文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T

4、5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F

5、6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1

6、X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N

7、9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G1

8、0F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1

9、A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W

10、4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1文档编码:CN2W4N9T5Q6 HD2G5G10F6I9 ZS2X5O1A1X1SqStack;void InOrderUnrecBitree t SqStack s;StackInits;pt;while p!null|!StackEmptys while p!null/遍历左子树 pushs,p;pp-lchild;/endwhile if!StackEmptys ppops;visitep-data;/访 问 根 结 点pp-rchild;/

11、通 过 下 一 次 循 环 实 现 右 子 树 遍 历/endif/endwhile /InOrderUnrec 3.后序遍 历非递 归算法#define size 100 typedef enumL,R tagtype;typedef structBitree ptr;tagtype tag;stacknode;typedef struct stacknode Elemsize;int top;SqStack;/后序遍历void PostOrderUnrecBitree t SqStack s;stacknode x;StackInits;pt;do while p!null/遍历左子树 x

12、.ptr p;x.tag L;/标记为左子树 pushs,x;pp-lchild;while!StackEmptys&s.Elems.top.tagR x pops;p x.ptr;visitep-data;/tag 为 R,表示右子树访问完毕,故访文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编

13、码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档

14、编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文

15、档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9

16、文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L

17、9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2

18、L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y

19、2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9问根结点 if!StackEmptys s.Elems.top.tag R;/遍历右子树 ps.Elems.top.ptr-rchild;while!StackEmptys;/PostOrderUnrec 4.层次遍 历算法/二叉树的数据结构structBinaryTree int value;/不写模板了,暂时用整形代替节点的数据类型BinaryTree*left;BinaryTree*right;BinaryTre

20、e*root;/已知二叉树的根节点/层次 遍历voidLevel const BinaryTree*root Queue*buf new Queue;/定义一个空队列,假设此队列的节点数据类型也是整形的 BinaryTree t;/一个临时变量 buf.push_backroot;/令根节 点 入 队while buf.empty false/当 队 列 不 为 空p buf.front;/取出队列的第一个元素 coutp-value;if p-left!NULL /若左子树不空,则令其入队 q.push p-left;if p-right!NULL /若右子树不空,则令其入队 q.push

21、p-right;buf.pop;/遍历过的节点出队 coutendl;2、线性表(1)性表的链式存储方式及以下几种常用链表的特点和运算:单文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7

22、 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B

23、7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8

24、B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T

25、8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5

26、T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P

27、5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5

28、P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9链表、循环链表,双向链表,双向循环链表。(2)单链表的归并算法、循环链表的归并算法、双向链表及双向循环链表的插入和删除算法等都是较为常见的考查方式。(3)单链表中设置头指针、循环链表中设置尾指针而不设置头指针以及索引存储结构的各自好处。3、栈与队列你可以问一下自己是不是已经知道了以下几点:1 栈、队列的定义及其相关数据结构的概念,包括:顺序栈,链栈,共 享栈,循环队列,链队等。栈与队列存取数据(请注意包括:存和取两部分)的特点。2 递归算法。栈与递归的关系,以及借助栈将递归转向于非递归的经典算法:n!阶乘问题 ,fib 数列问题

29、,hanoi 问题,背包问题,二叉树的递归和非递归 遍历问题,图的 深 度遍历与栈的关系等。其中,涉及到树与图的问题,多半会在树与图的相关章节中进行考查。3 栈的应用:数 值表 达式的求解,括 号的配 对等的原理,只作原理性了解,具体要求考查此为题目的算法设计题不多。4 循环队列中判队空、队满条件,循环队列中入队与出队(循环队列在插入时也要判断其文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y

30、2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2

31、Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z

32、2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7

33、Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N

34、7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10

35、N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH1

36、0N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9是否已满,删除时要判断其是否已空)算法。【循环队列的队空队满条件为了方便起见,约定:初始化建空队时,令 frontrear0,当队空时:frontrear,当队满时:frontrear 亦成立,因此只凭等式frontrear 无法判断队空还是队满。有两种方法处理上述问题:(1)另设一个标志位以区别队列是空还是满。(2)少用

37、一个元素空间,约定以“队列头指针 front 在队尾指针 rear 的下一个位置上”作为队列“满”状态的标志。队空时:frontrear,队满时:rear+1%sizefront】如果你已经对上面的几点了如指掌,栈与队列一章可以不看书了。注意,我说的是可以不看书,并不是可以不作题哦。/循环队列的主要操作:1创建循环队列 2 初始化循环队列 3 判断循环队列是否为空 4 判断循环队列是否为满 5 入队、出队/空出头尾之间的一个元素不用#include#include#define SIZE 100 typedef struct intelemSIZE;intfront,rear;Quque;/定

38、义队头 int initQueQuque*q/初始化 *q-front0;*q-rear0;int isFullQuque*q ifq-frontq-rear+1%SIZE/判满空出一个元素不用 刘勉刚 return 1;else return 0;int insertQueQuque*q,int elem ifisFull*qreturn-1;*q-elem*q-rearelem;*q-rear*q-rear+1%SIZE;/插入 return0;int isEmptyQuque*q ifq-frontq-rear/判 空return 1;else return 0;int 文档编码:CZ5

39、K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ

40、5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:C

41、Z5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:

42、CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码

43、:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编

44、码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档

45、编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9deleteQueQuque*q,int*pelem ifisEmpty*q retur

46、n 0;*pelem*q-elem*q-front;*q-front*q-front+1%SIZE;return0;4、串串一章需要攻破的主要堡垒有:1.串的基本概念,串与线性表的关系(串 是其元素均 为字符型 数据的 特殊线 性表),空串与空格串的区别,串相等的条件;2.串的基本操作,以及这些基本函数的使用,包括:取子串,串连接,串替 换,求串长等等。运用串的基本操作去完成特 定的算法是很多学校在基本操作上的考查重点。3.顺序串与链串及块链串的区别和联系,实现方式。4.KMP 算法思想。KMP 中 next 数组以及 nextval 数组的求法。明确传统模式匹配算法的不足,明确 next 数

47、组需要改进。可能进行的考查方式是:求 next 和nextval 数组值,根据求得的 next 或 nextval 数组值给出运用 KMP 算法进行匹配的匹配过程。5、多维数组和广义表矩阵包括:对称 矩阵,三角 矩阵,具有某种特点的稀疏 矩阵等。熟悉稀疏矩阵的三种不同存储方式:三元组,带辅 助行 向量的二 元组,十字链表存储。文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ

48、5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:C

49、Z5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:

50、CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码:CZ5K5P5T8B7 HT10K1C6B10A4 ZH10N7Z2Y2L9文档编码

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁