Least Frequently Used (LFU) Page Replacement Algo

Sdílet
Vložit
  • čas přidán 15. 03. 2015
  • This video teaches you Least Frequently Used (LFU) Page replacement algorithm using an example. It is also called as Not Frequently Used (NFU).
    The difference between LFU and LRU is that LFU needs a smaller history.
    It replaces the page which has the least frequency. If the frequencies are equal then it select the page using FIFO.
    You can check FIFO and LRU tutorials here :
    FIFO explanation : • FIFO/FCFS Page Replace...
    LRU explanation : • Least Recently Used (L...
    Find me here :
    Tumblr : www.tumblr.com/blog/priyanka0304
    Google+ : plus.google.com/u/0/b/1059702...
    Twitter : / androidacademy1
    Facebook : AndroidAcade...
  • Jak na to + styl

Komentáře • 99

  • @swordofll9599
    @swordofll9599 Před rokem +5

    Not going to lie, this whole video made the LFU understandable to a T. Thanks so much.

  • @sandeepsingh-ns3gr
    @sandeepsingh-ns3gr Před 6 lety +5

    very good explanation,
    content was clear and very helpful.

  • @imveryhungry112
    @imveryhungry112 Před 6 lety

    Thank you for this explanation.

  • @hamlinhamlinmcgill630
    @hamlinhamlinmcgill630 Před 8 lety +17

    so far best explanation of lfu i found here. many thanks!

    • @pabloamaelwiwi
      @pabloamaelwiwi Před rokem +3

      After having his reputation ruined in the field of law, Howard decides to get into computer engineering. Truly one of the Howard moments of all time.

  • @oldcoolbroqiuqiu6593
    @oldcoolbroqiuqiu6593 Před 7 lety +9

    I love your voice! This is the best solution for LFU I've ever seen. Thank you!

  • @SM7620
    @SM7620 Před 2 lety

    THANK YOU, GREAT EXPLANATIONS

  • @SakshiSharma-zy4ie
    @SakshiSharma-zy4ie Před 3 lety +2

    So clearly explain the concept that there is no need to see video repeatatively. Thanks 👍🏻😊

  • @MegaMido777
    @MegaMido777 Před 7 lety +2

    Thx that was helpful

  • @sowparnikam8812
    @sowparnikam8812 Před 7 lety

    thank you so much for explaining the concept so clearly..... thanks again.

  • @gunatejatompala1139
    @gunatejatompala1139 Před 2 lety +1

    Thank you mam for your nice explanation.
    I watched more videos no one can explain in this format 😇

  • @creativeworks98
    @creativeworks98 Před 7 lety

    Thank you so much.

  • @mehmoodali8431
    @mehmoodali8431 Před 3 lety

    thanks for your best explanation

  • @Xavierrex3
    @Xavierrex3 Před 6 lety

    Very helpful ty

  • @mucahitkatrc3285
    @mucahitkatrc3285 Před 7 lety +1

    Thank you very much for your illustrating video :)

  • @littlebabymonster97
    @littlebabymonster97 Před 6 lety

    brilliant explanation

  • @anubutikhazanchi5710
    @anubutikhazanchi5710 Před 5 lety

    Nicely explained!!👌

  • @diwang4572
    @diwang4572 Před 2 lety

    Thank you!

  • @CodedXtreme
    @CodedXtreme Před 7 lety

    Thank you.

  • @Tanya-yh1un
    @Tanya-yh1un Před 3 lety

    Brilliant!

  • @lahirujeewantha3870
    @lahirujeewantha3870 Před 8 měsíci

    Thank you so much 💝

  • @rachitchitnis6367
    @rachitchitnis6367 Před 8 lety

    thanks your teaching is best

  • @VIKRAMSINGH-qu4qq
    @VIKRAMSINGH-qu4qq Před 7 lety

    ✌thanks for the video

  • @uppalaadarshkumar6936
    @uppalaadarshkumar6936 Před 6 lety +2

    When you recet a page decrease by one why u r assumed to 0 ?

  • @gigabel1
    @gigabel1 Před 3 lety

    Thank you :)

  • @AFLIXATV
    @AFLIXATV Před 6 lety +24

    *THERE IS AN ERROR IN YOUR DEMONSTRATION*
    Towards the end, you had two page hits *3* 0 2 and 3 0 *2* when you loaded 3 and 2 respectively. Since the frequency of 3 and 2 are equal, you should have used LRU to break the tie. *3* should have been replaced when you loaded *1* . Therefore the final page presentation should be *1 0 2* .
    Thank you for your efforts.

    • @jayantakumarroy543
      @jayantakumarroy543 Před 6 lety +1

      we were using fifo in case frequency where same, from the start.but i have same doubts as yours,as similar question from google have same answer as you said.

    • @merlinthomas4553
      @merlinthomas4553 Před 5 lety +1

      Yes I agree

    • @studentcommenter5858
      @studentcommenter5858 Před 5 lety +12

      What ever she has done is 100% correct as per her assumptions. She has been using FIFO right from the beginning in case there is a tie in frequency. You can have your own implementations. But according to her problem statement and algorithm the solution is correct.

    • @abanoubhany3413
      @abanoubhany3413 Před 3 lety

      I was searching for a comment like this, I agree with you

    • @vighneshchavan9226
      @vighneshchavan9226 Před 2 lety +1

      Nah, she used FIFO for tie breaker instead of LRU it's correct according to her algo

  • @XYZ9630
    @XYZ9630 Před 5 lety

    Nice explaination

  • @deepkalariya7769
    @deepkalariya7769 Před rokem

    Nice explanation ❤

  • @Lakshmankablog
    @Lakshmankablog Před 2 lety

    Thanks

  • @sabafatima1483
    @sabafatima1483 Před 7 měsíci

    Thank you

  • @khalidshiba970
    @khalidshiba970 Před rokem

    thank you

  • @moinqureshi4989
    @moinqureshi4989 Před 6 lety +1

    Will u please explain Optimal page replacement kindly ?

  • @smalltugz
    @smalltugz Před 9 lety

    very nice

  • @SuperfiveGP
    @SuperfiveGP Před 8 lety

    nice video

  • @manjubindass7769
    @manjubindass7769 Před 7 lety

    very nice video

  • @Itmasters822
    @Itmasters822 Před 3 lety

    Very very very good.

  • @user-gl6lz1cl4w
    @user-gl6lz1cl4w Před 7 lety +1

    설명좋구연

  • @TechAcademy8
    @TechAcademy8  Před 9 lety +6

    #LFU #Pagereplacement #algo #algorithm #os #operatingsystems #leastfrequentlyused #notfrequentlyused

  • @rizwankhan2534
    @rizwankhan2534 Před 4 lety +1

    best explanation of LFU thank you so much

  • @uppalaadarshkumar6936
    @uppalaadarshkumar6936 Před 6 lety +5

    At 7.03 sec 2's frequency is 2 and u reset by zero , my question is why u reset as zero ( there is chance for 1 also) or any rule is there to reset as zero . Answer me quickly .Please

    • @ThulasiMannem
      @ThulasiMannem Před 2 měsíci

      When frequencies are same then we have to use fifo principle

  • @omkarkadam6854
    @omkarkadam6854 Před 6 lety

    tnx good teching....

  • @rayanenasri
    @rayanenasri Před 3 lety

    Thank's

  • @moinqureshi4989
    @moinqureshi4989 Před 6 lety

    Will u please explain Optimal page replacement kindly

  • @aishwaryamuthukumar2235

    Can u tell abt most frequently used

  • @mokrathamza532
    @mokrathamza532 Před 8 lety

    thanks

  • @sapramtejaravind6239
    @sapramtejaravind6239 Před 4 lety +3

    At 6:55 we have replace the 3 na??why 2 is replaced?

  • @houseofareem7436
    @houseofareem7436 Před 7 lety

    ty mam..

  • @tarunithamraju4094
    @tarunithamraju4094 Před 6 lety

    Great presentation

  • @codemonkeytrek
    @codemonkeytrek Před 8 lety

    Hi, Thanks for the well explained video tutorial, I tried it on my end with increase page frames of 4 and with different frequency strings, and it happened that there are two ties.
    e.g. 2 and 5 both got 1 (count)
    3 and 4 also got 2 (count)
    So in that case which is which? should I apply FIFO on both and check for frequency string that came first?
    e.g. in my case 2 and 5, 2 came first (2)
    in 3 and 4, 3 came first (3)
    BUT, 2 came first before 3, should I replace 2 since it came before 3?
    Hope to hear you soon, thanks again

  • @ankitathakur5989
    @ankitathakur5989 Před 4 lety

    tnq mam g

  • @yashbehara7525
    @yashbehara7525 Před 5 lety

    thanks!.. good one 😉

  • @rptechnology2935
    @rptechnology2935 Před 7 lety +1

    that is concept are very easy
    i confusion thise method is clear
    thank you so much .....

  • @mehmoodali8431
    @mehmoodali8431 Před 3 lety

    plz make a video about mfu

  • @user-kj6gr6yd1z
    @user-kj6gr6yd1z Před 5 lety

    why you has used fifo?
    don't use LRU?

  • @jameskurakula8560
    @jameskurakula8560 Před 5 lety

    your voice is so sweet mam...

  • @hello_world_0
    @hello_world_0 Před 7 lety

    What was the meaning of the crosses afterall ?

    • @user-di8dx1vr4s
      @user-di8dx1vr4s Před 7 lety +3

      The next time you'll need to use FIFO instead of the frequency, you do not take the ones with the cross into consideration.

  • @sudhapinky6275
    @sudhapinky6275 Před 6 lety

    👌👌👌👌👌👌

  • @vishnuvishnu4306
    @vishnuvishnu4306 Před 3 lety +4

    Wrong plz check

  • @ashwinkarki8112
    @ashwinkarki8112 Před 7 lety +10

    ur voice is so sweet luv u so much :*

  • @user-qh2xl4bb7l
    @user-qh2xl4bb7l Před 5 lety

    in this way, can Belady's anomaly be created?

    • @studentcommenter5858
      @studentcommenter5858 Před 5 lety

      Belady's anomaly may exist in this. Because I can't think of stack implementation for this algorithm. LRU and Optimal are the only algorithms I know as of now which are not effected by belady's anomaly because they are stack algorithms. If you got any inputs do comment. I would like to know.

    • @user-qh2xl4bb7l
      @user-qh2xl4bb7l Před 5 lety

      @@studentcommenter5858 I couldnt find the input not yet...

  • @adityawadekar6273
    @adityawadekar6273 Před 8 lety

    good explanantion! (Y)

  • @rishavmishra7955
    @rishavmishra7955 Před 8 lety +7

    the result should have been 102 instead of 301....3 should have been replaced instead of 2 in the 3rd last step

    • @Toodaloo
      @Toodaloo Před 8 lety

      +Rishav Mishra Yep I got the same result.

    • @SianGoldofsky
      @SianGoldofsky Před 8 lety +10

      +Rishav Mishra assuming you are referring to the changes made in the 2nd to last column:
      From what I understand, you may be confusing LFU with LRFU. With LFU, once the least frequently used value is not unique (i.e. 2 & 3 = 2) the algorithm chooses what to remove based off FIFO - First in First Out of those values. So in our case "2" entered our cache prior to "3" and therefore was removed. This happened despite "2" being called from the cache (NOT removed or added) more recently compared to "3"

    • @dewdropk-dl5tv
      @dewdropk-dl5tv Před 2 lety

      +Rishav Mishra , you are using least recently used item( ie how the questions is asked in leetcode) to break the tie (thats why its 102) where as in the video she is using first in first out to break the tie.so its 301 for her

  • @manyamnandeeshreddy6153

    nice voice

  • @RohitSharma-jo5vr
    @RohitSharma-jo5vr Před 8 lety

    this is more like mfu
    it should select a page which has not been used frequently in past

  • @sumanthkumar7921
    @sumanthkumar7921 Před 6 lety

    Answer in 102

  • @mathscs3789
    @mathscs3789 Před 5 lety

    Hi, I've got a doubt that I want to clarify, You said whenever any page is removing then make it frequency to reset but actually you one have to decrease it by 1.
    I mean, there may be cases where if A, B, C are pages present main memory and all are having equal frequencies 5 then as per your concern the frequency of the page to be removed must be kept 0 but it must just be decreased to 4.
    Thank you.

  • @akramnazri1306
    @akramnazri1306 Před 6 lety

    mende kau aku x pham.

  • @broosakaa1151
    @broosakaa1151 Před 4 měsíci

    Mam ap nazar q nai a rhi apki awaz to bht piyari ha mgr ap kahan hooo ?

  • @firstbay4024
    @firstbay4024 Před 6 lety

    the video is wrong. the counter does not reset to 0 after being replaced.

    • @studentcommenter5858
      @studentcommenter5858 Před 5 lety

      Even I felt the same. Is there any proper example available in the Internet?

  • @kevinmao8609
    @kevinmao8609 Před 7 lety

    Is this an Indian accent?

  • @bipinkhatiwada
    @bipinkhatiwada Před 7 lety

    you made a mistake at 5:43 !
    look, 0 came before 4. so, 0 should have been removed instead of 4 !

    • @TechAcademy8
      @TechAcademy8  Před 7 lety +1

      Bipin Khatiwada This is least frequently used algorithm. So you remove the least frequently used page. 0 has the highest frequency and 4 and 2's frequency was same. So we check which one came first and we remove that one.

  • @crixketeditz8279
    @crixketeditz8279 Před 2 lety

    ghalat ha ye pora

  • @Пургер
    @Пургер Před 7 lety +12

    that accent is terrible.. my ears are bleeding

    • @noddyboffin2988
      @noddyboffin2988 Před 7 lety +33

      Did you really think this comment would accomplish anything? I don't care if this was 5 months ago, you can fuck right off for making fun of someone's accent.

    • @apoorva3635
      @apoorva3635 Před 6 lety

      Andrija Durutovic i find it awesome.

    • @vishalmahendran6373
      @vishalmahendran6373 Před 6 lety

      I'm sure your accent is wonderful. :)

    • @cannoli1363
      @cannoli1363 Před 5 lety

      At least it's understandable comparing to others making CS videos and has subtitles too.

  • @axyd8664
    @axyd8664 Před 7 lety

    Thank you

  • @Tecwithjawad_bahi
    @Tecwithjawad_bahi Před 5 měsíci

    Thanks