• DocumentCode
    2295503
  • Title

    Sequence sorting in secondary storage

  • Author

    Arge, Lars ; Ferragina, Paolo ; Grossi, Roberto ; Vitter, Jeffrey Scott

  • Author_Institution
    Dept. of Comput. Sci., Duke Univ., Durham, NC, USA
  • fYear
    1997
  • fDate
    11-13 Jun 1997
  • Firstpage
    329
  • Lastpage
    346
  • Abstract
    We investigate the I/O complexity of the problem of sorting sequences (or strings of characters) in external memory, which is a fundamental component of many large-scale text applications. In the standard unit-cost RAM comparison model, the complexity of sorting K strings of total length N is Θ(K log2 K+N). By analogy, in the external memory (or I/O) model, where the internal memory has size M and the block transfer size is B, it would be natural to guess that the I/O complexity of sorting sequences is Θ((K/B)logM B/(K/B)+(N/B)), but the known algorithms do not come even close to achieving this bound. Our results show, somewhat counterintuitively, that the I/O complexity of string sorting depends upon the length of the strings relative to the block size. We first consider a simple comparison I/O model, where the strings are not allowed to be broken into their individual characters, and we show that the I/O complexity of string sorting in this model is Θ((N1/B)logMB/(N1/B)+K2 +(N/B)), where N1 is the total length of all strings shorter than B and K2 is the number of strings longer than B. We then consider two more general I/O comparison models in which string breaking is allowed. We obtain improved algorithms and in several cases lower bounds that match their I/O bounds. Finally, we develop more practical algorithms outside the comparison model
  • Keywords
    computational complexity; digital storage; magnetic disc storage; optical disc storage; sequences; sorting; I/O comparison models; I/O complexity; block transfer size; character sorting; disk access; external memory size; large-scale text applications; lower bounds; secondary storage; sequence sorting; string breaking; string length; unit-cost RAM comparison model; Application software; Computer science; Delay; Large-scale systems; Military computing; Random access memory; Read-write memory; Relational databases; Software libraries; Sorting;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Compression and Complexity of Sequences 1997. Proceedings
  • Conference_Location
    Salerno
  • Print_ISBN
    0-8186-8132-2
  • Type

    conf

  • DOI
    10.1109/SEQUEN.1997.666927
  • Filename
    666927