数据结构
求知 求是
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Root of AVL Tree
04-树5 Root of AVL Tree(25 分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by原创 2018-01-12 15:39:36 · 216 阅读 · 0 评论 -
Tree Traversals Again
树3 Tree Traversals Again(25 分) An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the keys numbered fro原创 2018-01-22 22:05:47 · 161 阅读 · 0 评论 -
树8 File Transfer
树8 File Transfer We have a network of computers and a list of bi-directional connections. Each of these connections allows a file transfer from one computer to another. Is it possible to send a file原创 2018-01-15 14:34:12 · 290 阅读 · 0 评论 -
数据结构 树 例题 Complete Binary Search Tree
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes with keys less than the node’s key. The right su原创 2018-01-23 15:02:37 · 800 阅读 · 0 评论 -
列出连通集
给定一个有N个顶点和E条边的无向图,请用DFS和BFS分别列出其所有的连通集。假设顶点从0到N−1编号。进行搜索时,假设我们总是从编号最小的顶点出发,按编号递增的顺序访问邻接点。 输入格式: 输入第1行给出2个整数N(0 #include #include #include #define MAXVERTEXNUM 100//最大顶点数 typedef int vertex; typ原创 2018-01-17 21:21:02 · 573 阅读 · 0 评论 -
数据结构 树 例题 Huffman Codes
In 1953, David A. Huffman published his paper “A Method for the Construction of Minimum-Redundancy Codes”, and hence printed his name in the history of computer science. As a professor who gives the f原创 2018-01-26 18:30:13 · 462 阅读 · 0 评论 -
Saving James Bond - Easy Version
This time let us consider the situation in the movie “Live and Let Die” in which James Bond, the world’s most famous spy, was captured by a group of drug dealers. He was sent to a small piece of land原创 2018-01-19 11:36:30 · 236 阅读 · 0 评论
分享