搜索资源列表
DirectInsertSort
- 实现直接插入排序 要求:封装成一个函数,形式如下: void DirectInsertSort(bool bOrder, bool bPrintEveryStep, int * array) 其中,参数bOrder是布尔类型变量,true表示升序,false表示降序 bPrintEveryStep表示是否把每一步的排序结果打印出来,true表示打印,false表示不打印 array是待排序的数组 -direct insertion sorting
xiaoliang10101danlianbiao
- 单链表的操作(查找、删除、排序和插入). -single-chain operations (to identify, delete, sort and insertion).
E66_0230
- 内部排序算法比较 一、需求分析 1. 实验要对以下6种常用的内部排序算法进行实测比较:起泡,直接插入,简单选择,快速,希尔,堆排序。 2. 待排序表的表长不小于100,其中的数据要用伪随机数产生(RAND()),至少要用5组不现的输入数据作比较,比较的指标为有关键字参加的比较次数和关键字参加的比较次数和关键字的移动次数。 3. 最后要对结果作出简单分析,包括对各组数据得出结果波动大小的解释。 -internal sorting algorithm 1, a demand an
javaSort
- 该演示程序最初来自Sun公司的Java网站。笔者添加了另外三个算法(插入,堆和Shell排序)。这样一共有六个排序算法同时演示,(包括起泡排序,双向起泡和快速排序 )。-the initial demo program from Sun's Java Web site. The author adds another three algorithms (insertion, sculpture and Shell ranking). A total of six such an algo
improved mergesort
- 这是一个改进了自顶向下的归并排序,它改进的地方主要有:采用小子文件截止的机制,当序列长度小于32时,采用直接插入排序;对归并的内循环作了优化,判断的次数更少。-This is an improvement from a top-down sort of merger, it improved the main : the deadline for the paper boy mechanism, the length of the sequence is less than 32, the us
SortTest.rar
- 四种方法实现排序,包括插入、希尔、选择、冒泡;并且能够测试时间复杂度。,Four ways to achieve the sort, including the insertion, Hill, selection, bubble and complexity to the test of time.
linked3
- 链表的bubble,insertion, selection排序法-Bubble,insertion, selection sort of list
sortandoperation
- 集合了多种排序算法与数组操作功能。包括简单,插入,冒泡,排序。二分遍历,插入元素,删除元素。-Collection of a variety of sorting algorithms and an array of operating features. Including the simple insertion, bubble, sort. Second sub-traversal, insertion elements, delete elements.
q.doc
- )创建任意字符型有序(递增排序)单循环链表(即链表的字符元素随机在键盘上输入),长度限定在15之内; 2)打印(遍历)该链表(依次打印出表中元素值); 3)在链表中查找第i个元素,i合法返回元素值,否则,返回FALSE; 4)在链表中查找与一已知字符相同的第一个结点,有则返回TRUE,否则,返回FALSE; 5)在链表中按照有序方式插入一已知字符元素; 6)在线性表中删除第i个结点; 7)计算链表的长度。 -) To create any character and
wannengpaixu
- 万能排序:主要是内部排序其中包括简单选择,冒泡,插入,交换等-Omnipotent sort: mainly including the internal sort simple choice, bubble, insertion, exchange, etc.
students
- 建立学生信息管理系统,实现一系列的功能: 存储信息:实现对信息的插入、删除、修改等功能; 查询信息 :显示全部学生信息、按学号查询、按姓名查询、按性别查询、按年级查询学生所学课程、按教师查询听课学生; 排序:实现按学号、按年龄、按某课成绩、按总成绩进行排序; 统计:男女生人数、每个人的平均成绩、各课的平均成绩;-The establishment of Student Information Management System to achieve a series of fun
SortC
- 非常全的排序算法c实现,包括冒泡,插入,选择,快速排序等9个算法,对学习很有用-Very wide of the sorting algorithm c realize, including bubble, insertion, selection, quick sort, etc. 9 algorithm, useful for learning
Insertionsort_Mergesort
- 合并排序的改进方法。当数字少到一个程度的时候,所用时间减少-insertion and merge sort
1
- 实验1 线性表(1) 输入若干正整数,建立一个顺序表,并在顺序表上实现如下操作:(1)在第3个元素位置插入666。(2)将第8个元素删除。(3)查找值为65的元素,若存在则输出,否则打印没有该元素。 实验2 线性表(2) 输入若干正整数,建立一个带头结点的单链表,并在单链表上实现如下操作:(1)在第3个元素位置插入666。(2)将第8个元素删除。(3)查找值为65的元素,若存在则输出,否则打印没有该元素。(4)查找第3个元素,若存在则输出,否则打印没有该元素。 实验6
erchashu
- 1.试按表(10,8,9,12,20,5,6,15,19,25)中元素的排列次序,将所有元素插入一棵初始为空的二叉排序树中,使之仍是一棵二叉排序树,请设计算法 2.在已构建的二叉排序树中插入元素40,使之依然为二叉排序树 -1. Examination table (10,8,9,12,20,5,6,15,19,25) elements in order to insert all the elements of an initial empty binary tree sort, so
as
- 本程序首先对数组a中的10个数从大到小排序并输出排序结果。然后输入要插入的整数n。再用一个for语句把n和数组元素逐个比较,如果发现有n>a[i]时,则由一个内循环把i以下各元素值顺次后移一个单元。后移应从后向前进行(从a[9]开始到a[i]为止)。后移结束跳出外循环。插入点为i,把n赋予a[i]即可。 如所有的元素均大于被插入数,则并未进行过后移工作。此时i=10,结果是把n赋于a[10]。最后一个循环输出插入数后的数组各元素值。 -This procedure first arra
chanru_paixu
- c语言实现的插入算法 用直接插入法对用户输入的顺序表进行排序 先建立一个顺序表,再直接插入排序 -c language implementation of the insertion algorithm using the direct insertion method of the order entered by the user sort the table must be built on a sequence table, and then directly into th
1
- 电话簿管理系统,实现对电话簿的插入、删除、修改、排序等-Phone book management system to achieve the insertion of the phone book, delete, modify, sort, etc.
string
- 字符串排序,共有5个排序,bubble,insertion,merge,heap,quick,能排大规模数据-String sorting, a total of 5 sort, bubble, insertion, merge, heap, quick, large-scale data can be ranked
tree
- 平衡二叉树:插入结点 在平衡二叉排序树BBST上插入一个新数据元素e 删除结点 删除结点过程与插入结点的操作类似,基本过程是:平衡二叉树,找到要删除的结点,删除一个结点,变成二叉树,旋转,变回平衡二叉树。 查找 把给定值与根结点作比较,若给定值大于根结点则查找其右子树,小于则查找其左子树,如此类推。 -Insertion node in the balanced binary sort tree BBST insert a new data element e remov