搜索资源列表
yes
- 完成统计聚点个数的算法步骤 用一维数组记录各个聚点的象素点数 用快速排序方法对数组排序 按计算平均象素点数 在外存中用文件的形式保存所有数据 -complete statistics accumulation of the number of steps algorithm dimensional array with a record of each meeting point of the pixel points rapid sequencing methods u
jordluo
- 模拟手机短消息功能 问题描述 该系统要求对设计一个手机短消息系统,具有排序、查找、更新、显示等功能。通过此课题,熟练掌握数组、指针的各种操作,以及一些算法思想的应用。 -simulated phone short message describing the functional problems of the system design requirements for a mobile phone short message system, with sorting, locate
ag
- 这个双重循环完成按字母顺序排序的工作。在外层循环中把字符数组cs[i]中的国名字符串拷贝到数组st中,并把下标i赋予P。进入内层循环后,把st与cs[i]以后的各字符串作比较,若有比st小者则把该字符串拷贝到st中,并把其下标赋予p。内循环完成后如p不等于i说明有比cs[i]更小的字符串出现,因此交换cs[i]和st的内容。至此已确定了数组cs的第i号元素的排序值。然后输出该字符串。在外循环全部完成之后即完成全部排序和输出。-The double circle in alphabetical o
xuanze
- 本程序通过选择排序算法的特点,实现数组的选择排序.. 大家进行参考. -This procedure by selecting the characteristics of sorting algorithm, the realization of the choice of array to sort. . We conduct reference.
market
- 1、系统以菜单方式工作,密码登陆。 2、图书信息的录入功能(增加数据)。 3、图书信息的删除(删除数据)。 4、图书信息的浏览功能(查找数据)。 5、图书信息的删除(修改数据)。 6、]图书信息的计算并排序。计算所有图书的总价格及平均价格(aver,单精度,输出一位小数),将包括所有数据的数组元素按价格从高到低的顺序排序打印出来-1, the system in order to work the way the menu, the password login. 2, bo
ShellSort
- Shell sort is a sorting algorithm, devised by Donald Shell in 1959, that is a generalization of insertion sort, which exploits the fact that insertion sort works efficiently on input that is already almost sorted. It improves on insertion sort by all
class
- 面向对象的C#编程 设计一个图书卡类Card,用来保存图书馆卡片分类记录。这个类的成员包括书名、作者、馆藏数量。至少提供两个方法。Store书的入库处理,show显示图书信息。运行程序时,可以从控制台上输入需要入库的图书总数,根据这个总数创建Card对象数组,然后输入数据,最后可以选择按书名、作者、入库量排序。-Object-oriented programming to design a C# class library card Card, to save the library card
RandomAndSort
- 结合数组、排序及TeeChart绘图来实现大量随机数的排序-Associative array, sorting and TeeChart drawing a large number of random numbers to achieve the sort
C
- 小型C语言程序库,数列排序,数组求和,指针-Small C language library, column sorting, the array sum, pointer, etc.
First_Test1
- 1、使用System.Array类的方法获取已知数组(数组元素为80,90,67,89,78,85,45,69,77,95)的维数、长度,并对数组排序、反转。 提示:Rank,Length,Sort(),Reverse() 2、 使用Random方法生成随机数。数组A中有8个互不相同的元素,数组B中有5个互不相同的元素,A和B中的数为100以内的正整数。编程产生数组C,C中包含在A中但不在B中的元素。 任意输入两个正整数a,b, 求a+b的和, a,b的取值范围为1—10100
homework
- 将两个分别从小到大排列的有序数组a和b复制合并到第3个有序数组c中。m和 n分别是数组a和b的元素个数,结果c的元素个数为k。例如,a和b数组分别为{1,2, 2,3,8}和{3,4,7,8},则结果数组c的值是:{1,2,2,3,3,4,7,8,8)。算法是:将a、b两个数组看成两个队列,比较队首的两个元素,将较小者放入c队列尾部,如果队首的两个元素相等,则先选择a队列首部元素加入c队列尾部。循环执行以上过程,直到a或b队列之一为空,然后将另一个非空队列拷贝到c队列尾部。注意:不允许使用其它算
Sorting-an-array
- 实现控制台下对一个数组进行排序,分为用sort函数进行排序和自己编程进行排序。-Realize the console next to sort an array, sort and into their own programming with sort function to sort.
sequence
- 实现对数组的六种常规排序算法,并分别对其进行耗时对比。-Achieve six regular array sorting algorithm, and its time consuming respectively compared.
main
- ACM练习,调用系统函数实现数组的快速排序,节省时间和空间-ACM exercises, call the system function for fast sorting of the array, saving time and space
QuickSort
- 快速排序(快速排序)是一种快速排序算法,它被广泛应用于实践。它是用于分而治之的原则。快速排序的工作原理是划分一个给定的数组A [P。 。 R]分成两个非空的子阵列A [页。 。 Q]和A [Q + 1。 。 R]使得在[P每个元素。 。问]是小于或等于每个元素A [Q + 1。 。 R]。然后两个子阵列被递归调用快速排序排序。快速排序的细节描述如下: 1.选择一个支点值(基准)。您可以采取的第一个元素的值 枢轴值,但它可以是任何值,这是在排序的值的范围,即使它不存在于阵列中。 2.分
QuickSort
- Quicksort (sometimes called partition-exchange sort) is an efficient sorting algorithm, serving as a systematic method for placing the elements of an array in order. Developed by Tony Hoare in 1959
TONGPAIXU.doc
- 通过这个程序实现桶排序。将数组分到有限数量的桶子里。每个桶子再个别排序(有可能再使用别的排序算法或是以递归方式继续使用桶排序进行排序)。桶排序是鸽巢排序的一种归纳结果。-Realize bucket sort through this program. A limited number will be assigned to an array of a bucket. Each individual bucket and then sorted (it is possible to re-use
SortArray
- 数组中的数据排序,产生一个随机数组,然后进行排列输出(Array of data sorting, resulting in a random array, and then arrange the output)
