[論文レビュー] Compression by Contracting Straight-Line Programs
本稿では、各変数の右辺が親より一定の係数で短くなるように制約を課した、バランスの取れたSLPの新クラス「収縮SLP(contracting SLPs)」を導入する。著者らは、任意のSLPを等価な収縮SLPに線形時間で変換するアルゴリズムを提示し、そのサイズがO(g)であることを保証する。これにより、O(log d + log^(t) N)の時間計算量で圧縮文字列における効率的なナビゲーションとフィンガーシャークが可能となり、従来のO(log d + log log N)の境界を改善する。
In grammar-based compression a string is represented by a context-free grammar, also called a straight-line program (SLP), that generates only that string. We refine a recent balancing result stating that one can transform an SLP of size g in linear time into an equivalent SLP of size 𝒪(g) so that the height of the unique derivation tree is 𝒪(log N) where N is the length of the represented string (FOCS 2019). We introduce a new class of balanced SLPs, called contracting SLPs, where for every rule A → β₁ … β_k the string length of every variable β_i on the right-hand side is smaller by a constant factor than the string length of A. In particular, the derivation tree of a contracting SLP has the property that every subtree has logarithmic height in its leaf size. We show that a given SLP of size g can be transformed in linear time into an equivalent contracting SLP of size 𝒪(g) with rules of constant length. This result is complemented by a lower bound, proving that converting SLPs into so called α-balanced SLPs or AVL-grammars can incur an increase by a factor of Ω(log N). We present an application to the navigation problem in compressed unranked trees, represented by forest straight-line programs (FSLPs). A linear space data structure by Reh and Sieber (2020) supports navigation steps such as going to the parent, left/right sibling, or to the first/last child in constant time. We extend their solution by the operation of moving to the i-th child in time 𝒪(log d) where d is the degree of the current node. Contracting SLPs are also applied to the finger search problem over SLP-compressed strings where one wants to access positions near to a pre-specified finger position, ideally in 𝒪(log d) time where d is the distance between the accessed position and the finger. We give a linear space solution for the dynamic variant where one can set the finger in 𝒪(log N) time, and then access symbols or move the finger in time 𝒪(log d + log^(t) N) for any constant t where log^(t) N is the t-fold logarithm of N. This improves a previous solution by Bille, Christiansen, Cording, and Gørtz (2018) with access/move time 𝒪(log d + log log N).
研究の動機と目的
- α-バランスの取れたSLP や AVL-grammar といった既存のバランスの取れたSLPには、変換時にΩ(log N)のサイズ増加を伴うという限界があるため、これを解消すること。
- 部分木のリーフサイズに対して対数的高さを保証する新しいバランス化メカニズム「収縮SLP」を設計し、圧縮文字列における効率的なナビゲーションを可能にすること。
- 線形空間のデータ構造を提供し、文法圧縮文字列における効率的なフィンガーシャークとナビゲーションを実現し、従来のアクセス時間と移動時間の境界を改善すること。
- α-バランスの取れたSLP や AVL-grammar に変換する際、Ω(log N)のサイズ増加が避けられないことを示す下界を証明することにより、収縮SLPの優位性を強調すること。
- 既存の圧縮データ構造を拡張し、非ランク付き木におけるi番目の子への効率的なアクセスを可能とし、より良い時間計算量で動的フィンガーシャークを実現すること。
提案手法
- すべての規則A → β₁…βₖに対して、各βᵢの文字列長が|A|より一定の係数で小さくなるように、収縮SLPを定義する。これにより、部分木のリーフサイズに対して対数的高さが保証される。
- 任意のサイズgのSLPを、等価でサイズO(g)の収縮SLPに線形時間で変換するアルゴリズムを設計する。導出木の構造を制御された深さで保ちながら維持する。
- 左・右の重みの累積和を用いた加速パスを用い、導出木における高速ナビゲーションを実現する。動的先行者データ構造を維持することで、パスクエリを効率的に処理する。
- 左・右の辺の森林に対して重み付き祖先データ構造を適用し、導出木における長距離移動をサポートする。短距離ステップと長距離ステップを組み合わせて、効率性を向上させる。
- 収縮SLPのパスバランス構造を活用し、任意のパスにおける短距離ステップ数をO(log d)に制限することで、O(log d + log^(t) N)のフィンガーシャーク時間計算量を達成する。
- (α, β)-パスバランスの取れたSLPに対して、辺の森林における重み付き祖先クエリを用いて、O(log d)時間でフリージェアクセスを実現することを証明する。これにより、新しいバランス化モデルの有効性が示される。
実験結果
リサーチクエスチョン
- RQ1α-バランスの取れたSLP や AVL-grammar で見られるΩ(log N)のサイズ増加を回避できる、より効率的なSLPのバランス化メカニズムを設計できるか?
- RQ2任意のSLPから、同値性を保ちつつ、O(g)サイズの収縮SLPを線形時間で構築できるか?
- RQ3新たなSLP構造を用いることで、O(log d + log log N)を超える速度で圧縮文字列におけるナビゲーションとフィンガーシャークを高速化できるか?
- RQ4α-バランスの取れたSLP や AVL-grammar に変換する際、Ω(log N)のサイズ増加が本質的であることを示す下界は存在するか?
- RQ5提案されたデータ構造は、非ランク付き木におけるi番目の子への効率的アクセスをサポートでき、従来の森林SLPに関する研究を拡張できるか?
主な発見
- 任意のサイズgのSLPを、等価でサイズO(g)の収縮SLPに線形時間で変換するアルゴリズムを実現。規則の長さは定数に保たれる。
- 収縮SLPは、すべての部分木がそのリーフサイズに対して対数的高さを持つことを保証し、効率的なナビゲーションとフィンガーシャークを可能にする。
- 本稿では、SLPをα-バランスの取れたSLP や AVL-grammar に変換する際、Ω(log N)のサイズ増加が避けられないことを示す下界を証明し、収縮SLPの効率性を強調する。
- O(log d + log^(t) N)の時間計算量でアクセスおよび移動操作が可能な動的フィンガーシャークデータ構造を実現。従来のO(log d + log log N)の境界を改善する。
- 圧縮された非ランク付き木におけるi番目の子へのアクセスをO(log d)時間で実現。RehとSieber(2020)のナビゲーションデータ構造を拡張する。
- (α, β)-パスバランスの取れたSLPに対して、辺の森林における重み付き祖先クエリを用いて、O(log d)時間でフリージェアクセスが可能であることを示し、新バランス化モデルの強力さを実証する。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。