Skip Navigation
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml

Computer Scientists Invent an Efficient New Way to Count

www.quantamagazine.org Computer Scientists Invent an Efficient New Way to Count | Quanta Magazine

By making use of randomness, a team has created a simple algorithm for estimating large numbers of distinct objects in a stream of data.

Computer Scientists Invent an Efficient New Way to Count | Quanta Magazine

Traditionally, algorithms for counting distinct items in a stream of data would store all the items. A new algorithm, called CVM, uses randomization to estimate the number of distinct items with minimal memory usage. The trick is to keep track of items by recording them and then randomly deleting some. The probability of an item staying on the list is related to the number of rounds it survives. With this method, the researchers were able to accurately estimate the number of distinct words in Hamlet.

5
Data Structures and Algorithms @programming.dev Nemeski @lemm.ee
Computer Scientists Invent an Efficient New Way to Count
Hacker News @lemmy.smeargle.fans bot @lemmy.smeargle.fans
BOT
Computer scientists invent an efficient new way to count

You're viewing a single thread.

5 comments