Least Frequently Used (LFU) Page Replacement Algo

  Рет қаралды 329,373

Tech Academy

Tech Academy

Күн бұрын

Пікірлер: 122
@swordofll9599
@swordofll9599 2 жыл бұрын
Not going to lie, this whole video made the LFU understandable to a T. Thanks so much.
@hamlinhamlinmcgill630
@hamlinhamlinmcgill630 9 жыл бұрын
so far best explanation of lfu i found here. many thanks!
@pabloamaelwiwi
@pabloamaelwiwi Жыл бұрын
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 7 жыл бұрын
I love your voice! This is the best solution for LFU I've ever seen. Thank you!
@TechAcademy8
@TechAcademy8 7 жыл бұрын
Thank you :-)
@SakshiSharma-zy4ie
@SakshiSharma-zy4ie 3 жыл бұрын
So clearly explain the concept that there is no need to see video repeatatively. Thanks 👍🏻😊
@Aaftab.19
@Aaftab.19 2 жыл бұрын
Fake
@var-i1s
@var-i1s 3 ай бұрын
In the Least Frequently Used (LFU) page replacement algorithm, if two or more pages have the same frequency (i.e., they've been used the same number of times), then you can apply the Least Recently Used (LRU) algorithm among those pages to decide which one to replace.
@RajbanshiOmprakash
@RajbanshiOmprakash Ай бұрын
fifo
@gunatejatompala1139
@gunatejatompala1139 2 жыл бұрын
Thank you mam for your nice explanation. I watched more videos no one can explain in this format 😇
@AFLIXATV
@AFLIXATV 7 жыл бұрын
*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 7 жыл бұрын
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 6 жыл бұрын
Yes I agree
@studentcommenter5858
@studentcommenter5858 6 жыл бұрын
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 3 жыл бұрын
I was searching for a comment like this, I agree with you
@vighneshchavan9226
@vighneshchavan9226 3 жыл бұрын
Nah, she used FIFO for tie breaker instead of LRU it's correct according to her algo
@sandeepsingh-ns3gr
@sandeepsingh-ns3gr 7 жыл бұрын
very good explanation, content was clear and very helpful.
@mehmoodali8431
@mehmoodali8431 4 жыл бұрын
thanks for your best explanation
@rizwankhan2534
@rizwankhan2534 5 жыл бұрын
best explanation of LFU thank you so much
@deepkalariya7769
@deepkalariya7769 2 жыл бұрын
Nice explanation ❤
@sapramtejaravind6239
@sapramtejaravind6239 4 жыл бұрын
At 6:55 we have replace the 3 na??why 2 is replaced?
@uppalaadarshkumar6936
@uppalaadarshkumar6936 7 жыл бұрын
When you recet a page decrease by one why u r assumed to 0 ?
@TechAcademy8
@TechAcademy8 10 жыл бұрын
#LFU #Pagereplacement #algo #algorithm #os #operatingsystems #leastfrequentlyused #notfrequentlyused
@SM7620
@SM7620 3 жыл бұрын
THANK YOU, GREAT EXPLANATIONS
@uppalaadarshkumar6936
@uppalaadarshkumar6936 7 жыл бұрын
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 8 ай бұрын
When frequencies are same then we have to use fifo principle
@imveryhungry112
@imveryhungry112 7 жыл бұрын
Thank you for this explanation.
@littlebabymonster97
@littlebabymonster97 6 жыл бұрын
brilliant explanation
@anubutikhazanchi5710
@anubutikhazanchi5710 6 жыл бұрын
Nicely explained!!👌
@rachitchitnis6367
@rachitchitnis6367 8 жыл бұрын
thanks your teaching is best
@lahirujeewantha3870
@lahirujeewantha3870 Жыл бұрын
Thank you so much 💝
@XYZ9630
@XYZ9630 6 жыл бұрын
Nice explaination
@ashwinkarki8112
@ashwinkarki8112 8 жыл бұрын
ur voice is so sweet luv u so much :*
@sowparnikam8812
@sowparnikam8812 8 жыл бұрын
thank you so much for explaining the concept so clearly..... thanks again.
@김소빈-o4r
@김소빈-o4r 6 жыл бұрын
in this way, can Belady's anomaly be created?
@studentcommenter5858
@studentcommenter5858 6 жыл бұрын
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.
@김소빈-o4r
@김소빈-o4r 6 жыл бұрын
@@studentcommenter5858 I couldnt find the input not yet...
@aishwaryamuthukumar2235
@aishwaryamuthukumar2235 5 жыл бұрын
Can u tell abt most frequently used
@rptechnology2935
@rptechnology2935 8 жыл бұрын
that is concept are very easy i confusion thise method is clear thank you so much .....
@hello_world_0
@hello_world_0 8 жыл бұрын
What was the meaning of the crosses afterall ?
@οκμπος
@οκμπος 8 жыл бұрын
The next time you'll need to use FIFO instead of the frequency, you do not take the ones with the cross into consideration.
@rishavmishra7955
@rishavmishra7955 9 жыл бұрын
the result should have been 102 instead of 301....3 should have been replaced instead of 2 in the 3rd last step
@Toodaloo
@Toodaloo 8 жыл бұрын
+Rishav Mishra Yep I got the same result.
@SianGoldofsky
@SianGoldofsky 8 жыл бұрын
+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 3 жыл бұрын
+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
@Itmasters822
@Itmasters822 4 жыл бұрын
Very very very good.
@creativeworks98
@creativeworks98 7 жыл бұрын
Thank you so much.
@CodedXtreme
@CodedXtreme 7 жыл бұрын
Thank you.
@moinqureshi4989
@moinqureshi4989 7 жыл бұрын
Will u please explain Optimal page replacement kindly ?
@Xavierrex3
@Xavierrex3 7 жыл бұрын
Very helpful ty
@mucahitkatrc3285
@mucahitkatrc3285 7 жыл бұрын
Thank you very much for your illustrating video :)
@diwang4572
@diwang4572 3 жыл бұрын
Thank you!
@manjubindass7769
@manjubindass7769 8 жыл бұрын
very nice video
@MegaMido777
@MegaMido777 8 жыл бұрын
Thx that was helpful
@박주형-f4e
@박주형-f4e 6 жыл бұрын
why you has used fifo? don't use LRU?
@VIKRAMSINGH-qu4qq
@VIKRAMSINGH-qu4qq 7 жыл бұрын
✌thanks for the video
@RohitSharma-jo5vr
@RohitSharma-jo5vr 8 жыл бұрын
this is more like mfu it should select a page which has not been used frequently in past
@mythilisaran3961
@mythilisaran3961 8 жыл бұрын
Rohit Sharma that is lru
@jameskurakula8560
@jameskurakula8560 6 жыл бұрын
your voice is so sweet mam...
@firstbay4024
@firstbay4024 6 жыл бұрын
the video is wrong. the counter does not reset to 0 after being replaced.
@studentcommenter5858
@studentcommenter5858 6 жыл бұрын
Even I felt the same. Is there any proper example available in the Internet?
@tarunithamraju4094
@tarunithamraju4094 6 жыл бұрын
Great presentation
@moinqureshi4989
@moinqureshi4989 7 жыл бұрын
Will u please explain Optimal page replacement kindly
@Tanya-yh1un
@Tanya-yh1un 3 жыл бұрын
Brilliant!
@mathscs3789
@mathscs3789 5 жыл бұрын
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.
@SuperfiveGP
@SuperfiveGP 9 жыл бұрын
nice video
@gigabel1
@gigabel1 3 жыл бұрын
Thank you :)
@mehmoodali8431
@mehmoodali8431 4 жыл бұрын
plz make a video about mfu
@smalltugz
@smalltugz 9 жыл бұрын
very nice
@omkarkadam6854
@omkarkadam6854 7 жыл бұрын
tnx good teching....
@axyd8664
@axyd8664 7 жыл бұрын
Thank you
@ricocoswag
@ricocoswag 3 ай бұрын
I trusted you
@daruk6878
@daruk6878 5 ай бұрын
I believe you
@codemonkey01
@codemonkey01 8 жыл бұрын
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
@SalisburyJoshuaer-b1m
@SalisburyJoshuaer-b1m 4 ай бұрын
Marian Alley
@bipinkhatiwada
@bipinkhatiwada 7 жыл бұрын
you made a mistake at 5:43 ! look, 0 came before 4. so, 0 should have been removed instead of 4 !
@TechAcademy8
@TechAcademy8 7 жыл бұрын
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.
@broosakaa1151
@broosakaa1151 11 ай бұрын
Mam ap nazar q nai a rhi apki awaz to bht piyari ha mgr ap kahan hooo ?
@sumanthkumar7921
@sumanthkumar7921 7 жыл бұрын
Answer in 102
@rayanenasri
@rayanenasri 3 жыл бұрын
Thank's
@mokrathamza532
@mokrathamza532 9 жыл бұрын
thanks
@kevinmao8609
@kevinmao8609 8 жыл бұрын
Is this an Indian accent?
@RanaKshitij
@RanaKshitij 8 жыл бұрын
yes, it is
@WilliamJerome-f4c
@WilliamJerome-f4c 4 ай бұрын
Emard Isle
@ankitathakur5989
@ankitathakur5989 5 жыл бұрын
tnq mam g
@yashbehara7525
@yashbehara7525 6 жыл бұрын
thanks!.. good one 😉
@ChildMonica-b1z
@ChildMonica-b1z 4 ай бұрын
Schneider Gardens
@houseofareem7436
@houseofareem7436 7 жыл бұрын
ty mam..
@LauraRobinson-o7l
@LauraRobinson-o7l 4 ай бұрын
Walsh Pike
@DenaReeves-i2x
@DenaReeves-i2x 4 ай бұрын
Bernardo Village
@BillyMildred-k2x
@BillyMildred-k2x 4 ай бұрын
Crystel Valley
@BellamyDoris-x4d
@BellamyDoris-x4d 4 ай бұрын
Johnson Camp
@sudhapinky6275
@sudhapinky6275 7 жыл бұрын
👌👌👌👌👌👌
@farooqshahzad6263
@farooqshahzad6263 2 ай бұрын
Wtf if this is LFU then then what is LRU😂
@이윤선-j9b
@이윤선-j9b 8 жыл бұрын
설명좋구연
@fatayyfatii6
@fatayyfatii6 4 ай бұрын
I got FAILED after watching her video
@vishnuvishnu4306
@vishnuvishnu4306 3 жыл бұрын
Wrong plz check
@manyamnandeeshreddy6153
@manyamnandeeshreddy6153 7 жыл бұрын
nice voice
@adityawadekar6273
@adityawadekar6273 9 жыл бұрын
good explanantion! (Y)
@akramnazri1306
@akramnazri1306 6 жыл бұрын
mende kau aku x pham.
@이름이없어-d3g
@이름이없어-d3g 6 ай бұрын
누나 나 죽어❤
@crixketeditz8279
@crixketeditz8279 2 жыл бұрын
ghalat ha ye pora
@AshleySingh-m8g
@AshleySingh-m8g 3 ай бұрын
Gaylord Point
@Пургер
@Пургер 8 жыл бұрын
that accent is terrible.. my ears are bleeding
@noddyboffin2988
@noddyboffin2988 8 жыл бұрын
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 7 жыл бұрын
Andrija Durutovic i find it awesome.
@vishalmahendran6373
@vishalmahendran6373 6 жыл бұрын
I'm sure your accent is wonderful. :)
@cannoli1363
@cannoli1363 6 жыл бұрын
At least it's understandable comparing to others making CS videos and has subtitles too.
@FrederickArlen
@FrederickArlen 3 ай бұрын
57758 Auer Throughway
@FrankCurme
@FrankCurme 3 ай бұрын
3459 Eugene Tunnel
@SalinaDillenbeck
@SalinaDillenbeck 4 ай бұрын
444 Crawford Meadow
@ShawJo-g2n
@ShawJo-g2n 4 ай бұрын
8886 Alejandra Corner
@Lakshmankablog
@Lakshmankablog 2 жыл бұрын
Thanks
@khalidshiba970
@khalidshiba970 Жыл бұрын
thank you
@sabafatima1483
@sabafatima1483 Жыл бұрын
Thank you
@Tecwithjawad_bahi
@Tecwithjawad_bahi 11 ай бұрын
Thanks
Least Recently Used (LRU) Explanation
6:35
Tech Academy
Рет қаралды 487 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
2nd Chance Algorithm Example
6:43
Casey Cole
Рет қаралды 42 М.
FIFO/FCFS Page Replacement Algo Explanation
4:57
Tech Academy
Рет қаралды 114 М.
Second Chance Algorithm - Page Replacement - Operating System
9:20
Least Frequently Used LFU Page Replacement Algorithm Example
6:59
Parag Tamhankar
Рет қаралды 1,6 М.
Lec29 Page Replacement Algorithms | LRU and optimal | Operating Systems
16:18
Jenny's Lectures CS IT
Рет қаралды 444 М.
Counting Based Algorithm   Least Frequently Used
13:38
Sonam Sharma
Рет қаралды 16 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 58 М.
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19