Manuscript Offprint
arXiv:2610.17934Chordal Codes: Code Construction and Efficient Gaussian-Elimination Decoding
Yulin CHEN, Laigang GUO, Tong LI, Mingyang ZHU
Abstract—Maximum-likelihood decoding of linear codes over erasure channels can be considered as solving a linear system of a column submatrix of the parity-check matrix. In practice, Gaussian elimination is usually applied, and its computational cost depends on the structure of the matrix, especially the sparsity and the fill-in generated during the elimination. The chordal graph, or triangulated graph, first introduced by C. Berge, has a so-called perfect elimination ordering, indicating that if the primal graph of a matrix is a chordal graph, then there exists a perfect elimination ordering such that a special class of fill-in under Gaussian elimination following this ordering will be avoided. In this paper, we introduce chordal codes, i.e., codes equipped with parity-check matrices such that the primal graphs of the parity-check matrices are chordal. We prove that, for a chordal code, the decoding submatrix associated with any erasure pattern retains a chordal primal graph. So, the complexity of chordal elimination (Gaussian elimination following the perfect elimination ordering applied to the chordal code decoding) will be smaller than decoding a random code by Gaussian elimination. Also, we provide an upper bound on the complexity of chordal elimination.
I. INTRODUCTION
Linear codes are widely used to protect information against losses in communication and storage systems. For a linear code with parity-check matrix , maximum-likelihood decoding over a q-ary erasure channel reduces to solving
where E is the set of erased coordinates and is the corresponding column submatrix [1]. Therefore, decoding complexity is closely related to the cost of Gaussian elimination on submatrices of H. Gaussian elimination may introduce additional non-zero entries, known as fill-in (a zero entry in the matrix turning non-zero during the Gaussian elimination [2]), which increases computational and memory costs. Therefore, it is natural to design codes with specially structured parity-check matrices to reduce the computational complexity of Gaussian elimination. In the last decade, several codes have been proposed, such as LDPC-Band codes [3], pseudo-band form of the QC-LDPC codes [4] and polar codes with sparse parity-check representation [5]. In this paper, we propose a novel code construction with lower decoding complexity than conventional Gaussian-elimination decoding. Inspired by the perfect elimination property of chordal graphs, we design the parity-check matrix such that its primal graph is chordal. This structure allows Gaussian elimination to follow a perfect elimination ordering, thereby controlling fill-in and reducing the overall decoding complexity. The remainder of this paper is organized as follows. Section II introduces the necessary theoretical concepts in graph theory and coding theory. Section III presents the chordal code construction. In Section IV, we compare the complexities of chordal elimination (Gaussian elimination following a perfect elimination ordering in a chordal graph) with Gaussian elimination through theoretical analysis as well as simulations. Section V is the conclusion.
A. Notation in Graph Theory
Definition 2.1 (Undirected graph): An undirected graph consists of a vertex set and an edge set . An edge can be represented by the two endpoints. For example, if there is an edge between two vertices and , then edge can be represented as . We say that and are adjacent, or connected, if there exists an edge whose two component vertices are and . A sequence of edges forms a cycle of length for , represented by .
Definition 2.2 (Clique): Let be an undirected graph with vertex set and edge set . A clique is a subgraph of such that any two vertices in are adjacent, i.e., there is an edge between any two vertices in .
Yulin Chen is with the Department of Information Engineering, The Chinese University of Hong Kong, Hong Kong, SAR, China e-mail: (1155189560@link.cuhk.edu.hk)(Corresponding authors: Mingyang Zhu; Laigang Guo)
Definition 2.3 (Induced Subgraph [6]): Let be an undirected graph with vertex set and edge set . An induced subgraph of , denoted by , is a graph determined by a subset of vertices , where
Laigang Guo is with the Laboratory of Mathematics and Complex Systems (Ministry of Education), School of Mathematical Sciences, Beijing Normal University, Beijing 100875, China (e-mail: lgguo@bnu.edu.cn)
Tong LI is with the Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing, 100190, P. R. China e-mail: litong@amss.ac.cn
M. Zhu is with the School of Information and Electronic Engineering, East China Normal University, Shanghai 200241, China (e-mail: myzhu@ee.ecnu.edu.cn)
That is, contains all vertices in and all edges of G whose two endpoints both belong to .
The chordal graph was first introduced in [7]. It has several equivalent definitions. The following two definitions of the chordal graph will be used in the subsequent sections.
Definition 2.4 (Chordal Graph [8]): Let be an undirected graph with vertex set . An ordering of its vertices is called a perfect elimination ordering if for all , the induced subgraph is a clique, where the set is defined as
. (1)
G is called chordal if it has a perfect elimination ordering.
Chordal graph can also be defined equivalently as follows:
Definition 2.5 (Chordal Graph [9]): Let be an undirected graph with vertex set and edge set . The graph is chordal if every cycle of length greater than three has a chord.
Note that a chord is an edge that connects two vertices which are not adjacent in the cycle. For example, let be a cycle of length 4. Since is only adjacent to and , is not adjacent to . So if edge exists, it is a chord which connects vertices and .
Definition 2.6 (Primal Graph): Let be a matrix. A primal graph of , denoted by , is an undirected simple graph defined as follows:
• The vertex set V of is
where vertex j corresponds to column j in H.
• For each row , define the vertex set
The set induces a clique in , i.e., there is an edge between any two vertices in .
Since is an undirected simple graph, the cliques induced by different rows in H can intersect or coincide.
Note that vertices in are adjacent if and only if there exists at least one row , such that and .
As proved in Lemma 1 and Theorem 1 in [10], there always exists a so-called monotone transitive ordering in a chordal graph which ensures that the vertex elimination adds no edges. In Gaussian elimination, this reduces the fill-in generated in the Gaussian elimination in the corresponding matrix. This monotone transitive ordering is in fact equivalent to the perfect elimination ordering (PEO) [8]. Therefore, let H be a matrix with being chordal. Then we can reduce the complexity of the Gaussian elimination of H by choosing the pivots under the perfect elimination ordering of .
For a matrix under Gaussian elimination, a row is called active if it has not been selected as a pivot row in any previous elimination step. We say that a column is processed when it is examined for a pivot: if it contains a non-zero entry in an active row, a pivot row is selected and the column is eliminated from all other active rows. Otherwise, the column is skipped.
B. Linear Coding and Erasure Decoding
Let , and let be a full-row-rank parity-check matrix. The associated linear code is
which is an linear code. Suppose that a codeword is transmitted over a -ary erasure channel. Note that in the rest of the paper, we will use symbol to denote a vertex in the graph as well as a column vector of length with each symbol defined in base field . Let denote the set of erased coordinates, where , and let . For any , let denote the submatrix of formed by the columns indexed by , and let denote the corresponding subvector of . Since the erasure pattern and the unerased symbols are known at the decoder, every codeword consistent with the channel output must satisfy
For the erasure channel, all codewords consistent with the channel output have the same likelihood. Hence, maximum-likelihood decoding is equivalent to solving (3). The transmitted codeword is uniquely recoverable if and only if
i.e., if and only if the columns of H indexed by are linearly independent.
III. CHORDAL CODE SCHEME
In this section, we will apply the chordal graph to the erasure channel. As mentioned in Section II-B, if a code C is transmitted through an erasure channel, then its parity-check matrix H will be replaced by a submatrix by deleting some columns of H.
Lemma 3.1: [6] Let be a chordal graph and . Then, is chordal.
The above lemma shows that the induced subgraph of a chordal graph is also a chordal graph.
Theorem 3.2: Let be a column submatrix of , i.e., is obtained by deleting some of the columns of . If is chordal, then is chordal.
Proof: Consider an matrix with being the columns of . Let be an submatrix of with being the columns of . Note that and . So from Definition 2.6, we obtain that and . Obviously, . So, to prove that is an induced subgraph of , we only need to prove that for any two vertices in , they are adjacent in if and only if they are adjacent in .
First, we show that for any two vertices in , if they are adjacent in , then they are adjacent in . Assume that are two arbitrary adjacent vertices in . According to Definition 2.6, we obtain that column and column have at least one non-zero entry in the same row in . Since is a column submatrix of , it follows that column and column have at least one non-zero entry at the same row in too. So are adjacent in .
Next, we show that for any two vertices in , if they are adjacent in , then they are adjacent in . Assume that are two arbitrary adjacent vertices in . By the same argument, we obtain that column and column have at least one non-zero entry at the same row in . Since is a column submatrix of and , it follows that column and column remain unchanged in . So are adjacent in . Therefore, is an induced subgraph of . Together with Lemma 3.1, is chordal. Hence, the theorem is proved.
From Subsection II-B, decoding a code C with parity-check matrix H over an erasure channel reduces to solving the linear system (3) where is the column submatrix of H indexed by the erased coordinates. By Theorem 3.2, is an induced subgraph of . Therefore, if is chordal, then is also chordal and admits a perfect elimination ordering (PEO). Consequently, Gaussian elimination can be performed according to this PEO, with lower complexity.
A. Code Construction
Definition 3.3 (Chordal code): Let be a code and be a parity-check matrix of . is called chordal if is equipped with a parity-check matrix such that is a chordal graph.
The following theorem shows a construction of a chordal code C with H being its parity-check matrix.
Theorem 3.4: Let be an parity-check matrix of a random code in the systematic form, i.e.,
where is an sparse matrix. Let be an matrix with as follows:
with being an full rank matrix such that the primal graph of is a complete graph (clique). A simple way to ensure that is complete is to include a row whose entries are all nonzero. 0 refers to an all-zero matrix of dimension . If , then
is a parity-check matrix of a chordal code C with length n and dimension .
Proof: According to the dimensions of and , it is obvious that is an matrix. So it is a parity-check matrix of a code with length and dimension . So we only need to prove that is a chordal graph.
Let be the n columns in H from left to right, and they correspond to n vertices in . Recall
columns
First, we consider the first columns. Since is a complete graph, vertices form a clique according to definition 2.6, i.e., any two vertices among are adjacent. Then for the remaining columns, since is an identity matrix and is the all zero matrix, there is only one 1 symbol in each column and all these 1 symbols are in different rows. So any two vertices among are not adjacent in . and each of them forms a clique with some of the vertices among .
Now we order the vertices as follows:
For any vertex among in this ordering, it is only adjacent to some of the vertices among , which appear later in this ordering. These neighbors form a clique. On the other hand, since form a clique, every vertex among induces a clique together with all its adjacent vertices appearing later in the ordering. So, every vertex induces a clique with all its adjacent vertices appearing later in the ordering. So, (5) is a perfect elimination ordering according to Definition 2.4, and is a chordal graph. Hence C is a chordal code and we prove the theorem.
Note that it is not necessary for to have a row whose entries are all non-zero elements. In fact, if for all , there exists at least one row in such that and are non-zero elements, then any two vertices among are connected, implying that the first vertices form a clique. By the proof of Theorem 3.4, we obtain that is a chordal graph. So, as long as ensures that for all , there exists at least one row in such that and are non-zero elements, is a chordal graph and is a chordal code.
B. Toy example
Here we give a toy example of a chordal code C with length n = 7 and k = 4. The parity-check matrix H is as follows:
with and

