码迷,mamicode.com
首页 >  
搜索关键字:sorting    ( 708个结果
2017-2018-1 20162306 实验四 实验报告
2017 2018 1 20162306 实验四 实验报告 实验三:查找与排序 1 实验要求: 完成教材P302 Searching.Java ,P305 Sorting.java中方法的测试 不少于10个测试用例,提交测试用例设计情况(正常,异常,边界,正序,逆序),用例数据中要包含自己学号的后四 ...
分类:其他好文   时间:2017-11-27 00:02:46    阅读次数:120
USACO Section 2.1 Sorting a Three-Valued Sequence 解题报告
题目 题目描述 给N个整数,每个整数只能是1,2,或3。现在需要对这个整数序列进行从小到大排序,问最少需要进行几次交换。`N(1 include using namespace std; int N; int num[1010]; int main() { ifdef MARK freopen("s ...
分类:其他好文   时间:2017-11-26 16:46:20    阅读次数:132
对象的插入排序
``` /* * objectSort.java * demonstrate sorting objects (use insertion sort) */ public class Person { private String firstname; private String lastname... ...
分类:编程语言   时间:2017-11-21 10:47:26    阅读次数:151
Sorting It All Out
An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smallest to large ...
分类:其他好文   时间:2017-11-21 01:03:32    阅读次数:138
数据结构与算法 - 排序与搜索
排序与搜索 排序算法(英语:Sorting algorithm)是一种能将一串数据依照特定顺序进行排列的一种算法。 1.冒泡排序 冒泡排序(英语:Bubble Sort)是一种简单的排序算法。它重复地遍历要排序的数列,一次比较两个元素,如果他们的顺序错误就把他们交换过来。遍历数列的工作是重复地进行直 ...
分类:编程语言   时间:2017-11-19 19:49:21    阅读次数:195
深度排序与alpha混合
原文: https://blogs.msdn.microsoft.com/shawnhar/2009/02/18/depth-sorting-alpha-blended-objects/ 翻译:李现民 最后修改:2012-07-03 “为什么我的透明物体的绘制顺序是错误的,或者为什么它们的一部分不见 ...
分类:编程语言   时间:2017-11-14 14:32:35    阅读次数:168
[LintCode] Topological Sorting
Given an directed graph, a topological order of the graph nodes is defined as follow: For each directed edge A -> B in graph, A must before B in the o ...
分类:其他好文   时间:2017-11-07 14:25:59    阅读次数:168
快速排序
作者: 阮一峰 日期: 2011年4月 4日 日本程序员norahiko,写了一个排序算法的动画演示,非常有趣。 这个周末,我就用它当做教材,好好学习了一下各种排序算法。 排序算法(Sorting algorithm)是计算机科学最古老、最基本的课题之一。要想成为合格的程序员,就必须理解和掌握各种排 ...
分类:编程语言   时间:2017-11-07 14:20:16    阅读次数:128
Data structure basics - Java Implementation
Stack & Queue Implementations Basic Sorting Algorithm Implementations package cn.edu.tsinghua.stat.mid_term; /** * Created by shuaiyi on 04/11/2017. * ...
分类:编程语言   时间:2017-11-05 16:33:37    阅读次数:152
1052. Linked List Sorting (25)
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key ...
分类:其他好文   时间:2017-11-05 10:19:24    阅读次数:164
708条   上一页 1 ... 19 20 21 22 23 ... 71 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!