Graphic cache elimination algorithm 3-FIFO

Source: Internet
Author: User
1. Conceptual Analysis

FIFO (first in first out), that is, first in first out. the first data to enter is the first data to enter. A simple algorithm. you only need to use the queue data structure. the concept behind the FIFO elimination algorithm is"Recently, the access is more likely in the future.". After reading these three algorithms, I think we have gained a lot of insight into our understanding of elimination, based on an estimation of future possibilities.

2. Principle Analysis

The FIFO elimination process is similar to the conveyor belt method. Data first placed on the conveyor belt will be first eliminated, as shown in.

 

3. Optimization Analysis

Hit rate]

Low hit rate, not recommended.

Complexity]

Very simple.

Storage cost]

Very low.

Defects]

The speed is fast, but there is no practical value.

4. Implementation

The implementation method is very simple. You can use the queue to complete the process. I will not repeat it here. Of course, this elimination algorithm is too simple and is not the focus. We will discuss the transformation algorithm based on FIFO.

Finally, please advise me if any of the following is incorrect.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.