Papers
Topics
Authors
Recent
Search
2000 character limit reached

Extended Han-Zhang Codes: MDS/NMDS Dichotomy

Updated 9 July 2026
  • Extended Han-Zhang codes are defined by a one-coordinate polynomial extension that omits the x^(k-1) term, resulting in a clear MDS/NMDS dichotomy based on the evaluation set.
  • They employ ℓ-error-correcting pairs to realize a polynomial-time decoding algorithm that corrects up to roughly half the minimum distance with O(n^3) complexity.
  • Deep hole constructions are used to generate larger non-GRS MDS codes and to analyze monomial equivalences with Roth-Lempel codes, revealing the codes’ rich geometric structure.

Searching arXiv for papers on extended Han-Zhang codes and related constructions. Extended Han-Zhang codes are a class of linear codes defined by a one-coordinate extension of a constrained polynomial-evaluation space. In the formulation studied in 2025, each code in the family is either a non-generalized Reed-Solomon maximum distance separable code or a near-MDS code, and the family is analyzed through \ell-error-correcting pairs, covering radii, and deep holes. The same line of work also shows how deep holes can be used to construct further non-GRS MDS codes and to clarify when the resulting extensions are monomially equivalent to Roth-Lempel codes (Li et al., 26 Aug 2025).

1. Definition and algebraic form

Let A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q be an evaluation-point sequence and let v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n. The extended Han-Zhang code is

Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},

where

Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.

Its length is n+1n+1, and its dimension is kk (Li et al., 26 Aug 2025).

The defining feature is the omission of the xk1x^{k-1} term from the message space together with the addition of the coefficient fkf_k as the final coordinate. This places the family close to evaluation-code constructions while preventing it from collapsing to a standard GRS representation. The associated structural question is not whether the code is evaluation-based, but whether the evaluation set A\mathcal{A} satisfies the combinatorial condition governing the MDS/NMDS transition.

A central organizing principle is whether A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q0 is A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q1-zero-sum free or contains a A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q2-zero-sum subset. In the literature on this family, that dichotomy completely determines whether the code lies on the MDS side or on the NMDS side of the construction.

2. MDS/NMDS dichotomy and non-GRS status

The basic classification is explicit. If A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q3 is A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q4-zero-sum free, then A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q5 is an A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q6 non-GRS MDS code. If A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q7 contains a A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q8-zero-sum subset, then it is an A={a1,,an}Fq\mathcal{A}=\{a_1,\ldots,a_n\}\subseteq \mathbb{F}_q9 NMDS code. The same source states that all extended Han-Zhang codes are not monomially equivalent to GRS codes (Li et al., 26 Aug 2025).

This dichotomy is unusually sharp. The family does not interpolate among many distance regimes: it lands exactly in one of two classes, MDS or NMDS. For code classification, this is significant because non-GRS MDS families are comparatively rare, while NMDS families are structurally close to the Singleton boundary and often admit explicit weight and dual-structure analysis.

A plausible implication is that the family is useful as a controlled testbed for studying the transition between strict Singleton optimality and Singleton defect one. That interpretation is consistent with the later use of covering-radius and deep-hole arguments, which rely on the extension preserving strong distance structure rather than merely improving minimum distance heuristically.

3. Error-correcting pairs and polynomial-time decoding

The 2025 decoding work studies extended Han-Zhang codes via v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n0-error-correcting pairs. For an v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n1 linear code v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n2, an v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n3-ECP is a pair of length-v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n4 codes v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n5 satisfying

  1. v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n6,
  2. v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n7,
  3. v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n8,
  4. v=(v1,,vn)(Fq)n\mathbf{v}=(v_1,\ldots,v_n)\in (\mathbb{F}_q^*)^n9, with Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},0 denoting the coordinate-wise Schur product. The decoding radius is taken as

Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},1

The existence and precise form of the relevant ECPs depend on both the MDS/NMDS status and the parity of Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},2 (Li et al., 26 Aug 2025).

When Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},3 is MDS and Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},4, the code has only Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},5-ECPs, not full Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},6-ECPs. In that case one such pair is

Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},7

If Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},8, then the code admits an Ck(A,v,)={(v1f(a1),,vnf(an),fk):f(x)Vk},\mathcal{C}_k(\mathcal{A}, \mathbf{v}, \infty) = \big\{ (v_1 f(a_1), \ldots, v_n f(a_n), f_k) : f(x)\in \mathcal{V}_k \big\},9-ECP of the form

Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.0

Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.1

When Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.2 is NMDS and Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.3, there exists an Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.4-ECP with

Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.5

If Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.6, the same Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.7-ECP form as in the MDS even case applies.

These ECPs lead to an explicit decoding algorithm, presented as Algorithm 1, that corrects up to Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.8 errors in polynomial time, with Vk={f(x)=i=0k2fixi+fkxk:fiFq}.\mathcal{V}_k = \left\{ f(x)=\sum_{i=0}^{k-2} f_i x^i + f_k x^k : f_i\in \mathbb{F}_q \right\}.9 about half of the minimum distance. The algorithm computes the syndrome, sets up the matrices prescribed by the relevant ECP, solves a linear system to obtain an error-locator vector, extracts the error support from its zeros, reconstructs the error values through syndrome equations, and then corrects the received word. Its complexity is n+1n+10 (Li et al., 26 Aug 2025).

