Algorithms Notes: Option Utilities and Change-making Problem

Algorithms Notes: Option Utilities and Change-making Problem

Created by
@VividUkulele

Questions and Answers

What is the eviction strategy that evicts the oldest page?

First in, first out (FIFO)

Which eviction strategy evicts the newest page?

Last in, first out (LIFO)

In the eviction strategy LRU, which page is evicted?

Page whose most recent access was earliest

What does LFU stand for in the eviction strategy?

<p>Least frequently requested</p> Signup and view all the answers

Which eviction strategy evicts the page in the cache that is not requested until farthest in the future?

<p>Longest forward distance (LFD)</p> Signup and view all the answers

In a cache of size k=3 with initial cache a, b, c, and requests a, a, d, e, b, b, a, c, f, d, e, a, f, b, e, c, how many cache misses occur with the FIFO strategy?

<p>13</p> Signup and view all the answers

In a cache of size k=3 with initial cache a, b, c, and requests a, a, d, e, b, b, a, c, f, d, e, a, f, b, e, c, how many cache misses occur with the LFD strategy?

<p>8</p> Signup and view all the answers

Name an eviction strategy where the page that is least frequently requested is evicted.

<p>LFU</p> Signup and view all the answers

Which eviction strategy evicts the page that is not requested until farthest in the future?

<p>Longest forward distance (LFD)</p> Signup and view all the answers

What is the main goal in designing an eviction schedule for a cache?

<p>Minimize the number of evictions</p> Signup and view all the answers

More Quizzes Like This

Master the Components of AI Models and Algorithms
60 questions
Graphs and Algorithms Quiz
10 questions
Use Quizgecko on...
Browser
Browser