Online: Difference between revisions

From Algorithm Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:Online (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: Offline == Parameters == No parameters found. == Table of Algorithms == {| class="wikitable sortable" style="text-align:center;" width="100%" ! Name !! Year !! Time !! Space !! Ap...")
 
No edit summary
Line 40: Line 40:
|}
|}


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


[[File:Page Replacements - Online - Time.png|1000px]]
[[File:Page Replacements - Online - Time.png|1000px]]


== Space Complexity graph ==  
== Space Complexity Graph ==  


[[File:Page Replacements - Online - Space.png|1000px]]
[[File:Page Replacements - Online - Space.png|1000px]]


== Pareto Decades graph ==  
== Pareto Frontier Improvements Graph ==  


[[File:Page Replacements - Online - Pareto Frontier.png|1000px]]
[[File:Page Replacements - Online - Pareto Frontier.png|1000px]]

Revision as of 13:05, 15 February 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: Offline

Parameters

No parameters found.

Table of Algorithms

Name Year Time Space Approximation Factor Model Reference
Not recently used 1940 $O(nk)$? $O(k)$ Exact Deterministic
First-in, first-out 1940 $O(nk)$? $O(k)$ Exact Deterministic
Second-chance 1940 $O(nk)$? $O(k)$ Exact Deterministic
Clock 1940 $O(nk)$? $O(k)$ Exact Deterministic
Least recently used 1940 $O(nk)$? $O(k)$ Exact Deterministic
Random 1940 $O(n)$ $O(k)$? Exact Randomized
Not frequently used (NFU) 1940 $O(nk)$? $O(k)$ Exact Deterministic
Aging 1940 $O(nk)$? $O(k)$ Exact Deterministic
Longest distance first (LDF) page replacement algorithm 2017 $O(nk)$? $O(k)$ Exact Deterministic Time

Time Complexity Graph

Page Replacements - Online - Time.png

Space Complexity Graph

Page Replacements - Online - Space.png

Pareto Frontier Improvements Graph

Page Replacements - Online - Pareto Frontier.png