Offline: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:Offline (Page Replacements)}} == Description == When page fault occurs during the program execution, operating systems use page replacement algorithms to select a victim page from primary memory and makes room for the required page. == Related Problems == Related: Online == Parameters == No parameters found. == Table of Algorithms == {| class="wikitable sortable" style="text-align:center;" width="100%" ! Name !! Year !! Time !! Space !! Ap...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 10: Line 10:
== Parameters ==  
== Parameters ==  


No parameters found.
$n$: number of page requests
 
$k$: number of pages able to fit in cache


== Table of Algorithms ==  
== Table of Algorithms ==  
Line 24: Line 26:
|}
|}


== Time Complexity graph ==  
== Time Complexity Graph ==  


[[File:Page Replacements - Offline - Time.png|1000px]]
[[File:Page Replacements - Offline - Time.png|1000px]]
== Space Complexity graph ==
[[File:Page Replacements - Offline - Space.png|1000px]]
== Pareto Decades graph ==
[[File:Page Replacements - Offline - Pareto Frontier.png|1000px]]

Latest revision as of 10:12, 28 April 2023

Description

When page fault occurs during the program execution, operating systems use page replacement algorithms to select a victim page from primary memory and makes room for the required page.

Related Problems

Related: Online

Parameters

$n$: number of page requests

$k$: number of pages able to fit in cache

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
The theoretically optimal page replacement algorithm 1940 $O(n^{2})$ $O(k)$ Exact Deterministic

Time Complexity Graph

Page Replacements - Offline - Time.png