The DISTINCT in Your COUNT
18 points - today at 7:40 PM
Sourcemuth02446
today at 8:12 PM
If you are satisfied with an approximation of "DISTINCT", there is a facinating
probabilistic algorithm by Flajolet and Martin
https://en.wikipedia.org/wiki/Flajolet%E2%80%93Martin_algori...
which fits on 10 lines and does not require sorting.
Improved versions of it are LogLog and HyperLogLog.
Hard to make a case to engange with an AI written article even if not fully slop
nh23423fefe
today at 9:12 PM
So don't engage and be silent. What value is "I'm obsessed with telling everyone i hate llms" for the billionth time?