首页    期刊浏览 2024年11月26日 星期二
登录注册

文章基本信息

  • 标题:Unidirectional Input/Output Streaming Complexity of Reversal and Sorting
  • 本地全文:下载
  • 作者:Nathana{\"e}l Fran{\c{c}}ois ; Rahul Jain ; Fr{\'e}d{\'e}ric Magniez
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2014
  • 卷号:28
  • 页码:654-668
  • DOI:10.4230/LIPIcs.APPROX-RANDOM.2014.654
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We consider unidirectional data streams with restricted access, such as read-only and write-only streams. For read-write streams, we also introduce a new complexity measure called expansion, the ratio between the space used on the stream and the input size. We give tight bounds for the complexity of reversing a stream of length n in several of the possible models. In the read-only and write-only model, we show that p-pass algorithms need memory space Theta(n/p). But if either the output stream or the input stream is read-write, then the complexity falls to Theta(n/p^2). It becomes polylog(n) if p = O(log n) and both streams are read-write. We also study the complexity of sorting a stream and give two algorithms with small expansion. Our main sorting algorithm is randomized and has O(1) expansion, O(log n) passes and O(log n) memory.
  • 关键词:Streaming Algorithms; Multiple Streams; Reversal; Sorting
国家哲学社会科学文献中心版权所有