摘要:
在前面的排序中所描述的算法。最快的排序算法是归并排序,但是有一个缺陷合并排序排序过程的需求O(N)额外的空间。本文介绍了高速的排序算法到位排序算法,所需的复杂性的额外空间O(1)。算法介绍:高速排序事实上一种依据需找某个元素的详细位置进行排序的方法。比方所存在例如以下数组选择第一个元素5。找到5终于... 阅读全文
posted @ 2015-07-06 15:16
blfshiye
阅读(485)
评论(0)
推荐(0)
摘要:
【例7-3 文本编辑框创建一个简单的调查问卷】01 02 03 04 05 调查问卷 06 07 08 09 10 11 12 13 14 调查问卷 15 16 17 18 19 20 21 22 23 请问您对本书有何看法?24 25 26 27 请问您是在哪里得到这... 阅读全文
posted @ 2015-07-06 14:12
blfshiye
阅读(203)
评论(0)
推荐(0)
摘要:
#include #include int main(){ int num1,num2; int *num1_p=&num1,*num2_p=&num2,*pointer; printf("Input the first number:"); scanf("%d",num1_p); printf("... 阅读全文
posted @ 2015-07-06 12:53
blfshiye
阅读(164)
评论(0)
推荐(0)
摘要:
软考试。遇到很easy当标题,我们可以在比分上必须-Take -Take,取的过程中也必须迅速,高效地。这个博客我将分享一个下午称号(数据流图)做题技巧,教你高速拿到高分。以2011年五月的真题为例。图一:图二:技巧一:标数字第一遍大概浏览题目所表达的意思。这是不论什么一种技巧里都会提到的,这里我就... 阅读全文
posted @ 2015-07-06 10:12
blfshiye
阅读(168)
评论(0)
推荐(0)
摘要:
Harry Potter and the Hide StoryProblem DescriptioniSea is tired of writing the story of Harry Potter, so, lucky you, solving the following problem is ... 阅读全文
posted @ 2015-07-06 09:14
blfshiye
阅读(190)
评论(0)
推荐(0)
摘要:
#include /* 希尔排序基本思想:希尔排序又称为缩小增量排序,对简单插入排序的优化。(外部分组gap,组内部插入排序!!)特点:一种不稳定的排序*/void ShellSort(int array[],int len){ int i,j; int gap;// gap int temp... 阅读全文
posted @ 2015-07-06 08:43
blfshiye
阅读(228)
评论(0)
推荐(0)

浙公网安备 33010602011771号