码迷,mamicode.com
首页 >  
搜索关键字:selection sort 选择排序    ( 16342个结果
Sort Colors
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:其他好文   时间:2014-06-04 20:49:33    阅读次数:276
LeetCode: Sort Colors 题解
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:其他好文   时间:2014-06-03 13:13:50    阅读次数:537
精悍的指令
最近在复习自己的linux笔记,看到cut和sort的时候突然想起一直遗忘做的一件事:给某文本文件去重。发现用这两条指令的组合可以很轻松的完成自己想做的工作。要处理的原文本文件一条数据的格式是:str1 # str2 #str3,每行一条这种格式的数据。我需要的只是str2去重后的数据,所以可以这么...
分类:其他好文   时间:2014-05-30 20:18:52    阅读次数:410
《大话数据结构》学习笔记 排序
排序的严格定义:假设含有n个记录的序列为{r1,r2,......,rn},对应的关键字分别为{k1,k2......,kn},需确定1,2,......,n的一种排列p1,p2,......,pn,使其相应的关键字满足Kp1希尔排序),选择排序类(简单选择排序—>堆排序),交换排序类(冒泡排序—>...
分类:其他好文   时间:2014-05-30 17:43:33    阅读次数:278
Sort List
Sort a linked list inO(nlogn) time using constant space complexity./** * Definition for singly-linked list. * struct ListNode { * int val; * L...
分类:其他好文   时间:2014-05-30 15:17:18    阅读次数:312
Insertion Sort List
Sort a linked list using insertion sort./** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNo...
分类:其他好文   时间:2014-05-30 15:14:27    阅读次数:245
【HOW】如何对Reporting Services表格中数据按字段排序
Reporting Services中可以设置排序的地方非常多,有很多地方从其字面意思上好像是对表格数据的排序,但实际都不管用。在多次尝试后,得到如下的有效设置方式:1. 鼠标右键单击要排序字段的内容单元格(不是标题单元格)。2. 在弹出菜单中选择:行组 > 组属性。3. 在弹出窗口中选择“排序”选...
分类:其他好文   时间:2014-05-30 08:00:20    阅读次数:241
20140528 归并排序 内排序 外排序
1、归并排序 2、内排序和外排序 外排序的一个例子是外归并排序(External merge sort),它读入一些能放在内存内的数据量,在内存中排序后输出为一个顺串(即是内部数据有序的临时文件),处理完所有的数据后再进行归并。比如,要对 900 MB 的数据进行排序,但机器上只有 100 MB 的...
分类:其他好文   时间:2014-05-30 00:13:46    阅读次数:257
浅谈希尔排序-----摘录
希尔排序一。个人理解希尔排序(Shell Sort)是插入排序的一种。是针对直接插入排序算法的改进。该方法又称缩小增量排序,因DL.Shell于1959年提出而得名。其实,希尔排序本质也就是直接插入算法的升级,希尔的基本思想,就是先将整个待排元素序列分割成若干个子序列(由相隔某个“增量”的元素组成的...
分类:其他好文   时间:2014-05-29 21:49:30    阅读次数:516
Weka数据挖掘平台
Explorer:menu selection and form filling缺点:when you open a dataset, it immediately loads it all in. This means that the Explorer can only be applied t...
分类:其他好文   时间:2014-05-29 21:03:09    阅读次数:385
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!