文章分类 -  数据算法

摘要:http://www.cnblogs.com/alicell/p/9073977.html#3984839 冒泡排序 冒泡排序(buble sort)是一个比较入门的排序算法。顾名思义,它根据将最大(或最小)的数依次冒泡从而实现排序。 如下图所示,白色部分为待排序数组,红色部分为已找出的“较大的”数 阅读全文
posted @ 2018-05-28 17:45 事理 阅读(577) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/pettyColorcat/p/10861302.html 快速排序算法说明: 原始数组L1,从中任意选择一个基准数F(一般选择第1个),小于F的数据放在F的左边记为数组minList,大于F的数据放在F的右边记为数组maxList。那么 L1=min 阅读全文
posted @ 2017-12-05 11:02 事理 阅读(258) 评论(0) 推荐(0)
摘要:public static int BinarySearchRecursion(IList arry, ref int value){ //如果传入的数组为空或者数组长度 arry, ref int value, ref int start, ref int end){ if (star... 阅读全文
posted @ 2014-07-09 17:54 事理 阅读(215) 评论(0) 推荐(0)