Codes Correcting Two Deletions

Ryan Gabrys, Frédéric Sala

Abstract

Correcting deletions in binary sequences is a fundamental challenge in coding theory due to the resulting synchronization errors. While single-deletion correction is well-understood, multiple-deletion correction has historically suffered from high redundancy requirements. This work presents a new class of codes for correcting two deletions with a redundancy of $8 \log_2 n + O(\log_2 \log_2 n)$ bits. By employing a "divide and conquer" strategy that categorizes deletion scenarios and utilizes structural markers, the proposed construction achieves a 16-fold improvement over prior state-of-the-art methods.

Introduction

In error-correcting codes, deletions are significantly more difficult to manage than standard bit-flip substitutions. A single deletion causes the entire subsequent sequence to shift, leading to a synchronization error that corrupts all following data. While the Varshamov-Tenengolts (VT) codes from the 1960s provide a nearly optimal solution for single deletions, correcting multiple deletions remains a hurdle. For two deletions, theoretical lower bounds suggest a minimum redundancy of $2 \log_2 n$ bits. However, until recently, the best constructive methods required approximately $128 \log_2 n$ bits. This paper bridges this gap with a practical construction that significantly reduces redundancy.

Methodology

The authors utilize a "divide and conquer" strategy centered on how deletions impact the structure of binary strings. The approach consists of three primary pillars:

Scenario Delineation and Marker Substrings

The core of the method involves identifying specific scenarios for how two deletions can occur. By analyzing the preservation or destruction of specific marker substrings—such as 0000, 1111, 11011, and 110011—the decoder can localize the errors.

Visual representation of various deletion scenarios within a bitstring, illustrating how specific bit removals are categorized.

These markers act as "anchors." If a deletion occurs, the presence or absence of these markers allows the system to determine which of the six predefined scenarios took place (e.g., two zeros deleted from different runs, or one zero and one one deleted). This localization is key to "breaking the symmetry" and distinguishing between different error types.

Nested Error Correction

Rather than employing a single monolithic code, the construction uses a series of detection codes and hash functions. Non-binary error-correcting codes, specifically Dumer and BCH codes, are applied to "sketches" or hashes of the substrings located between the markers. In the most advanced version, a hash function based on the run-length representation of the string is used, allowing for lower-distance codes to correct synchronization errors efficiently.

Key Results

The primary contribution of this work is the drastic reduction in redundancy. The construction achieves a redundancy of $8 \log_2 n + O(\log_2 \log_2 n)$ bits, representing a 16-fold improvement in the leading constant compared to the previous best-known construction.

Extracted figure from page 1 of Codes Correcting Two Deletions

As shown in Figure 1, the redundancy of the proposed code grows much more slowly with code length compared to prior work. Beyond redundancy, the code rate is significantly improved, especially for shorter code lengths. Unlike computer-search-based codes, which are optimal but computationally infeasible for large $n$, this construction scales polynomially, making it viable for long data sequences.

Conclusion and Future Work

This paper presents a breakthrough in correcting two deletions, moving the field significantly closer to the theoretical limit. While $8 \log_2 n$ is a major advancement, a gap remains to the $2 \log_2 n$ lower bound. Future research will focus on narrowing this gap further, improving encoding complexity, and generalizing the framework to handle three or more deletions, where the complexity of scenario management increases exponentially.

Summary updated

BibTeX
@misc{gabrys2017codes,
  author = {Ryan Gabrys and Frédéric Sala},
  title = {{Codes Correcting Two Deletions}},
  year = {2017},
  eprint = {1712.07222},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.07222},
}
Figure