Quantum Version of LZ78 Lossless Data Compression Algorithm

Not scheduled
15m
Methods of quantum computing and quantum information processing

Speaker

Kamil Khadiev (Kazan Federal University)

Description

In this paper, we consider a quantum version of the LZ78 lossless data compression algorithm. A modification of this algorithm, LZW, is used in the GIF image storage format. Moreover, the developed quantum version of the algorithm can also be applied to LZW.

The LZ78 algorithm uses a dictionary-based approach for string compression. It generates the dictionary during encoding and decoding. Initially, the dictionary is empty, and the algorithm attempts to encode the first character. At each iteration, the algorithm tries to extend the prefix being encoded as long as that prefix exists in the dictionary. The codewords of this algorithm consist of two parts: the dictionary index of the longest found prefix and the symbol following that prefix. After encoding such a pair, the prefix with the appended symbol is added to the dictionary, and the algorithm continues encoding from the next symbol.

The standard approach for implementing the algorithm assumes that a prefix tree or trie data structure is used to implement the dictionary. In this case, the time complexity of the encoding algorithm is $O(n)$, where $n$ is the length of the input string.

The quantum algorithm we propose has query complexity $O(\sqrt{tn}\log n)$, where
$t$ is the number of words in the dictionary. Due to the LZ78 algorithm $t<n$. Moreover, in many cases, $t<n/(\log n)^2$, making the quantum algorithm more efficient than the classical one. This situation most often occurs for data with a large amount of redundancy, such as images or similar. Unlike the classical algorithm, the quantum algorithm uses a noisy red-black tree with a quantum string comparator to implement the dictionary. The algorithm uses the Walking Tree technique for noisy comparing procedures; and the quantum strings comparing algorithm
that is based on a modification of Grover's search algorithm that finds the minimum argument satisfied a predicate.

Authors

Mr Amindjon Shermatov (Yandex Ltd) Mr Ilnar Zinnatullin (Kazan Federal University) Kamil Khadiev (Kazan Federal University)

Presentation materials

There are no materials yet.