Synonyms
Data stream algorithm; One-pass algorithm; Streaming algorithm
Definition
A one-pass algorithm receives as input a list of data items x1, x2, x3,…. It can read these data items only once, from left to right, i.e., in increasing order of the indices i = 1, 2, 3,…. Critical parameters of a one-pass algorithm are (1) the size of the memory used by the algorithm, and (2) the processing time per data item xi. Typically, a one-pass algorithm is designed for answering one particular query against the input data. To this end, the algorithm stores and maintains a suitable data structure which, for each i, is updated when reading data item xi.
The two parameters processing time per data item and memory size are usually measured as functions depending on the size N of the input (different measures of the input sizeare considered in the literature, among them, e.g., the number of data items occurring in the input, as well as the total number of bits needed for storing the entire input)....
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Recommended Reading
Alon N, Matias Y, Szegedy M. The space complexity of approximating the frequency moments. J Comput Syst Sci. 1999;58(1):137–47.
Henzinger M, Raghavan P, Rajagopalan S. Computing on data streams. In: External memory algorithms. DIMACS series in discrete mathematics and theoretical computer science 50. Boston: American Mathematical Society; 1999. p. 107–18.
Muthukrishnan S. Data streams: algorithms and applications. Found Trends Theor Comput Sci. 2005;1(2):117–236.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Section Editor information
Rights and permissions
Copyright information
© 2018 Springer Science+Business Media, LLC, part of Springer Nature
About this entry
Cite this entry
Schweikardt, N. (2018). One-Pass Algorithm. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_253
Download citation
DOI: https://doi.org/10.1007/978-1-4614-8265-9_253
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-8266-6
Online ISBN: 978-1-4614-8265-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering