Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Speeding up the AIFV-$2$ dynamic programs by two orders of magnitude using Range Minimum Queries (2002.09885v1)

Published 23 Feb 2020 in cs.DS, cs.IT, and math.IT

Abstract: AIFV-$2$ codes are a new method for constructing lossless codes for memoryless sources that provide better worst-case redundancy than Huffman codes. They do this by using two code trees instead of one and also allowing some bounded delay in the decoding process. Known algorithms for constructing AIFV-code are iterative; at each step they replace the current code tree pair with a "better" one. The current state of the art for performing this replacement is a pair of Dynamic Programming (DP) algorithms that use $O(n5)$ time to fill in two tables, each of size $O(n3)$ (where $n$ is the number of different characters in the source). This paper describes how to reduce the time for filling in the DP tables by two orders of magnitude, down to $O(n3)$. It does this by introducing a grouping technique that permits separating the $\Theta(n3)$-space tables into $\Theta(n)$ groups, each of size $O(n2)$, and then using Two-Dimensional Range-Minimum Queries (RMQs) to fill in that group's table entries in $O(n2)$ time. This RMQ speedup technique seems to be new and might be of independent interest.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (2)
  1. Mordecai Golin (16 papers)
  2. Elfarouk Harb (10 papers)
Citations (16)

Summary

We haven't generated a summary for this paper yet.