Comparison-Based Time-Space Lower Bounds for Selection

被引:19
作者
Chan, Timothy M. [1 ]
机构
[1] Univ Waterloo, Sch Comp Sci, Waterloo, ON N2L 3G1, Canada
基金
加拿大自然科学与工程研究理事会;
关键词
Algorithms; Theory; Adversary arguments; lower bounds; median finding; RAM; randomized algorithms; streaming algorithms; time-space trade-offs; ELEMENT DISTINCTNESS; TRADE-OFFS; COMPUTATION; MEMORY;
D O I
10.1145/1721837.1721842
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We establish the first nontrivial lower bounds on time-space trade-offs for the selection problem. We prove that any comparison-based randomized algorithm for finding the median requires Omega (n log log(S) n) expected time in the RAM model (or more generally in the comparison branching program model), if we have S bits of extra space besides the read-only input array. This bound is tight for all S >> log n, and remains true even if the array is given in a random order. Our result thus answers a 16-year-old question of Munro and Raman [1996], and also complements recent lower bounds that are restricted to sequential access, as in the multipass streaming model [Chakrabarti et al. 2008b]. We also prove that any comparison-based, deterministic, multipass streaming algorithm for finding the median requires Omega (n log*(n/s) + n log(s) n) worst-case time (in scanning plus comparisons), if we have s cells of space. This bound is also tight for all s >> log(2) n. We get deterministic lower bounds for I/O-efficient algorithms as well. The proofs in this article are self-contained and do not rely on communication complexity techniques.
引用
收藏
页数:16
相关论文
共 30 条
[1]   Determinism versus nondeterminism for linear time RAMs with memory restrictions [J].
Ajtai, M .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2002, 65 (01) :2-37
[2]  
AJTAI M, 1999, P 40 FOCS, P60
[3]  
Arge L, 2000, LECT NOTES COMPUT SC, V1851, P448
[4]   Time-space trade-off lower bounds for randomized computation of decision problems [J].
Beame, P ;
Saks, M ;
Sun, XD ;
Vee, E .
JOURNAL OF THE ACM, 2003, 50 (02) :154-195
[5]   Time-space tradeoffs for branching programs [J].
Beame, P ;
Jayram, TS ;
Saks, M .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2001, 63 (04) :542-572
[7]  
Bent S.W., 1985, Proc. ACM Symp. on Theory of Computing (STOC), P213
[8]  
Blum M., 1973, Journal of Computer and System Sciences, V7, P448, DOI 10.1016/S0022-0000(73)80033-9
[9]   A TIME-SPACE TRADEOFF FOR SORTING ON NON-OBLIVIOUS MACHINES [J].
BORODIN, A ;
FISCHER, MJ ;
KIRKPATRICK, DG ;
LYNCH, NA ;
TOMPA, M .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1981, 22 (03) :351-364
[10]   A TIME-SPACE TRADEOFF FOR ELEMENT DISTINCTNESS [J].
BORODIN, A ;
FICH, F ;
DERHEIDE, FMA ;
UPFAL, E ;
WIGDERSON, A .
SIAM JOURNAL ON COMPUTING, 1987, 16 (01) :97-99