One-pass algorithm: Difference between revisions

Content deleted Content added
Dmh (talk | contribs)
Note that finding the middle element is also two-pass
Line 14:
Given a list of numbers:
* Find the ''k'' largest or smallest elements, ''k'' given in advance.
* Find the [[summation|sum]], [[mean]], [[variance]] and [[standard deviation]] of the elements of the list. See also [[Algorithms_for_calculating_varianceAlgorithms for calculating_variance]].
 
Given a list of symbols from an alphabet of ''k'' symbols, given in advance.