资源列表

« 1 2 ... .52 .53 .54 .55 .56 557.58 .59 .60 .61 .62 ... 2656 »

[数据结构常用算法tree

说明:二叉排序树中删除删除结点是其双亲结点的右孩子的算法,删除后仍为二叉排序树。-Delete Delete node binary sort tree algorithm is the right child of its parent node, delete still binary sort tree.
<罗壹文> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法new-Bubble-Sort

说明:修改起泡排序的算法,在正反两个方向交替进行扫描,即第一趟把排序码最大的对象放到序列的最后,第二趟把排序码最小的对象放到序列的最前面。如此反复进行。-Modified bubble sort algorithm, in both directions alternately scanning, sorting code that first trip to the largest objects into the final, the second trip to the smallest obj
<罗壹文> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法Sort

说明:奇偶交换排序是另一种交换排序。它的第一趟对序列中的所有奇数项i扫描,第二趟对序列中的所有偶数项i扫描。若A[i] > A[i+1],则交换它们。第三趟有对所有的奇数项,第四趟对所有的偶数项,…,如此反复,直到整个序列全部排好序为止。-Parity exchange swap is another sort. It' s the first trip of a sequence of all odd items i scan, the second trip of a sequence
<罗壹文> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法homework_2.11

说明:将x插入到顺序表的适当位置上,以保持该表的有序性。 输入数据:文本文件input.txt 文件分4行: 第1行是顺序表va的数据元素个数n,n<20。如果n<1或n>19则视为输入数据出错。 第2行是n个递增有序的数据元素,每个元素都是-999~999之间的十进制整数,元素之间用空格分开。 第3行是整数x,x是-999~999之间的十进制整数。 第4行是空行。 输出数据:文件output.txt 文件只有1行: 第1行是完成插入之后的顺序
<123> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法homework_2.22

说明:对单链表实现就地逆置,即利用原表的存储空间将线性表(a1,a2,…,an)逆置为(an,an-1,…,a1)。输入数据:文本文件input.txt 文件分2行: 第1行是单链表的数据元素个数n,n<20。如果n<1或n>19则视为输入数据出错。 第2行是单链表的n个数据元素,每个元素都是-999~999之间的十进制整数,元素之间用空格分开。 输出数据:文件output.txt 文件只有1行: 第1行是完成逆置之后的单链表n个元素的十进制整数,每个元素
<123> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法problem_b

说明:The Google Code Jam 2014 Qualification Round,google code jam 2014 资格赛的b问题的算法源码-Algorithm source code The Google Code Jam 2014 Qualification Round, google code jam 2014 qualifying b problem
<dodo> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法convert

说明:大端模式存储的字节数据向浮点(单精度float、双精度double)、整型(int、long)转换类-Bytes of data stored in big-endian mode to the floating-point (single-precision float, double-precision double), integer (int, long) conversion class
<半介书生> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法shuzu1

说明:一位数组的源代码 显示顺序表 输出顺序表的长度 判断顺序表是否为空表插入数据 删除数据\查找数 显示菜单 清空 退出-An array of source code shows whether the length of the table to determine the order of the sequence table output sequence table is an empty table to insert data delete data \ find the number
<张三> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法2

说明:找出给定序列的所有逆序对,并输出。 逆序对:若i < j ==> A[i] > A[j] 则(i,j)为一个逆序对-Identify all the given sequence in reverse order right, and output. On the reverse: if i < j ==> A [i]> A [j] then (i, j) as a reverse pair
<刘子扬> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法3

说明:利用random(0,1)实现random(a,b) 原型: void srand(unsigned seed) 功能: 产生随机数的起始发生数据,和rand函数配合使用-Starting with the use of a random number generated occurrence data, and the rand function: the use of random (0,1) to achieve random (a, b) prototype: void sra
<刘子扬> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法4

说明:给定k个链表,利用最小堆实现有序链表的k路合并,并输出结果。-Given k a list using the minimum heap achieve an orderly list of k-way merge, and outputs the result.
<刘子扬> 在 2025-07-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法7

说明: 实现:平均排序 (k排序) k排序的定义:A[i] <= A[i + k] 即为希尔排序的不完全实现-Implementation: Average sort (k sorting) k sort defined: A [i] < = A [i+ k] is not fully realized Hill sort
<刘子扬> 在 2025-07-07 上传 | 大小:1kb | 下载:0
« 1 2 ... .52 .53 .54 .55 .56 557.58 .59 .60 .61 .62 ... 2656 »

源码中国 www.ymcn.org