muth02446 2 hours ago[1 more]
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.
natmaka an hour ago
thecaio 2 hours ago[1 more]