Research  Computer scientists invent an efficient new way to count

#1
C C Offline
https://www.quantamagazine.org/computer-...-20240516/

INTRO: Imagine that you’re sent to a pristine rainforest to carry out a wildlife census. Every time you see an animal, you snap a photo. Your digital camera will track the total number of shots, but you’re only interested in the number of unique animals — all the ones that you haven’t counted already. What’s the best way to get that number?

“The obvious solution requires remembering every animal you’ve seen so far and comparing each new animal to the list,” said Lance Fortnow, a computer scientist at the Illinois Institute of Technology. But there are cleverer ways to proceed, he added, because if you have thousands of entries, the obvious approach is far from easy.

It gets worse. What if you’re Facebook, and you want to count the number of distinct users who log in each day, even if some of them log in from multiple devices and at multiple times? Now we’re comparing each new login to a list that could run to the billions.

In a recent paper, computer scientists have described a new way to approximate the number of distinct entries in a long list, a method that requires remembering only a small number of entries. The algorithm will work for any list where the items come in one at a time — think words in a speech, goods on a conveyor belt or cars on the interstate.

The CVM algorithm, named for its creators — Sourav Chakraborty of the Indian Statistical Institute, Vinodchandran Variyam of the University of Nebraska, Lincoln, and Kuldeep Meel of the University of Toronto — is a significant step toward solving what’s called the distinct elements problem, which computer scientists have grappled with for more than 40 years. It asks for a way to efficiently monitor a stream of elements — the total number of which may exceed available memory — and then estimate the number of unique elements.

“The new algorithm is astonishingly simple and easy to implement,” said Andrew McGregor of the University of Massachusetts, Amherst. “I wouldn’t be surprised if this became the default way the [distinct elements] problem is approached in practice.” (MORE - details)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Research World’s first non-silicon 2D computer developed C C 0 3,941 Jun 12, 2025 06:37 PM
Last Post: C C
  Article Melbourne start-up launches 'biological computer' made of human brain cells C C 0 4,263 Mar 5, 2025 07:02 PM
Last Post: C C
  Research Method identified to double computer processing speeds C C 0 3,837 Feb 23, 2024 05:40 PM
Last Post: C C
  Software engineering or computer science? Ostronomos 10 5,602 Mar 8, 2023 12:51 AM
Last Post: Syne
  How to test if we’re living in a computer simulation C C 11 5,808 Nov 27, 2022 07:53 AM
Last Post: Kornee
  Britain's butterflies are getting bigger as climate changes (computer vision) C C 0 3,818 Apr 5, 2022 06:12 PM
Last Post: C C
  A computer made of water and pipes Magical Realist 3 4,621 Dec 16, 2021 05:15 PM
Last Post: Magical Realist
  Coevolution of particle physics & computing + Female pioneer of computer simulation C C 0 3,878 Oct 1, 2021 03:43 PM
Last Post: C C
  $6 million awarded to plan brain-inspired computer that runs on probability C C 0 3,723 Sep 7, 2021 10:03 PM
Last Post: C C
  Computer simulations: How will El Niño and La Niña events change with the climate? C C 0 3,751 Aug 27, 2021 07:06 PM
Last Post: C C



Users browsing this thread: 1 Guest(s)