SlideShare a Scribd company logo
1 of 5
Least Recently Used (LRU)
[object Object],[object Object],[object Object]
مثال : Reference string:   1, 2,1, 3, 6,4, 1, 5, 2, 7, 6, 2, 3, 4, 5 1 2 1 3 6 4 1 5 2 7 3 2 1 2 1 2 1 3 2 1 6 3 2 1 4 6 3 2 1 4 6 3 2 1 4 6 3 5 1 4 6 2 5 1 4 7 2 5 1 3 7 2 5 1 6 7 2 5 1
كيف يتم تنفيذ ذلك؟ ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
7 1 Counter: 0 1 2 0 3 0 4 2 3 4 5 6 7 8 2 3 0 3 2 9 10 11 12 1 2 0 1 7 0 0 13 14 15 16 17 18 19 20 7   (1) 0  (2) 7   (1) 1  (3) 0  (2) 2  (4) 1  (3) 0  (5) 2  (4) 3  (6) 0  (7) 2  (4) 3  (6) 0  (5) 2  (4) 1  (3) 0  (2) 7   (1) 3  (6) 0  (7) 4  (8) 2  (9) 0  (7) 4  (8) 2 (9) 3   (10) 4  (8) 2  (9) 3  (10) 0  (11) 2  (9) 3  (12) 0  (11) 2  (13) 3  (12) 1  (14) 2  (15) 0  (16) 1  (14) 2  (15) 3  (12) 1  (14) 2  (15) 0  (16) 1  (17) 7  (18) 0  (16) 1  (17) 7  (18) 0  (19) 1  (17) 7  (18) 0  (20) 1  (17) 2  (13) 3  (12) 0  (11)

More Related Content

Viewers also liked

Bai2-Tao du an
Bai2-Tao du anBai2-Tao du an
Bai2-Tao du anMio Class
 
Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan elkana.catur
 
Gioi Thieu Ve Autolisp
Gioi Thieu Ve AutolispGioi Thieu Ve Autolisp
Gioi Thieu Ve AutolispMio Class
 
Bai3-Entry for Gantt
Bai3-Entry for GanttBai3-Entry for Gantt
Bai3-Entry for GanttMio Class
 
Kerjasama Antar Daerah di Kawasan Perkotaan
Kerjasama Antar Daerah di Kawasan Perkotaan Kerjasama Antar Daerah di Kawasan Perkotaan
Kerjasama Antar Daerah di Kawasan Perkotaan elkana.catur
 
Hdsd Dutoan Hitosoft
Hdsd Dutoan HitosoftHdsd Dutoan Hitosoft
Hdsd Dutoan HitosoftMio Class
 
Pelatihan Perencana Masa Depan
Pelatihan Perencana Masa Depan Pelatihan Perencana Masa Depan
Pelatihan Perencana Masa Depan elkana.catur
 
Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan elkana.catur
 
[Construction E Book]
[Construction E Book][Construction E Book]
[Construction E Book]Mio Class
 
SEISMIC_DESIGN
SEISMIC_DESIGNSEISMIC_DESIGN
SEISMIC_DESIGNMio Class
 

Viewers also liked (12)

Bai2-Tao du an
Bai2-Tao du anBai2-Tao du an
Bai2-Tao du an
 
Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan
 
autolips
autolipsautolips
autolips
 
Gioi Thieu Ve Autolisp
Gioi Thieu Ve AutolispGioi Thieu Ve Autolisp
Gioi Thieu Ve Autolisp
 
Bai3-Entry for Gantt
Bai3-Entry for GanttBai3-Entry for Gantt
Bai3-Entry for Gantt
 
Kerjasama Antar Daerah di Kawasan Perkotaan
Kerjasama Antar Daerah di Kawasan Perkotaan Kerjasama Antar Daerah di Kawasan Perkotaan
Kerjasama Antar Daerah di Kawasan Perkotaan
 
Hdsd Dutoan Hitosoft
Hdsd Dutoan HitosoftHdsd Dutoan Hitosoft
Hdsd Dutoan Hitosoft
 
Pelatihan Perencana Masa Depan
Pelatihan Perencana Masa Depan Pelatihan Perencana Masa Depan
Pelatihan Perencana Masa Depan
 
Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan Kuliah Pembiayaan Perkotaan
Kuliah Pembiayaan Perkotaan
 
staad pro
staad prostaad pro
staad pro
 
[Construction E Book]
[Construction E Book][Construction E Book]
[Construction E Book]
 
SEISMIC_DESIGN
SEISMIC_DESIGNSEISMIC_DESIGN
SEISMIC_DESIGN
 

LRU -part A-

  • 2.
  • 3. مثال : Reference string: 1, 2,1, 3, 6,4, 1, 5, 2, 7, 6, 2, 3, 4, 5 1 2 1 3 6 4 1 5 2 7 3 2 1 2 1 2 1 3 2 1 6 3 2 1 4 6 3 2 1 4 6 3 2 1 4 6 3 5 1 4 6 2 5 1 4 7 2 5 1 3 7 2 5 1 6 7 2 5 1
  • 4.
  • 5. 7 1 Counter: 0 1 2 0 3 0 4 2 3 4 5 6 7 8 2 3 0 3 2 9 10 11 12 1 2 0 1 7 0 0 13 14 15 16 17 18 19 20 7 (1) 0 (2) 7 (1) 1 (3) 0 (2) 2 (4) 1 (3) 0 (5) 2 (4) 3 (6) 0 (7) 2 (4) 3 (6) 0 (5) 2 (4) 1 (3) 0 (2) 7 (1) 3 (6) 0 (7) 4 (8) 2 (9) 0 (7) 4 (8) 2 (9) 3 (10) 4 (8) 2 (9) 3 (10) 0 (11) 2 (9) 3 (12) 0 (11) 2 (13) 3 (12) 1 (14) 2 (15) 0 (16) 1 (14) 2 (15) 3 (12) 1 (14) 2 (15) 0 (16) 1 (17) 7 (18) 0 (16) 1 (17) 7 (18) 0 (19) 1 (17) 7 (18) 0 (20) 1 (17) 2 (13) 3 (12) 0 (11)