cs345-streams2

cs345-streams2 - 1 More Stream-Mining Counting How Many...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 More Stream-Mining Counting How Many Elements Computing Moments 2 Counting Distinct Elements r Problem : a data stream consists of elements chosen from a set of size n . Maintain a count of the number of distinct elements seen so far. r Obvious approach : maintain the set of elements seen. 3 Applications r How many different words are found among the Web pages being crawled at a site? R Unusually low or high numbers could indicate artificial pages (spam?). r How many different Web pages does each customer request in a week? 4 Using Small Storage r Real Problem : what if we do not have space to store the complete set? r Estimate the count in an unbiased way. r Accept that the count may be in error, but limit the probability that the error is large. 5 Flajolet-Martin* Approach r Pick a hash function h that maps each of the n elements to log 2 n bits, uniformly. R Important that the hash function be (almost) a random permutation of the elements....
View Full Document

Page1 / 18

cs345-streams2 - 1 More Stream-Mining Counting How Many...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online