首页    期刊浏览 2024年09月13日 星期五
登录注册

文章基本信息

  • 标题:Optimal Time-Space Trade-Offs for Non-Comparison-Based Sorting
  • 本地全文:下载
  • 作者:Rasmus Pagh ; Jakob Pagter
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:2001
  • 卷号:8
  • 期号:2
  • 出版社:Aarhus University
  • 摘要:We study the fundamental problem of sorting n integers of w bits on a unit-cost RAM with word size w, and in particular consider the time-space trade-off (product of time and space in bits) for this problem. For comparison-based algorithms, the time-space complexity is known to be Theta(n^2). A result of Beame shows that the lower bound also holds for non-comparison-based algorithms, but no algorithm has met this for time below the comparison-based Omega(n lg n) lower bound. We show that if sorting within some time bound T~ is possible, then time T = O(T~ + n lg* n) can be achieved with high probability using space S = O(n^2/T + w), which is optimal. Given a deterministic priority queue using amortized time t(n) per operation and space n^O(1), we provide a deterministic algorithm sorting in time T = O(n (t(n) + lg* n)) with S = O(n^2/T+w). Both results require that w Using existing priority queues and sorting algorithms, this implies that we can deterministically sort time-space optimally in time Theta(T) for T >= n(lg lg n)^2, and with high probability for T >= n lg lg n. Our results imply that recent lower bounds for deciding element distinctness in o(n lg n) time are nearly tight.
国家哲学社会科学文献中心版权所有