I don't know a word or phrase for this, but I really enjoy any examples of "thinking outside the box" like this because it's something I struggle with in my professional career. Learning not only the right ways to solve problems, but figuring out the questions to ask that make solving the problems you have easier or even in some cases possible. In this case, it's hey, we don't need exact numbers if we can define a pr…
I think it's generally thought of as "lateral thinking", Edward de Bono has written a few books about it you might find interesting.
Computer scientists invent an efficient new way to count
41–50 of 299 posts
Re: Computer scientists invent an efficient new way to count
#42> The trick, he said, is to rely on randomization. > When the space is full, press pause and flip a coin for each word. Heads, and the word stays on the list; tails, and you delete it. I wasn't expecting to go that far: randomization. How can you verify if the answer is good? Only approximation, maybe..
Yes, the result is an estimation.
Re: Computer scientists invent an efficient new way to count
#43Re: Computer scientists invent an efficient new way to count
#44Do they assume any particular distribution of the items? Otherwise Nassim Taleb would like a word with them.
Re: Computer scientists invent an efficient new way to count
#45Re: Computer scientists invent an efficient new way to count
#46CS guys always wanting to throw away a good system and start from scratch.
Re: Computer scientists invent an efficient new way to count
#47I found the paper took about as long to read as the blog post and is more informative: https://arxiv.org/pdf/2301.10191 It is about estimating the cardinality of a set of elements derived from a stream. The algorithm is so simple, you can code it and play with it whilst you read the paper. The authors are explicit about the target audience and purpose for the algorithm: undergraduates and textbooks.
If you're saying it's just for "undergraduates and textbooks", as opposed to just being simple enough for them to use but not limited to them, would you mind explaining what makes it useful for undergrads but not for professionals?
Re: Computer scientists invent an efficient new way to count
#48The only minor downside to this is that it's obviously not deterministic since it depends on chance. But for many applications where the dataset is so big it doesn't fit in memory, that's probably just a tiny rounding error anyway.
Re: Computer scientists invent an efficient new way to count
#49Re: Computer scientists invent an efficient new way to count
#50Does finding the number of unique elements in a set actually require comparison of each element with everything else? Can't you use a hashtable? For every element, add it to the table (ignore if already exists), and finally, take a count of keys.