Better Algorithms for Constructing Minimum Cost Markov Chains and AIFV Codes
Reza Hosseini Dolatabadi, Mordedcai J. Golin, Arian Zamani
TL;DR
This work addresses constructing minimum-cost Markov Chains with applications to $AIFV$ coding, reframing the optimization as a Markov Chain Polytope problem. It provides a complete termination and correctness proof for the existing iterative algorithm, strengthening theoretical guarantees. It also presents a new, simpler weakly polynomial-time approach for $AIFV$-$m$ coding by exploiting MCP structure and replacing the Ellipsoid method with binary search, achieving practical efficiency. For the special case of $AIFV$-$3$ coding, the authors derive a concrete $O(n^5 b^2)$ time algorithm, with potential extension to larger $m$, showcasing substantial improvements in both theory and practice for near-optimal, rapidly computable codes.
Abstract
The problem of constructing optimal AIFV codes is a special case of that of constructing minimum cost Markov Chains. This paper provides the first complete proof of correctness for the previously known iterative algorithm for constructing such Markov chains. A recent work describes how to efficiently solve the Markov Chain problem by first constructing a Markov Chain Polytope and then running the Ellipsoid algorithm for linear programming on it. This paper's second result is that, in the AIFV case, a special property of the polytope instead permits solving the corresponding linear program using simple binary search
