ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
TwoLevelMemory.h

The two-level memory model of Aggarwal and Vitter, simulated so that the algorithms of the external memory can be run and their I/Os counted. More...

Files

file  ADS/external/TwoLevelMemory.h
 The two-level memory model of Aggarwal and Vitter, simulated so that the algorithms of the external memory can be run and their I/Os counted: an internal memory of \( M \) items and a disk of unbounded size, read and written by blocks of \( B \) items, an I/O moving one block.

Classes

class  ADS::TwoLevelMemory
 the parameters \( B \) and \( M \) of the model, the counters of the I/Os and the occupation of the internal memory More...
class  ADS::MemoryLease
 \( k \) items of the internal memory, taken on construction and given back on destruction More...
class  ADS::DiskFile< T >
 a file of items on the disk of the model, in blocks of \( B \) items More...
class  ADS::DiskReader< T >
 reads a file through a buffer of one block, \( B \) items of the memory More...
class  ADS::DiskWriter< T >
 appends to a file through a buffer of one block, \( B \) items of the memory; the last partial block is written by close() or by the destructor More...

Detailed description

The two-level memory model of Aggarwal and Vitter, simulated so that the algorithms of the external memory can be run and their I/Os counted.

The definitions, the invariants and the costs of the area are in Theory of external memory.