Fig. 1: Primal graph of the parity-check matrix H of C
Figure 1 shows the primal graph of H. Note that vertex i corresponds to the column of H. Obviously, is a chordal graph because for every cycle of length greater than 3, there always exists at least one chord. For example, cycle 2 - 6 - 5 - 4 - 2 is a length-4 cycle and edge (2, 5) is the chord. The cycle 1 - 2 - 5 - 3 - 7 - 1 is a length-5 cycle and it has three chords, which are (1, 5), (2, 3) and (1, 3).
IV. CHORDAL ELIMINATION COMPLEXITY
In this section, the complexity of chordal elimination of a chordal code in constructed by Theorem 3.4 will be analyzed and an upper bound will be given. Moreover, the complexities of chordal elimination and Gaussian elimination on a chordal code in will be compared through simulations.
A. Complexity of the Chordal Elimination
Let be an matrix of rank with the largest clique having vertices. In this subsection, we use the number of field additions taken by the Gaussian elimination as the complexity. This is because in binary fields, it is not necessary to calculate the inverse of 1. Using Lemma 4.1 and Theorem 4.2, we will show that the complexity of the chordal elimination is upper bounded by .
Lemma 4.1: Let be a matrix with being chordal. is the PEO. For each , let be the matrix formed by the active rows and the unprocessed columns immediately before column is processed. Let
Then
In other words, Gaussian elimination according to the PEO creates no new adjacency outside the corresponding induced subgraph of the original primal graph.
Proof: We prove the statement by induction on t. For , no row operation has been performed, and all columns and rows are active. So,
and
Therefore
Hence, the claim holds for t = 1.
Now assume
holds before column is processed. If column has zero entries in all active rows, no row operation is performed. Therefore, by removing from the set of unprocessed columns, we have
On the other hand, if column has a non-zero entry in at least one active row, let be the pivot row having a non-zero entry in column . Define
where
is the set of unprocessed neighbors of in . So is exactly the set of vertex and all its unprocessed neighbors. Since is a PEO, the set induces a clique in by Definition 2.4. Now consider every other non-pivot active row having a non-zero entry in column , they will be replaced by when processing so that the non-zero entry turns to 0. Note that
by the induction hypothesis. For all which is still active when processing , any non-zero column in is a neighbor of and . So . So,
Therefore, when R is replaced by , the fill-in will only happen in the columns in , i.e.,
So the row operations when processing will not create new edges in . So, after column has been eliminated, its pivot row is removed from the active rows and is removed from the set of unprocessed columns, implying that is a subgraph of . So,
Hence, by induction, the lemma is proved.
Theorem 4.2: Let be a matrix in whose primal graph is chordal. Let be the number of vertices of the largest clique in . Then the complexity of the chordal elimination (Gaussian elimination following the PEO) is less than , with .
Proof: Let be an matrix whose primal graph is chordal. Let be the vertices of . Without loss of generality, we assume that is the perfect elimination ordering. The chordal elimination, processed by the decoder, consists of elimination steps, with of them being successful elimination steps. At each elimination step , column is called the pivot column. If the pivot column has no non-zero entry, then no pivot row is selected and the column is skipped. Otherwise, the decoder chooses a unique pivot row and adds the pivot row to every other row having a non-zero entry in . Therefore, the pivot column has exactly one non-zero entry in the pivot row and has zero entries in other rows. Such an elimination step is then called successful. Let be the pivot columns in successful elimination steps with . Note that field additions are performed in successful elimination steps.
Now we prove the theorem by induction. First, consider the pivot column in the first successful elimination step. Let be the selected pivot row. Since has a non-zero entry in column , every other unprocessed column whose entry in is non-zero is adjacent to in the primal graph of the current active matrix . By Lemma 4.1, . So, adding to another active row requires at most
field additions. Since there are at most non-pivot active rows, the first successful elimination step requires at most
field additions.
Next, assume that the first successful elimination steps require fewer than field additions for . Consider the -th pivot column , and let be its pivot row. Since all previously processed columns have zero entries in all the remaining active rows, has non-zero entries only in the set of currently unprocessed columns. By Lemma 4.1, . Note that forms a clique in . Then it follows that
Since the pivot row is added only to the remaining active non-pivot rows having a non-zero entry in column , there are at most such rows, requiring at most field additions for each row. Thus, the -th successful elimination step requires at most
field additions. Combining with the induction hypothesis, the first successful elimination steps require fewer than field additions. Therefore, by induction, all successful elimination steps require fewer than field additions. Hence, the theorem is proved.
TABLE I: Simulations for the Chordal Code With
| Operation | Gaussian | Chordal |
|---|---|---|
| Field additions (total complexity) | 36596 | 29462 |
| Average complexity per trial | 365.96 | 294.62 |
| Complexity reduction | 19.494% | |
TABLE II: Simulations for the Chordal Codes With
| Operation | Gaussian | Chordal |
|---|---|---|
| Field additions (total complexity) | 51,692 | 40,003 |
| Average complexity per trial | 516.92 | 400.03 |
| Complexity reduction | 22.613% | |
Note that under the design of Theorem 3.4, the largest clique is usually the clique created by the rows in , i.e., . On the other hand, the complexity of the Gaussian elimination is roughly upper bounded by . Hence, reduction of the complexity comes from replacing code length by the maximum clique size .
B. Chordal Elimination Performance
In this subsection, we compare the complexity of chordal elimination with the Gaussian elimination through simulations. In each simulation, we generate a random parity-check matrix in , with , , and . is the code length, is the dimension of the code, i.e., the code has codewords. The code rate of the chordal code is When passing an erasure channel with erasure probability 0.3, i.e., every symbol of the transmitted codeword has a probability to be erased. Among all 100 simulations, 96 of them decode successfully and 4 of them have a decoding failure.
Table I shows the complexities of Gaussian elimination and the chordal elimination in the case that . Note that in the simulations of the case that , the successful rate is . If a higher successful rate is required, we could lower the code rate to improve the successful rate. Table II shows another result about the simulations of a lower code rate. We take 100 simulations again and the only difference is that we lower the code rate from 0.5 to by changing from 30 to 20. decoding succeeds in all 100 simulations.
V. CONCLUSION
In this paper, we introduced chordal graphs and defined chordal codes. We showed that the chordality of a parity-check matrix's primal graph is preserved under column erasure, so that the decoding using chordal elimination can be processed adding less fill-in by following the perfect elimination ordering. We also presented an explicit construction of chordal codes and proved that the chordal elimination has complexity at most , where is the maximum clique size of the primal graph and is the rank of the parity-check matrix. Future work may investigate code constructions that achieve better trade-offs among code rate, erasure-correction capability, and decoding complexity.
ACKNOWLEDGMENTS
AI statement: The authors used ChatGPT for assistance with checking the correctness of proofs, and language polishing in the main text. The authors are responsible for the mathematical claims and the final manuscript.
REFERENCES
[1] T. Richardson and R. Urbanke, Modern Coding Theory. Cambridge University Press, 2008.
[2] E. Harb and H. S. Lam, “Refill: Reinforcement learning for fill-in minimization,” arXiv preprint arXiv:2501.16130, 2025.
[3] A. Soro, M. Cunche, J. Lacan, and V. Roca, “Erasure codes with a banded structure for hybrid iterative-ml decoding,” in GLOBECOM 2009-2009 IEEE Global Telecommunications Conference. IEEE, 2009, pp. 1–6.
[4] M. Cunche, V. Savin, and V. Roca, “Analysis of quasi-cyclic ldpc codes under ml decoding over the erasure channel,” in 2010 International Symposium On Information Theory & Its Applications. IEEE, 2010, pp. 861–866.
[5] Y. Urman and D. Burshtein, “Efficient maximum likelihood decoding of polar codes over the binary erasure channel,” in 2021 IEEE International Symposium on Information Theory (ISIT). IEEE, 2021, pp. 1600–1605.
[6] R. Diestel, "Extremal graph theory," in Graph theory. Springer, 2017.
[7] C. Berge and F. Harary, “Some classes of perfect graphs, graph theory and theoretical physics,” Academic Press, London, vol. 155, p. 165, 1967.
[8] D. Cifuentes and P. A. Parrilo, “Exploiting chordal structure in polynomial ideals: A grobner bases approach,” SIAM Journal on Discrete Mathematics, vol. 30, no. 3, pp. 1534–1570, 2016.
[9] J. BONDY and U. MURTY, “Graph theory, volume 244 of graduate texts in mathematics. isbn: 978-1849966900 springer,” New York, 2008.
[10] D. J. Rose, “Triangulated graphs and the elimination process,” Journal of Mathematical Analysis and Applications, vol. 32, no. 3, pp. 597–609, 1970.