码迷,mamicode.com
首页 >  
搜索关键字:question    ( 5100个结果
2.3.12
question: Show, in the style of the trace given with the code, how the entropy-optimal sort first partitions the array B A B A B A B A C A D A B R A. ...
分类:其他好文   时间:2018-06-03 19:32:06    阅读次数:152
2.3.8
question: About how many compares will Quick.sort() make when sorting an array of N items that are all equal? answer: //官网答案 Solution. ~ N lg N compar ...
分类:其他好文   时间:2018-06-03 19:25:09    阅读次数:167
2.3.7
question: Find the expected number of subarrays of size 0, 1, 2 when quicksort is used to sort an array of N items with distinct keys, If you are math ...
分类:其他好文   时间:2018-06-03 17:36:47    阅读次数:190
2.3.5
question: Give a code fragment that sorts an array that is known to consist of items having just two distinct keys. answer: //就是三取样切分的简化版 ...
分类:其他好文   时间:2018-06-03 17:34:50    阅读次数:140
2.3.2
question: Show, in the style of the quicksort trace given in this section, how quicksort sorts the array E A S Y Q U E S T I O N (for the purpose of t ...
分类:其他好文   时间:2018-06-03 16:22:49    阅读次数:139
1.4.12
question: Write a program that, given two sorted arrays of N int values, prints all elements that appear in both arrays, in sorted order. The running ...
分类:其他好文   时间:2018-06-03 15:39:00    阅读次数:189
51nod 1206 && hdu 1828 Picture (扫描线+离散化+线段树 矩阵周长并)
1206 Picture 题目来源: IOI 1998 基准时间限制:2 秒 空间限制:131072 KB 分值: 160 难度:6级算法题 收藏 关注 1206 Picture 题目来源: IOI 1998 基准时间限制:2 秒 空间限制:131072 KB 分值: 160 难度:6级算法题 12 ...
分类:其他好文   时间:2018-06-03 15:36:39    阅读次数:199
1.4.9
question: Give a formula to predict the running time of a program for a problem of size N when doubling experiments have shown that the doubling facto ...
分类:其他好文   时间:2018-06-03 14:51:00    阅读次数:178
1.4.11
question: Add an instance method howMany() to StaticSETofInts(page 99) that finds the number of occurences of a given key in time proportional to logN ...
分类:其他好文   时间:2018-06-03 14:50:12    阅读次数:142
1.4.10
question: Modify binary search so that it always returns the element with the smallest index that mathes the search element (and still guarantees loga ...
分类:其他好文   时间:2018-06-03 14:31:23    阅读次数:132
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!