arXiv:2610.27978cs.ITOct 2026

Manuscript Offprint

arXiv:2610.27978

Error-correction Decoding for 2D Convolutional Codes with a Generalized Viterbi Algorithm

Zita Abreu, Elisa Junghans, Julia Lieb, Raquel Pinto

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Two-dimensional (2D) convolutional codes are a generalization of one-dimensional (1D) convolutional codes and are naturally suitable for encoding two-dimensional data. Although their theoretical properties are well established, practical applications are limited due to the lack of error-correction decoding algorithms. While the Viterbi algorithm provides an efficient decoding method for 1D convolutional codes, no analogous approach exists for the 2D case. In this paper, we introduce a decoding algorithm for 2D convolutional codes, called the 2D Viterbi algorithm, extending the principles of the classical Viterbi algorithm to the two-dimensional setting. The presented 2D Viterbi algorithm works with linear systems representations of 2D convolutional codes and its complexity depends on the dimension of the corresponding 2D linear system. Hence, we also provide several algorithms to obtain 2D realizations of small dimension.

KeyWords: 2D convolutional code, error-correction decoding, Viterbi algorithm, linear systems representation for 2D convolutional codes, local reachability, local observability

1 Introduction

Two-dimensional (2D) convolutional codes are a natural generalization of convolutional codes, to which we will refer in this paper as one-dimensional (1D) convolutional codes.

∗^{*}zita.abreu@staff.uma.pt

†^{\dagger}elisa.junghans@tu-ilmenau.de

‡^{\ddagger}Julia.Lieb@uni-bayreuth.de

§^{§}raquel@ua.pt

2D convolutional codes deal with data represented by two-dimensional sequences and therefore are naturally fitting to deal with two-dimensional information, like pictures, data storage, etc.

The theory of 2D convolutional codes is very well understood and has been investigated by many authors in the last years. These codes have been introduced in [FV94, VF94]. In these papers the algebraic properties of 2D convolutional codes are studied in detail. In [CNPP12], the authors investigated the distance properties of 2D convolutional codes of rate 1/n and obtained an upper bound (called the 2D generalized Singleton bound) for these codes and presented constructions of 2D convolutional codes with optimal distance. In [CNPP16], the authors generalized these concepts and results for 2D convolutional codes of any rate and presented constructions of such codes for certain parameters. In [ANP15], further constructions were presented for a more general set of parameters. Input-state-output representations of 2D systems were studied in [NPP10].

Even though the theory of 2D convolutional codes is very well developed, these codes are not used in practical applications. One of the main reasons is that there exists no decoding algorithm for error-correction with these codes. In [CNPSo16] and in [LP23], decoding algorithms for 2D convolutional codes were presented for an erasure channel, i.e., for a channel in which a symbol arrives correctly or does not arrive at all. However, when we consider channels in which errors occur, there is no procedure to detect and correct errors that appear during the transmission of the information.

The most famous error-correction decoding algorithm for 1D convolutional codes is the Viterbi algorithm. This algorithm decodes a received word after channel transmission by considering all codewords of the code up to a certain length and then selecting the codeword which is closest to the received word. This algorithm applies techniques from dynamic programming to the linear systems representation of the convolutional code. In this paper we define a similar error-correction decoding algorithm for 2D convolutional codes, which we will call the 2D Viterbi algorithm. The computational complexity of this algorithm depends on the dimension of the underlying 2D linear system. Finding a realization for a 2D encoder of minimal dimension is a challenging open problem. However, in this paper, we provide several strategies to obtain 2D realizations of small dimensions.

The paper is organized as follows. Section 2 presents the basic background on 2D convolutional codes including system representations of 2D convolutional codes. In Section 3, we introduce a decoding method for 2D convolutional codes, called the 2D Viterbi algorithm, which extends the ideas of the classical Viterbi algorithm to the two-dimensional case. In Section 4, we analyze the complexity of the 2D Viterbi algorithm and discuss ways to obtain an encoder realization of small dimension in order to decrease this decoding complexity.