-
平衡支架
读取的字符一一 ;
忽略任何不是支架的一些种类;
所有左括号内推入堆栈 ;
为每一个右括号,请确保位于堆栈中的类型相匹配的左的括号和弹出 ;
可能会出现三种错误:
到达最后一步输入的现在还有 (左) 括号在堆栈上 ;
你找到一个右括号中输入,但在堆栈的顶部左的一个不匹配 (即,它不是同一种) ;
您尝试匹配一个右括号与左一个从堆栈,但在堆栈为空 ;
- 2023-07-15 21:35:03下载
- 积分:1
-
数 据 结 构 大型 作业3.1输入一个数列L,生成一棵二叉排序树T;3.2对二叉排序树T作中序遍历,输出结果;3.3计算二叉排序树T的平均查找长度, 输出结果...
数 据 结 构 大型 作业3.1输入一个数列L,生成一棵二叉排序树T;3.2对二叉排序树T作中序遍历,输出结果;3.3计算二叉排序树T的平均查找长度, 输出结果;3.4判断二叉排序树T是否为平衡二叉树,输出信息“OK!”/“NO!”;3.5再使用上述数列L,生成平衡的二叉排序树BT,每当插入新元素,发现当前的二叉排序树BT不是平衡的二叉排序树,则立即将它转换成新的平衡的二叉排序树BT;3.6计算平衡的二叉排序树BT的平均查找长度,输出结果。3.6分析对比未平衡化的二叉排序树和平衡的二叉排序树的查找效率(最好、最坏平均比较关键字数)-data structure large operations into a 3.1 L series, generating a binary tree Sort T; 3.2 pair of two fork-tree T for medium preorder, output results; 3.3 Ranking calculation Binary Tree Search T"s average length of the output; 3. four judgment ordering two trees T fork whether balanced binary tree, the output message "OK!"/"NO!" ; again using the 3.5 series L, generate balanced binary tree sort BT, whenever insert a new element, found the current binary sort tree is not-BT Value of two binary sort tree, it will be immediately converted into the new balance of the two fork-tree BT; 3.6 Calculation balanced binary tree sort BT search length of the average output results. 3.6 Comparative Analysis of
- 2022-04-09 01:41:30下载
- 积分:1
-
Data structure class courseware
数据结构的上课课件,学习数据结构比不可少的课件-Data structure class courseware
- 2022-04-18 12:36:32下载
- 积分:1
-
vfp数据库应用编程
vfp数据库应用编程-Probe Database Application Programming
- 2023-02-15 02:55:03下载
- 积分:1
-
1.通过鼠标拖拽和弹出对话框完成实体、属性、联系的绘制以及各参数设定
2.对绘制的实体、属性、联系提供合法性检查
3.对绘制的图形进行拖动、重设大小、删...
1.通过鼠标拖拽和弹出对话框完成实体、属性、联系的绘制以及各参数设定
2.对绘制的实体、属性、联系提供合法性检查
3.对绘制的图形进行拖动、重设大小、删除
4.通过属性对话框对实体、属性、联系的各种参数进行重新设置
5.数据的串行化
6.将绘制完成的E-R图转换成数据库脚本-1. Through mouse drag and drop and pop-up dialog box to complete entities, attributes, links, as well as drawing parameter setting 2. Drawing entities, attributes, links provided to check the legality of 3. The graphics on the drawing drag, reset size, delete 4. through the Properties dialog box on the entities, attributes, linked to various parameters re-set 5. serialization of data 6. will be drawn to complete the ER diagram into a database script
- 2022-01-25 17:40:07下载
- 积分:1
-
读取数据库技术的实例,让初学者快速掌握VC访问数据库。用于工程开发。...
读取数据库技术的实例,让初学者快速掌握VC访问数据库。用于工程开发。-read database
- 2022-06-03 17:43:17下载
- 积分:1
-
线性表(顺序存储)结构与功能的简易实现
线性表(顺序存储)结构与功能的简易实现,本代码采用C++实现,仿照C++中的容器类,将该线性表封装成了一个使用的多功能类。
- 2022-05-15 02:40:19下载
- 积分:1
-
Given a (undirected) graph G, and G in two points s, t, determined from s to t o...
给定一个(无向)图G,及G中的两点s、t,确定一条从s到t的最短路径。-Given a (undirected) graph G, and G in two points s, t, determined from s to t of a shortest path.
- 2022-01-30 21:36:58下载
- 积分:1
-
常用的C++数据结构算法,包括队列、堆栈、链表...等.以模板类型式实现...
常用的C++数据结构算法,包括队列、堆栈、链表...等.以模板类型式实现-C common data structure algorithms, including queue, stack, etc. List .... To achieve template-type
- 2022-02-06 04:20:33下载
- 积分:1
-
C++数据结构的用法 适合对C++语意思有一定了解的人
C++数据结构的用法 适合对C++语意思有一定了解的人-C data structure suitable for the use of C language meaning a certain understanding of
- 2022-02-10 05:56:18下载
- 积分:1