One-pass algorithm: Difference between revisions

Content deleted Content added
Dmh (talk | contribs)
m s/average/mean/
Dmh (talk | contribs)
mNo edit summary
Line 31:
* Find the [[mode (statistics)|modes]] (This is not the same as finding the most frequent symbol from a limited alphabet).
* Sort the list.
* Count the number of items greater than or less than the [[mean]]. However, this can be done in constant memory with two passes: Pass 1 findfinds the average and pass 2 does the counting. This two-pass algorithm is a [[streaming algorithm]] but not a one-pass algorithm.
 
== References==