-
给定n 个整数a ,a , ,an 1 2 组成的序列, a n i | |£ ,1 £ i £ n。如果对于i...
给定n 个整数a ,a , ,an 1 2 组成的序列, a n i | |£ ,1 £ i £ n。如果对于i £ j ,有
0 = å
=
j
k i
k a ,则称序列区间i i j a , a , , a +1 为一个零和区间,相应的区间长度为j-i+1。-given n integers a, a, and an 1 2
- 2022-08-20 07:41:55下载
- 积分:1
-
可以实现两个大整数(不限数位)相加减! 在C++中,加减法的两个数必须在系统规定内,本程序突破了这一界限!...
可以实现两个大整数(不限数位)相加减! 在C++中,加减法的两个数必须在系统规定内,本程序突破了这一界限!-can achieve two large integers (Open-digit) is modified! In C++, and subtract the number two must be within the system, the process broke the limits!
- 2022-03-25 05:48:53下载
- 积分:1
-
这是数据结构的四则运算的c语言程序,只要编译就能运行呀!...
这是数据结构的四则运算的c语言程序,只要编译就能运行呀!-This is the data structure of the four operations c language program, as long as the compiler can run!
- 2022-01-21 01:27:28下载
- 积分:1
-
能够运行的c调用sqlite的程序1,适合学习sqlite
能够运行的c调用sqlite的程序1,适合学习sqlite-Be able to run sqlite in c call one of the procedures for learning sqlite
- 2022-03-02 08:22:24下载
- 积分:1
-
参考课堂迷宫问题的解题方法,建立move数组,若马当前位置是(x,y),则沿着第i(1<=i<=8)个方向跳一步,到达新的位置为( x’,y’),下...
参考课堂迷宫问题的解题方法,建立move数组,若马当前位置是(x,y),则沿着第i(1
- 2022-05-27 14:06:38下载
- 积分:1
-
机场仿真系统,利用栈和队列的知识,是一个数据S ..
飞机场模拟系统,,使用了栈和队列的知识,,是学习数据结构时做的,,大家不妨学习一下-Airport simulation system, the use of the stack and queue knowledge, is a data structure of learning to do, and, we may as well learn about
- 2022-08-07 04:16:46下载
- 积分:1
-
严蔚敏的数据结构源码及演示系统,有助于形象直观的学习数据结构...
严蔚敏的数据结构源码及演示系统,有助于形象直观的学习数据结构-YAN Wei-min source of the data structure and presentation systems, the study will help the image of intuitive data structure
- 2022-02-11 17:10:57下载
- 积分:1
-
The realization of a number of algorithms, using the pascal, including number th...
一些算法的实现,用的是pascal,包括数论、图论、高精度计算、排序算法、背包问题等。-The realization of a number of algorithms, using the pascal, including number theory, graph theory, high-precision computing, sorting algorithms, and so on knapsack problem.
- 2022-02-05 22:21:10下载
- 积分:1
-
哈夫曼树算法
根据给定的n个权值{w1,w2,……wn},构造n棵只有根结点的二叉树,令起权值为wj
在森林中选取两棵根结点权值最小的树作左右子树,构造...
哈夫曼树算法
根据给定的n个权值{w1,w2,……wn},构造n棵只有根结点的二叉树,令起权值为wj
在森林中选取两棵根结点权值最小的树作左右子树,构造一棵新的二叉树,置新二叉树根结点权值为其左右子树根结点权值之和
在森林中删除这两棵树,同时将新得到的二叉树加入森林中
重复上述两步,直到只含一棵树为止,这棵树即哈夫曼树
-Huffman tree algorithm based on a given n-weights (w1, w2, ... ... wn), construct n trees only a root node of the tree, so that from the right value of wj in the forest root node to select two the right tree for the value of the smallest subtree around, a new binary tree structure, the right to buy a new tree root node value of its subtree root node around the right value in the forest and delete these two trees, At the same time, the new binary tree obtained by adding the forest to repeat the above two steps until a tree containing only the date, that is, Huffman tree tree
- 2023-05-05 13:05:03下载
- 积分:1
-
约瑟夫环实现
约瑟夫环实现
- 2022-02-07 00:49:01下载
- 积分:1