Cache Efficient Functional Algorithms.

The widely studied I/O and ideal-cache models were developed to account for the large difference in costs to access memory at different levels of the memory hierarchy. Both models are based on a two level memory hierarchy with a fixed size fast memory (cache) of size M, and an unbounded slow memory...

Descripción completa

Detalles Bibliográficos
Publicado en:Communications of the ACM Vol. 58; no. 7; pp. 101 - 109
Autores principales: Blelloch, Guy E., Harper, Robert
Formato: Artículo
Publicado: Association for Computing Machinery Jul2015
Materias:
Acceso en línea:Ver este registro en EBSCOhost
fields @attributes:
  recordID: 1
pdfLink:
plink: https://search.ebscohost.com/login.aspx?direct=true&db=hlh&AN=103442239&site=ehost-live
header:
  @attributes:
    shortDbName: hlh
    uiTerm: 103442239
    longDbName: Humanities International Complete
    uiTag: AN
  controlInfo:
    bkinfo:
    jinfo:
      jid:
        00010782
        ACM
      jtl: Communications of the ACM
      issn: 00010782
      maglogo: N
    pubinfo:
      dt: Jul2015
      vid: 58
      iid: 7
      pid: 68
      pub: Association for Computing Machinery
    artinfo:
      ui:
        103442239
        10.1145/2776825
      ppf: 101
      ppct: 8
      formats:
      tig:
        atl: Cache Efficient Functional Algorithms.
      aug:
        au:
          Blelloch, Guy E.
          Harper, Robert
        affil: Carnegie Mellon University, Pittsburgh, PA
      su:
        Algorithm research
        Cache memory
        Cost analysis
        Computer storage devices
        Random access memory
        Computer science research
      sug:
        subj:
          Algorithm research
          Cache memory
          Cost analysis
          Computer storage devices
          Random access memory
          Computer science research
      ab: The widely studied I/O and ideal-cache models were developed to account for the large difference in costs to access memory at different levels of the memory hierarchy. Both models are based on a two level memory hierarchy with a fixed size fast memory (cache) of size M, and an unbounded slow memory organized in blocks of size B. The cost measure is based purely on the number of block transfers between the primary and secondary memory. All other operations are free. Many algorithms have been analyzed in these models and indeed these models predict the relative performance of algorithms much more accurately than the standard Random Access Machine (RAM) model. The models, however, require specifying algorithms at a very low level, requiring the user to carefully lay out their data in arrays in memory and manage their own memory allocation. We present a cost model for analyzing the memory efficiency of algorithms expressed in a simple functional language. We show how some algorithms written in standard forms using just lists and trees (no arrays) and requiring no explicit memory layout or memory management are efficient in the model. We then describe an implementation of the language and show provable bounds for mapping the cost in our model to the cost in the ideal-cache model. These bounds imply that purely functional programs based on lists and trees with no special attention to any details of memory layout can be asymptotically as efficient as the carefully designed imperative I/O efficient algorithms. For example we describe an o(...log...) cost sorting algorithm, which is optimal in the ideal cache and I/O models.
      pubtype: Periodical
      doctype: Article
      src: R
    language: English
    refInfo:
    copyright:
      @attributes:
        flag: Y
      dt:
        @attributes:
          year: 2015
    holdings:
      @attributes:
        islocal: N