实验
文章平均质量分 53
良仔在发呆
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
提高题3-1
Problem 3 Graph and Tree (Difficulty index ★★★★☆)3-1. A graph is a set of nodes connected in various ways by edges. You can often start at one node, wander along various edges from node to node, a原创 2016-11-02 01:52:47 · 498 阅读 · 0 评论 -
提高题3-2
3-2. Merge two binary sorting trees using post-order traversal thought.后序遍历合并后的二叉搜索树。#includeusing namespace std;int mx=0; //全局变量typedef struct BTNode{ int element; struct BTNode *lChild原创 2016-11-02 13:34:27 · 256 阅读 · 0 评论 -
基础题1
实验内容:1、 分别编制函数实现二分检索、冒泡排序算法,从键盘上输入数据分别进行检索和排序。2、 分析算法在你所输入的数据的情况下分别作了多少次基本操作。实验要求:1、 首先对如下数据[29, 58, 15, 67, 86, 43, 25, 25,30]进行冒泡排序,并分析其比较次数和稳定性,然后从键盘上任意输入一个数用二分搜索算法搜索该数是否在上述数组中,同时输出比较次数。#in原创 2016-12-01 12:46:39 · 277 阅读 · 0 评论
分享