arXiv:2610.34511cs.ITOct 2026

Manuscript Offprint

arXiv:2610.34511

Insdel Decoding Algorithms for Maximum Distance Separable Codes

Bencheng Fan, Margreta Kuijper, Jingge Zhu

Bencheng Fan

Dept. EE Engineering

The University of Melbourne

Melbourne, Australia

benchengf@student.unimelb.edu.au

Margreta Kuijper

Dept. EE Engineering

The University of Melbourne

Melbourne, Australia

mkuijper@unimelb.edu.au

Jingge Zhu

Dept. EE Engineering

The University of Melbourne

Melbourne, Australia

jingge.zhu@unimelb.edu.au

Abstract—In this paper, we focus on decoding MDS linear block codes for insdel errors. Building on our recent work for two-dimensional Reed-Solomon codes, we present a decoding algorithm for bounded distance decoding for the general insertion-and-deletion scenario that can be used for any MDS code of rate at most half. Our algorithm employs a sliding window and has a time complexity smaller than brute-force decoding. In particular, for optimal Reed-Solomon codes, it corrects insdel errors up to the half-Singleton bound, which exceeds the scope of existing methods. Additionally, for the special cases of insertion-only and deletion-only insdel error patterns, we present two different algorithms with a time complexity smaller than our general algorithm.

Index Terms—Reed-Solomon, Insdel error, DNA storage

I. INTRODUCTION

DNA storage is an emerging data storage technology that uses synthetic DNA molecules to encode and store digital information. In a DNA-based storage system, information is encoded into sequences over the DNA alphabet {A,G,C,T}\{A, G, C, T\}. Because of its high data density, energy efficiency, and longevity, DNA-based storage is a promising approach for meeting the ever-growing demands of data storage [15] [16].

Despite these advantages, DNA-based storage faces several technological challenges, including high costs, slow read and write speeds, and high error rates in the synthesis and sequencing processes. These errors stem from mutations, degradation, and flawed synthesis and sequencing processes. In particular, DNA molecules are susceptible to insertions and deletions (insdel errors) [7] [10] [13].

Levenshtein, Varshamov and Tenengolts pioneered the study of codes that correct insdel errors in the 1960s [12] [11]. In [11], Levenshtein demonstrated the equivalence between insertions and deletions by showing that any code capable of correcting t deletions can correct t insertions and deletions.

It is demonstrated in [3] that the number of insdel errors that an [n,k][n, k] linear code can correct is at most n−2k+1n - 2k + 1, which is called the half-Singleton bound. Linear codes that reach the half-Singleton bound are said to be optimal. Recent literature has shown that it is possible to construct optimal Reed-Solomon codes. [2] [4] [5]

So far, the problem of constructing optimal [n,k][n, k] Reed-Solomon codes, where n2≥k≥2\frac{n}{2} \geq k \geq 2 has been addressed. Moreover, designing efficient decoding algorithms for Reed-Solomon codes against insdel errors has also gained attention in recent years. While most work so far has focused on decoding [n,2][n, 2] Reed-Solomon codes against insdel errors [14][14] [6][6], there are relatively few works addressing the problem of decoding [n,k][n, k] Reed-Solomon codes, where k≥3k \geq 3. For [n,k][n, k] optimal Reed-Solomon codes in general where k≥2k \geq 2, Banerjee et al. [1][1] propose a polynomial-time decoding algorithm that can correct up to tt insdel errors as long as t⋅k=O(n)t \cdot k = \mathcal{O}(n). We observe that a necessary condition for the method proposed in [1][1] to correct tt insdel errors is that t<(k+1)n−(k2+2k)n2+knt < (k + 1)n - \sqrt{(k^2 + 2k)n^2 + kn}, which is significantly less than the half-Singleton bound n−2k+1n - 2k + 1. [6][6]