which algorithm is better and how and why?

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

which algorithm is better and how and why?

31
718
10
11-112
13
14 15
c) Fill up the following table for three different replacement algorithms and state which
replacement algorithm is better and why?
Replacement Algorithm: Random
Miss
797
Block Size
Cache size
Hit
Hit ratio
4.
715
47.3
603
909
60.1
16
277
1235
81.7
32
85
1427
94.4
64
38
1474
97.5
Replacement Algorithm: FIFO
Miss
Block Size
Cache size
Hit
Hit ratio
4
811
701
46.4
2.
814
698
46.2
16
251
1261
83.4
32
139
1373
90.8
2.
64
38
1474
97.5
Replacement Algorithm: LRU
Miss
Block Size
Cache size
Hit
Hit ratio
2
812
700
46.3
2.
8
763
749
49.6
16
84.2
240
100
1272
1412
1474
2.
32
93.4
64
38
97.5
d) Plot the graph of Cache Hit Ratio Vs Cache size with respect to different replacement
algorithms. Comment on the graph that is obtained.
DFacus
Transcribed Image Text:31 718 10 11-112 13 14 15 c) Fill up the following table for three different replacement algorithms and state which replacement algorithm is better and why? Replacement Algorithm: Random Miss 797 Block Size Cache size Hit Hit ratio 4. 715 47.3 603 909 60.1 16 277 1235 81.7 32 85 1427 94.4 64 38 1474 97.5 Replacement Algorithm: FIFO Miss Block Size Cache size Hit Hit ratio 4 811 701 46.4 2. 814 698 46.2 16 251 1261 83.4 32 139 1373 90.8 2. 64 38 1474 97.5 Replacement Algorithm: LRU Miss Block Size Cache size Hit Hit ratio 2 812 700 46.3 2. 8 763 749 49.6 16 84.2 240 100 1272 1412 1474 2. 32 93.4 64 38 97.5 d) Plot the graph of Cache Hit Ratio Vs Cache size with respect to different replacement algorithms. Comment on the graph that is obtained. DFacus
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY