Questions tagged [flajolet-martin]
4 questions
1
vote
2 answers
What is the intuition behind the Flajolet-Martin algorithm?
I have tried to understand why Flajolet-Martin Algorithm (FM) works for too long. The description of the algorithm here (section 4.4.2) is promising but not perfect.
Why does the the maximum tail length (# of trailing zeros) of any element work as…

Avocado
- 67
- 6
1
vote
1 answer
Implementing Flajolet and Martin’s Algorithm in python
The following is the code which I've written to implement Flajolet and Martin’s Algorithm. I've used Jenkins hash function to generate a 32 bit hash value of data. The program seems to follow the algorithm but is off the mark by about 20%. My data…

HumptyDumptyEIZ
- 374
- 1
- 6
- 18
0
votes
0 answers
Flajolet Martin Algorithm Implementation
I am trying to implement Flajolet Martin algorithm. I have a dataset with over 6000 records but the output of the following code is 4096. Please help me in understanding the mistake being made by me.
import xxhash
import math
def…

12100
- 1
- 1
0
votes
3 answers
How does flajolet martin sketch works?
I am trying to understand this sketch but am not able to understand.
Correct me if I am wrong but basically, lets say I have a text data.. words.. I have a hash function.. which takes a word and create an integer hash and then I convert that hash to…

frazman
- 32,081
- 75
- 184
- 269