mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-03 10:35:34 +08:00
Update others/lru_cache.cpp
Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
* Every time a requested page is not found in cache, that is a miss or page
|
* Every time a requested page is not found in cache, that is a miss or page
|
||||||
* fault, and if the page is present in cache, then its a hit.
|
* fault, and if the page is present in cache, then its a hit.
|
||||||
*
|
*
|
||||||
* ## Data Structure used:
|
* ## Data Structure used
|
||||||
* * In the algorithm below we used two different data structure, one is linked
|
* * In the algorithm below we used two different data structure, one is linked
|
||||||
* list and other one is a hash map
|
* list and other one is a hash map
|
||||||
* * The linked list is used to contain the pages and the hash map contains the
|
* * The linked list is used to contain the pages and the hash map contains the
|
||||||
|
|||||||
Reference in New Issue
Block a user