Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7960303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:43:03+00:00 2026-06-04T04:43:03+00:00

I am trying to teach myself LRU algorithm using this youtube video . In

  • 0

I am trying to teach myself LRU algorithm using this youtube video. In the below example (taken from here) why is 0 replaced by 3. Shouldn’t that be 4 replaced by 3 as 4 is the least used ?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:43:04+00:00Added an answer on June 4, 2026 at 4:43 am

    LRU stands for “Least Recently Used”. It’s based on taking advantage of “temporal locality” of reference, i.e. the thought that the same stuff will be used in a period of time.

    In your case, the past three accesses before the current one were 0 – 4 – 2. This means that of the pages in physical memory, 0 was the least recently used, and so it gets paged out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to teach-myself how to serialize/deserialize to/from XML using the attribute-based serializer. I've
I'm trying to teach myself python right now, and I'm using exercises from Learn
I am trying to teach myself Smalltalk. A tutorial has this example of a
I am trying to teach myself MySQL/PHP from the very beginning. The following code
I'm trying to teach myself MVC3. Im converting from webforms. I need to create
I am trying to teach myself a bit of Javascript and made this collection
I am trying to teach myself C from a python background. My current mini-problem
Hey guys, I'm new to UNIX, trying to teach myself and came across this
I'm trying to teach myself python using Google's AppEngine , and I can't get
I'm just trying to teach myself how to use Linq. This is what I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.