The decoding theory is important for two reasons. First, it gives the first explicit decoding algorithms for extended Han-Zhang codes. Second, it shows that the family is not only structurally interesting as a source of non-GRS MDS and NMDS codes, but also algorithmically accessible through standard algebraic-decoding primitives adapted to its non-GRS geometry.

4. Covering radius and deep holes

The covering radius of the family is completely determined: n+1n+11 This holds for all instances, MDS or NMDS (Li et al., 26 Aug 2025).

Deep holes are characterized through an extension criterion. A vector n+1n+12 is a deep hole if and only if the code generated by adding n+1n+13 as a new row to the generator matrix of n+1n+14 is an n+1n+15 MDS code (Li et al., 26 Aug 2025). This criterion converts a nearest-codeword extremal problem into an MDS-extension problem.

Two explicit deep-hole classes are given. For

n+1n+16

the vector

n+1n+17

is a deep hole if and only if either n+1n+18, or n+1n+19 and kk0 is an kk1-set. For

kk2

the criterion is expressed through the absence of certain parameter values in a set constructed from the elementary symmetric polynomials of subsets of kk3 (Li et al., 26 Aug 2025).

These results connect extended Han-Zhang codes directly to maximum-likelihood decoding. Deep holes are the worst-case points for MLD, so their explicit determination gives structural information about the extremal geometry of the code, not merely its unique-decoding region.

5. Construction of larger non-GRS MDS codes and Roth-Lempel relations

The deep-hole characterization yields a constructive mechanism. By augmenting the generator matrix with a deep hole, one obtains a new code with parameters kk4, and this new code is non-GRS MDS (Li et al., 26 Aug 2025).

The resulting codes are not uniform with respect to equivalence. In some cases, notably when the deep hole is associated to kk5 and the parameter fits, the new codes are monomially equivalent to Roth-Lempel codes

kk6

In other explicit cases they are not monomially equivalent to Roth-Lempel codes, so they furnish genuinely new non-GRS MDS examples (Li et al., 26 Aug 2025).

This aspect places extended Han-Zhang codes at a junction between extension theory and the classification of non-GRS MDS families. The deep-hole method does not simply repackage a known RL construction; depending on the parameter regime, it either recovers an RL-equivalent code or escapes the RL equivalence class. That distinction matters in classification problems, where monomial equivalence is the operative notion of sameness.

Several contemporaneous papers place extended Han-Zhang codes within a broader landscape of generalized Roth-Lempel and twisted-evaluation constructions. In the study of kk7-TGRS and kk8-ETGRS codes, every such code is either MDS or NMDS, and all kk9 MDS ETGRS codes are non-GRS; the same work also gives an explicit xk1x^{k-1}0 decoding algorithm for ETGRS codes and determines covering radii and a class of deep holes for the duals of TGRS codes, including Han-Zhang codes (Li et al., 4 Aug 2025). This suggests a close structural affinity between extended Han-Zhang codes and other twisted evaluation families that are governed by the same MDS/NMDS dichotomy.

Generalized Roth-Lempel work enlarges the corresponding hook-matrix viewpoint. One paper replaces the fixed matrix

xk1x^{k-1}1

with any invertible xk1x^{k-1}2 matrix xk1x^{k-1}3, obtaining two classes of NMDS codes from generalized RL generator matrices and completely determining their weight distributions. In that framework, setting xk1x^{k-1}4 recovers Han and Fan or Zhang and Zheng codes (Liang et al., 24 Jun 2025). A subsequent paper defines extended generalized Roth-Lempel codes and shows that, for xk1x^{k-1}5, xk1x^{k-1}6, xk1x^{k-1}7, xk1x^{k-1}8, xk1x^{k-1}9, and

fkf_k0

the resulting code is monomially equivalent to Han-Zhang’s 2023 construction; it also establishes MDS/AMDS criteria and completely determines the weight distribution of a class of NMDS EGRL codes (Liang et al., 17 Aug 2025).

A different but related usage appears in the literature on generalized and extended product codes. There, Extended Han-Zhang codes are described as optimal codes that maximize erasure correction with two or a few extra global parities added to product codes, and can be viewed as optimal EPC codes in the fkf_k1 format, matching the minimum-distance upper bound and using field sizes at least fkf_k2 (Blaum et al., 2016). This does not duplicate the polynomial-evaluation definition above, but it shows that the term has also been used in a parity-augmented product-code setting.

Taken together, these results position extended Han-Zhang codes within a dense cluster of non-GRS MDS, NMDS, RL-type, and extended-evaluation constructions. Their distinctive features are the rigid MDS/NMDS bifurcation, explicit ECP-based decoding, complete covering-radius determination, and the use of deep holes as a mechanism for producing larger non-GRS MDS codes.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Extended Han-Zhang Codes.