## Abstract

We initiate the study of sublinear-time algorithms in the external memory model [1]. In this model, the data is stored in blocks of a certain size B, and the algorithm is charged a unit cost for each block access. This model is well-studied, since it reflects the computational issues occurring when the (massive) input is stored on a disk. Since each block access operates on B data elements in parallel, many problems have external memory algorithms whose number of block accesses is only a small fraction (e.g. 1/B) of their main memory complexity. However, to the best of our knowledge, no such reduction in complexity is known for any sublinear-time algorithm. One plausible explanation is that the vast majority of sublinear-time algorithms use random sampling and thus exhibit no locality of reference. This state of affairs is quite unfortunate, since both sublinear-time algorithms and the external memory model are important approaches to dealing with massive data sets, and ideally they should be combined to achieve best performance. In this paper we show that such combination is indeed possible. In particular, we consider three well-studied problems: testing of distinctness, uniformity and identity of an empirical distribution induced by data. For these problems we show random-sampling-based algorithms whose number of block accesses is up to a factor of smaller than the main memory complexity of those problems. We also show that this improvement is optimal for those problems. Since these problems are natural primitives for a number of sampling-based algorithms for other problems, our tools improve the external memory complexity of other problems as well.

Original language | English |
---|---|

Title of host publication | Automata, Languages and Programming - 36th International Colloquium, ICALP 2009, Proceedings |

Pages | 83-94 |

Number of pages | 12 |

Edition | PART 1 |

DOIs | |

State | Published - 2009 |

Event | 36th International Colloquium on Automata, Languages and Programming, ICALP 2009 - Rhodes, Greece Duration: 5 Jul 2009 → 12 Jul 2009 |

### Publication series

Name | Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) |
---|---|

Number | PART 1 |

Volume | 5555 LNCS |

ISSN (Print) | 0302-9743 |

ISSN (Electronic) | 1611-3349 |

### Conference

Conference | 36th International Colloquium on Automata, Languages and Programming, ICALP 2009 |
---|---|

Country/Territory | Greece |

City | Rhodes |

Period | 5/07/09 → 12/07/09 |

### Funding

Funders | Funder number |
---|---|

Danish National Research Association | |

National Science Foundation | 0732334, 0728645, 0514771 |

Marie Curie | 231077 |

Center for Massive Data Algorithmics |