搜索资源列表
finish01
- 一般来说用int型变量超过2^31的数就会溢出。此程序是利用数组对长度很长的整形字符串进行加减操作,并且进行自动测试的例子-int type generally used more than two variables ^ 31 a few will overflow. This procedure is the use of an array of very long length of plastic strings Modified operation, as well as automa
BOX
- 最少背包问题:假设有许多盒子,每个盒子能保存的总重量为1.0。有N个项i1,i2,…,iN,它们的重量分别是w1,w2,…,wN。目的是用尽可能少的盒子放入所有的项,任何盒子的重量不能超过他的容量。例如,如果想的重量为0.4, 0.4, 0.6和0.6,用两个盒子就能解决。 按如下策略解决此问题:按给定的次序扫描每一个项,把每一个项放入能够容纳他而不至于溢出的最满的盒子。用优先级队列选择要装入的盒子。-Minimum knapsack problem: Suppose there are m
20033194
- this source is a HASH algorithm.if hash function make the same key, it solve overflow by chain algorithm.
8_Queens_revised
- N皇后问题的所有解,设定解栈大小为100,N大于时,需要增大解的栈,否则会栈溢出.-all the solution to N Queen (N<=8, else stack overflow)
queue
- (一)题目: 假设以带头结点的循环链表表示队列,并且只设一个指针指向队尾元素结点而不设头指针,试编写相应的队列初始化、入队列、出队列和判断队列状态的算法。 利用上述算法完成下面的各操作,并在每一操作后输出队列状态。 1)下列元素逐一入队:5,7,3,8,55 状态:5个元素 2) 3个元素出队 状态:2个元素 3)再2个元素出队 状态:队空 4)再1个元素出队 状态:队空(指示下溢) -(A) Title: Suppose to take the l
FPTree
- FPGrowth算法,数组实现的,会溢出,别人实现的-FPGrowth algorithm, the array implementation, it will overflow, people to achieve
cirular-queue
- 为充分利用向量空间,克服"假溢出"现象的方法是:将向量空间想象为一个首尾相接的圆环,并称这种向量为循环向量。存储在其中的队列称为循环队列-To take full advantage of vector space, to overcome the " false overflow" phenomenon is: the vector space of imagination for an end to end ring, saying such a vector for th
NO2
- 顺序表 create_sqlist(Sqlist *L)/*创建顺序表*/ { int k ElemType x k=0 scanf(" d",&x) while(x!=0) { L->data[k]=x k++ scanf(" d",&x) } L->length=k } void print_sqlist(Sqlist *L)/*输出顺序表*/ { int j
atoi
- atoi函数的实现,注意溢出和 ( -01 256)类似字符串-realize atoi function, attention overflow and (-01,256) similar string
complement
- 实现对整数转换为补码和补码加减运算,其中可以检查整数输入的合法性,检查补码运算是否溢出-To achieve the integer conversion to complement and complement subtraction, where you can check the legitimacy of an integer input, check whether complement arithmetic overflow
Project6
- 使用散列表设计实现一个字典,假设关键字为整数且 D 为 961,在字典 中插入随机产生的 500 个不同的整数, 实现字典的建立和搜索操作。分别使 用线性开型寻址和链表散列解决溢出。-Designed and implemented using a hash table dictionary, if your keywords is an integer and D 961, in the dictionary 500 different integers inserted rand
