Flajolet Martin Algorithm | Big Data Analytics

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

Комментарии • 54

  • @mryundu
    @mryundu Год назад +1

    Seriously! Bohot help hui iss video se.
    Kal exam hai or ek to ye big data dimag ke upar se ja raha hai. Thanks for your detailed explanation !

  • @ArnavShukla-mb2nf
    @ArnavShukla-mb2nf 10 месяцев назад

    bahut acha laga video aur bahut achhi hi apki awwaz

  • @DileepRajbhar
    @DileepRajbhar 10 месяцев назад

    Excellent Notes and Example!

  • @amitmodh167
    @amitmodh167 2 года назад +5

    Another masterpiece content.thanks a ton ma'am, u made algo's damn easy.

  • @fahadnawab3212
    @fahadnawab3212 3 года назад +3

    thanks!!! Most helpful during my exam time

  • @LMTEngineering
    @LMTEngineering Год назад

    Bahut Acha Explain kiya hai ❣❣🔥🔥

  • @Khomu_Facts
    @Khomu_Facts 6 месяцев назад

    Mam aap bhut accha samjhate ho apka easily samagh aa jata hai ❤

  • @anchalpatel10
    @anchalpatel10 2 года назад +3

    Pretty good explanation..keep it up 👍🏻👍🏻

  • @deepak_daksh
    @deepak_daksh Год назад

    Katai jahar 😎

  • @rahulrajtripathi
    @rahulrajtripathi 3 года назад +1

    Really nice video.

  • @user-oi7rt5ii4x
    @user-oi7rt5ii4x 3 года назад +1

    Kafi acche se explain keya

  • @a.m.a.n7082
    @a.m.a.n7082 Год назад +2

    Easy to understand 💯

  • @MohdAshraf-nw9bz
    @MohdAshraf-nw9bz 7 месяцев назад

    good job

  • @jaxxiz6180
    @jaxxiz6180 2 года назад

    the simplest explanation ever
    thanks a much...

  • @amalantony8594
    @amalantony8594 4 года назад +8

    So FM algorithm can only approximate the unique values to the powers of 2. If we have say 7 unique elements this would give an incorrect result?

    • @yashdiniz
      @yashdiniz 3 года назад +4

      Yes, it will approximate the distinct element count to the nearest power of 2.
      It's an approximation, so for 7 distinct elements, FM algorithm would return 4 (i.e. an approximate power of 2)

    • @conradomartinezp
      @conradomartinezp Год назад

      Only if you don't use stochastic averaging, see my recent comment above

  • @PiyushYadav-j4d
    @PiyushYadav-j4d Год назад +3

    Mam you got h(3) = 4 but while calculating the hash function but in last second h(3) you have written a h(3) = 3

  • @ayandutta9844
    @ayandutta9844 2 года назад +1

    Thank you for explaining

  • @varunrana6827
    @varunrana6827 3 года назад +2

    good

  • @sambhajitelang9785
    @sambhajitelang9785 2 года назад +1

    Thank you.#helpful.

  • @syedhudaibiyahfatmah9195
    @syedhudaibiyahfatmah9195 Год назад

    Thankyou so muchhhh😭❤️this was much needed

  • @8003066717
    @8003066717 3 года назад +2

    How did we get hash function like h(x)=6x+1 mode5...?

  • @chauhansumit7627
    @chauhansumit7627 7 месяцев назад

    If value 16mod16 gives value 0000 then value of r should be r= 4 or 0 please give the correct answer....Is it 0 or 4

  • @rugvedpatil5604
    @rugvedpatil5604 7 месяцев назад

    but h4 me 3 trailing zeros hai na ? to 2 kyu likha hai

  • @nikitapatil5880
    @nikitapatil5880 Год назад +1

    Thanks✨

  • @folahola690
    @folahola690 2 года назад

    Good teaching

  • @mugambo5505
    @mugambo5505 2 года назад

    What if we have 6 distinct elements last step would never give any other number except power of 2 so?

  • @shrutipawar8263
    @shrutipawar8263 2 года назад

    Nice

  • @dbamv4374
    @dbamv4374 3 года назад

    Thankyou mam you, supub explanation.

  • @ritendrasinghbhadauriya5751
    @ritendrasinghbhadauriya5751 2 года назад +1

    Thanks a lot.......

  • @simrannadaf8934
    @simrannadaf8934 Год назад

    Thank you so much

  • @tejaltatiwar4682
    @tejaltatiwar4682 Год назад

    best

  • @octomo6944
    @octomo6944 3 года назад

    how to identify the distinct element are 1234 only at the end

  • @abhisheknagri9637
    @abhisheknagri9637 Год назад +1

    maam aapne 11th wala bit ka mod galat likha hai h(3)=3 likha h but h(3)=4 aayega baki explaintion is simple and easy

  • @IT__UzairFaquih
    @IT__UzairFaquih 2 года назад

    already shared ma'am

  • @Quraanic_Ayat
    @Quraanic_Ayat 9 месяцев назад

  • @yashkhatwani3198
    @yashkhatwani3198 2 года назад

    thank you

  • @devanshprakash8354
    @devanshprakash8354 2 года назад

    Will this type of question come in aktu

  • @codinglobe_tech
    @codinglobe_tech 3 года назад

    thanks

  • @nikitasinha8181
    @nikitasinha8181 4 года назад

    Thank u very much mam

  • @lalitvinde1441
    @lalitvinde1441 2 года назад

    What if we have two elements 4,3
    compute it's hash
    h(4) = (6x+1) mod 5= 25 mod 5 = 0
    h(2) = (6x+1) mod 5= 13 mod 5 = 3
    binary
    h(4)=0=000
    h(3)=3=011
    Trailing zero:
    h(4)=000=0
    h(3)=011=0
    Compute distinct element
    r=0
    2^r = 2^0 = 1
    It’s wrong answer ;-;

    • @sameerafzalkhan6071
      @sameerafzalkhan6071 2 года назад +1

      Hash function isn't fixed, for this specific one hash is 6x+1 mod 5

  • @conradomartinezp
    @conradomartinezp Год назад

    I'm sorry to mention this, but the algorithm you describe is not Flajolet-Martin algorithm (a.k.a. Probabilistic Counting). The algorithm that you explain is the basis of the LogLog and HyperLogLog algorithms, also by Flajolet and coauthors (but not Martin). For example, LogLog was invented by Marianne Durand and Philippe Flajolet around 2003, some 18 years after FM. Moreover, you skip all the part of "stochastic averaging", which is a must to avoid large deviations in the estimations. This idea was already used in FM algorithm and it was also used in their successors. In stochastic averaging, you maintain m variables max_R[i], i=0..m-1; the first log_2 m bits of each h(x) are used to choose one of m counters, and the remaining bits of h(x) to update (or not) the corresponding max_R[i]. Once you have your m max_R variables you combine them to obtain a value avg_max_R to be used in the estimation of the cardinality. Depending on the way you obtain avg_max_R you have LogLog or HyperLogLog. A correction factor is also needed to avoid bias in the estimation. The original Flajolet-Martin algorithm is similar to LogLog and HyperLogLog, but it finds the largest r such that hashes with i trailing zeros have been observed for all i, 0

    • @mshodmusic
      @mshodmusic Год назад

      Don't care+we passing out next exam

  • @koeniglicher
    @koeniglicher 2 года назад

    This video has all the errors as the video where it got its content from, namely: "Flajolet Martin [FM] Algorithm" by Anuradha Bhatia.

  • @RishiYadav-qd4nz
    @RishiYadav-qd4nz 10 месяцев назад

    😂🎉

  • @isroindia6083
    @isroindia6083 9 месяцев назад

    Thank you

  • @abdullahmukri4555
    @abdullahmukri4555 Год назад

    Thanks