問題詳情

32. Which of the following are false? i. The worst-case running time and expected running time are equal to within constant factors for anyrandomized algorithm. ii. Sorting 6 elements with a comparison sort requires at least 10 comparisons in the worst case. iii. In Blum, Floyd, Pratt, Rivest, and Tarjan [1973] worst-case linear-time order statistics algorithm,instead of dividing the n elements into groups of 5, dividing them into groups of 3 gives the samelinear time complexity.
iv. If a dynamic programming problem satisfies the optimal substructure property, then a locally optimalsolution is a globally optimal.
(A)i
(B)i,iii,iv
(C)i,ii;,iv
(D)ii,iv
(E)iii,iv

參考答案

答案:[無官方正解]
難度:計算中-1
書單:沒有書單,新增