arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.12249cs.DS
收藏

块感知缓存的竞争算法

Competitive Algorithms for Block-Aware Caching

Christian Coester, Roie Levin, Joseph, Naor, Ohad Talmon

摘要:

我们研究了块感知缓存问题,经典缓存的泛化,其中从同一块中获取(或驱逐)页面会产生相同的成本,从块中获取(或驱逐)一个页面。给定一个大小为$k$的高速缓存,以及一个来自$n$页的请求序列,该请求序列被划分为大小为$β\leq k$的给定块,目标是最小化从高速缓存中获取(或从高速缓存中清除)的总成本。我们展示了以下结果:$\bullet$对于驱逐成本模型,我们展示了一个$O(\log k)$ -近似离线算法,一个$k$ -竞争确定性在线算法,和一个$O(\log^2 k)$ -竞争随机在线算法。$\bullet$对于获取成本模型,我们显示了$Ω(β)$的自然LP松弛问题的完整性差距,和随机在线算法的$Ω(β+ \log k)$下界。忽略块结构和运行经典的寻呼算法的策略平凡地实现了$O(β)$近似和$O(β\log k)$竞争比分别为离线和在线随机设置。$\bullet$对于获取和驱逐模型,我们显示了改进的界限的$(h,k)$双标准版本的问题。特别是,当$k=2h$,我们匹配的经典缓存算法的性能恒定的因素。我们的研究结果建立了一个分离的提取和驱逐成本模型,这是有趣的,因为提取/驱逐成本是相同的添加剂长期经典的缓存之间的易处理性。以前的工作只研究了$k > h$时获取成本模型的在线确定性算法。我们的见解是放松块感知缓存问题的子模块覆盖LP。主要的技术挑战是保持一个有竞争力的分数解,并以有界损失对其进行舍入,因为该LP的约束是在线显示的。

英文摘要:

We study the block-aware caching problem, a generalization of classic caching in which fetching (or evicting) pages from the same block incurs the same cost as fetching (or evicting) just one page from the block. Given a cache of size $k$, and a sequence of requests from $n$ pages partitioned into given blocks of size $β\leq k$, the goal is to minimize the total cost of fetching to (or evicting from) cache. We show the following results: $\bullet$ For the eviction cost model, we show an $O(\log k)$-approximate offline algorithm, a $k$-competitive deterministic online algorithm, and an $O(\log^2 k)$-competitive randomized online algorithm. $\bullet$ For the fetching cost model, we show an integrality gap of $Ω(β)$ for the natural LP relaxation of the problem, and an $Ω(β+ \log k)$ lower bound for randomized online algorithms. The strategy of ignoring the block-structure and running a classical paging algorithm trivially achieves an $O(β)$ approximation and an $O(β\log k)$ competitive ratio respectively for the offline and online-randomized setting. $\bullet$ For both fetching and eviction models, we show improved bounds for the $(h,k)$-bicriteria version of the problem. In particular, when $k=2h$, we match the performance of classical caching algorithms up to constant factors. Our results establish a separation between the tractability of the fetching and eviction cost models, which is interesting since fetching/evictions costs are the same up to an additive term for classic caching. Previous work only studied online deterministic algorithms for the fetching cost model when $k > h$. Our insight is to relax the block-aware caching problem to a submodular covering LP. The main technical challenge is to maintain a competitive fractional solution, and to round it with bounded loss, as the constraints of this LP are revealed online.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