此题翻译有误
  • 板块CF698C LRU
  • 楼主Cure_Wing
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/3/20 12:37
  • 上次更新2024/3/20 17:19:26
查看原帖
此题翻译有误
394167
Cure_Wing楼主2024/3/20 12:37

第一行“如果已经有了 ii 就不放了”应该为“如果已经有了 ii 就把它取出然后放到队列末尾”。

原文翻译:

Suppose the cache may store no more than kk objects. At the beginning of the workflow the cache is empty. When some object is queried we check if it is present in the cache and move it here if it's not. If there are more than kk objects in the cache after this, the least recently used one should be removed. In other words, we remove the object that has the smallest time of the last query.

假设缓存中存储的对象不超过 kk个。在工作流程开始时,缓存是空的。当某个对象被查询时,我们会检查缓存中是否有该对象,如果没有,就把它移到缓存中。在此之后缓存中有超过 kk个对象,则应移除最近使用最少的一个。换句话说,我们会删除上次查询时间最短的对象。

2024/3/20 12:37
加载中...