We consider the problem of computing information theoretic functions such as entropy on a data stream, using sublinear space. Our first result deals with a measure we call the "entropy norm" of an input stream: it is closely related to entropy but is structurally similar to the well-studied notion of frequency moments. We give a polylogarithmic space one-pass algorithm for estimating this norm under certain conditions on the input stream. We also prove a lower bound that rules out such an algorithm if these conditions do not hold. Our second group of results are for estimating the empirical entropy of an input stream. We first present a sublinear space one-pass algorithm for this problem. For a stream of m items and a given real parameter , our algorithm uses space eO(m2 ) and provides an approximation of 1/ in the worst case and (1 + ) in "most" cases. We then present a two-pass polylogarithmic space (1+)-approximation algorithm. All our algorithms are quite simple...
Amit Chakrabarti, Khanh Do Ba, S. Muthukrishnan