arXiv:2610.31023cs.ITOct 2026Cited by 1 paper on PaperVantage
Manuscript Offprint
arXiv:2610.31023
Extension of MDS Codes over Finite Fields
Puyin Wang, Jinquan Luo
Puyin Wang and Jinquan Luo ∗†
October 23, 2026
Abstract: In this paper, we investigate extending of [n,k,n−k+1] non-Reed–Solomon(non-RS) MDS codes to [n+1,k,n−k+2] non-RS MDS codes. We develop a practical iterative algorithm for constructing longer MDS codes while preserving their non-RS structure. The proposed algorithm is inspired by the meet-in-the-middle algorithm in cryptanalysis. On average, it requires at most O(kqk) multiplications, compared with O((k−1n)qk−1k3) multiplications for generic exhaustive search. Applying the proposed algorithm to several known families of MDS codes, including elliptic-curve, twisted Reed–Solomon, column-twisted Reed–Solomon, cyclic, and missing-monomial MDS codes over fields of order at most 32, we obtain new MDS codes of increased lengths that remain inequivalent to Reed–Solomon codes. In particular, we construct [9,4,6] codes over F9 and F13, each with Schur-square dimension 9. Over F17, we obtain two inequivalent [10,4,7] codes with Schur-square dimensions 9 and 10, respectively. The latter is the dual of an extended [10,6,5] code, demonstrating that the method also applies when k>n/2. For these dimension-four codes, the Schur-square dimensions 9 and 10 exceed both that of RS code (Schur-square dimension 7) and those of specific elliptic-curve and column-twisted Reed–Solomon families (Schur-square dimension 8). Some of these parameters of non-RS MDS codes have not been reported before.
In coding theory, linear codes are very important to ensure reliable communication over noisy channels. Let Fq denote a finite field of size q. A linear code C over Fq is simply a k-dimensional subspace of Fqn. We often use the parameters [n,k,d] to describe it, where d is the minimum distance (minimum weight) defined by
d=min{wtH(c):c∈C,c=0}.
Here, wtH(c) is the Hamming weight, which counts the number of non-zero coordinates of c.
It is well known that the parameters n, k, d must satisfy the Singleton bound:
d≤n−k+1.
If a linear code reaches this equality, we call it a Maximum Distance Separable (MDS) code. Because of their optimal properties, MDS codes are widely used in practical applications, such as distributed storage systems and network coding [3].
Due to their optimality with respect to the Singleton bound, MDS codes have been extensively studied. A classical family of MDS codes is Reed–Solomon (RS) codes, which are constructed by evaluating polynomials over finite fields [12]. However, there are also many other methods to construct MDS codes of non-RS type. Here, non-RS MDS refers to those MDS codes that are not equivalent to any RS code. These constructions can be roughly classified into the following categories:
Algebraic constructions: These include methods based on polynomial interpolation and algebraic geometry. In particular, algebraic geometry (AG) codes from curves provide a rich source of non-RS MDS codes [2, 6, 19]. Other algebraic approaches include cyclic constructions [8] and some explicit families [7, 18, 22].
*The authors are with School of Mathematics and Statistics & Hubei Key Laboratory of Mathematical Sciences, Central China Normal University, Wuhan China 430079. The authors are supported by National Natural Science Foundation of China (No.12441102) and the Project of International Cooperation and Exchanges NSFC (No.12411540221)
• Twisted Reed–Solomon codes: These codes generalize RS codes by introducing twists in the evaluation structure. This method leads to many new non-RS MDS codes [1, 4, 9, 13, 14, 21].
Extension and structural results: Another important direction focuses on the extension of MDS codes and the conditions to preserve the MDS property. Classical and recent results in this area include [17].
Constructing new MDS codes from known ones is an important topic. A direct way is to extend the code length while keeping the MDS property. However, whether a code can be extended is strictly limited by the field size and its algebraic structure. In fact, a general and easily verifiable criterion for extending MDS codes is still lacking, particularly for non-RS constructions.
To fill this gap, we provide a practical condition that allows us to systematically find longer non-RS MDS codes. Furthermore, we propose an efficient algorithm to significantly reduce the computational complexity required for such extensions. The main idea of our approach is to describe the admissible vectors as those avoiding a finite number of hyperplanes in Fqk.
The rest of this paper is organized as follows. Section 2 introduces some basic knowledge that will be used later. Section 3 presents our main results along with some examples. Finally, Section 4 concludes the paper and discusses future work.
2 Preliminary
In this section, we review some basic concepts and notations in coding theory. For more details, one can refer to [10].
Definition 1. Let C be a k-dimensional linear code over Fq of length n. A generator matrix of C is a k×n matrix G over Fq whose rows form a basis of C. Equivalently, C can be expressed as
C={uG∣u∈Fqk}.
Note that permutations of coordinates and multiplication on coordinate by nonzero scalars do not change the parameters of a code. Codes related by such operations are regarded as equivalent.
Definition 2. Two linear codes C and C′ of length n over Fq are said to be equivalent if one can be obtained from the other by a combination of a permutation of coordinates and multiplication of coordinates by nonzero elements in Fq.
Let α1,…,αn be distinct elements in Fq with n≤q. The [n,k,n−k+1] Reed-Solomon (RS) code over Fq is defined by
Moreover, RS codes are MDS codes. An MDS code inequivalent to any RS code is called non-RS MDS code.
Definition 3. Given two vectors x1=(x1,1,…,x1,k) and x2=(x2,1,…,x2,k) in Fqk, we say they are orthogonal if
⟨x1,x2⟩=i=1∑kx1,ix2,i=0.
In this paper, extension of a code C is the code obtained by appending one additional coordinate to each codeword of C, or equivalently, by adding one extra column to a generator matrix of C. We also refer to the resulting code as an extended code of C. Consequently, if the initial code C is non-RS, the extended code of C is also non-RS.
In order to determine whether a code is equivalent to an RS code, we need the following definition.
Definition 4. Let x=(x1,x2,…,xn) and y=(y1,y2,…,yn) be two vectors in Fqn. The Schur product (or componentwise product) of x and y is defined by
x∗y:=(x1y1,…,xnyn).
For two linear codes C1,C2⊆Fqn, their Schur product is defined as
C1∗C2:=spanFq(x∗y∣x∈C1,y∈C2),
where spanFq(S) denotes the Fq-linear span of a set S.
In particular, if C1=C2=C, we define C2:=C∗C as the Schur square code of C. Clearly, C12 and C22 are equivalent when C1 and C2 are equivalent.
While the Schur square product code provides a convenient sufficient condition for non-RS equivalence, it may occasionally yield inconclusive results when the dimension equals 2k−1. To address such cases and ensure the structural integrity of our extended codes, we follow the method in [11] and introduce an alternative, more refined criterion based on the Cauchy structure of the generator matrix.
Lemma 1 ([11]). Let G=[Ik∣A] be the standard generator matrix of an [n,k] MDS code C. Then C is equivalent to an RS code if and only if the matrix A′=[ai,j−1] (where ai,j−1 denotes the multiplicative inverse of ai,j in Fq) satisfies the following conditions:
• All entries of A are non-zero.
• All 2×2 minors of A′ are non-zero.
• All 3×3 minors of A′ are zero.
3 Meet-in-the-Middle Algorithm
The name “meet-in-the-middle” is motivated by the similarity between our algorithm and the classical meet-in-the-middle technique in cryptography. Instead of performing a direct exhaustive search over all possible extensions, we split the verification process into two interacting parts: the geometric constraints arising from minimum weight codewords and the candidate extension vectors. The algorithm then detects valid extensions through inner product tests between these two sets, significantly reducing the search complexity.
Let G0=(g1,…,gn) be a generator matrix of an [n,k,n−k+1] MDS code C0, where gi denotes its i-th column. Our goal is to construct an extended [n+1,k,n−k+2] MDS code C1 by appending a single column β to G0. Specifically, we seek a vector β∈Fqk such that the augmented matrix
G1=(G0∣β)
generates the desired MDS code C1.
For any index set 1≤i1<⋯<is≤n, let Gi1,…,is denote the submatrix of G0 consisting of these selected columns:
Gi1,…,is=(gi1,…,gis).
Lemma 2. For an MDS [n,k,d] code C0 with generator matrix G0, the code C1 generated by G1 is MDS if and only if for any 1≤i1<⋯<ik−1≤n, the matrix
(Gi1,…,ik−1∣β)
is invertible. Moreover, if C0 is not equivalent to any Reed–Solomon (RS) code, then neither is C1.
Proof. Since C0 is an MDS code, any k columns of G0 are linearly independent. Therefore, C1 is an MDS code if and only if any k−1 columns of G0 together with the new column β remain linearly independent. This is equivalent to saying that the matrix (Gi1,…,ik−1∣β) is invertible for all 1≤i1≤⋯≤ik≤n.
Assume C1 is equivalent to some RS code. Then C0, as a punctured code of C1, is also equivalent to an RS code, which yields a contradiction.
Now, we formalize the procedure for finding such an extension vector β to construct the extended code C1.
Algorithm 1 (Meet-in-the-Middle Algorithm).
Step 1: Find all standard nonzero vectors v∈Fqk (here “standard” means the first nonzero entry is 1) such that v is orthogonal to k−1 columns of G0.
Step 2: Put all such vectors v from Step 1 into a set M. Find a column vector β such that β is not orthogonal to any vector in M.
Step 3: Construct the extended code C1 generated by
G1=(G0∣β).
In Step 2, β is not in any hyperplane spanned by any k−1 columns of G0 since β is not orthogonal to the normal vectors of these hyperplanes. Therefore, by Lemma 2, G1=(G0∣β) indeed generates an [n+1,k,n−k+2] MDS code.
To demonstrate the computational advantage of our proposed algorithm, we estimate and compare the complexity in terms of the number of multiplications in Fq.
Algorithm 1: We calculate the computational cost according to the steps.
Cost of Step 1: Finding the normal vectors v requires solving (k−1n) linear systems of equations. Using Gaussian elimination on a (k−1)×k matrix takes approximately k3/3 multiplications. Thus, Step 1 has about (k−1n)3k3 multiplications.
Cost of Step 2: For a given candidate β∈Fqk, we test the inner products ⟨v,β⟩ sequentially for v∈M. In the worst case, this requires k∣M∣ multiplications. However, the test stops immediately once ⟨v,β⟩=0 for some v∈M. For a fixed v∈M, the probability of ⟨v,β⟩=0 is 1/q. Hence, the expected number of tested vectors in M for a single β is
i=1∑∣M∣(1−q1)i−1=q(1−(1−q1)∣M∣)≤q.
By MacWilliams identities [10], an [n,k,n−k+1] MDS code has An−k+1=(q−1)(n−k+1n) minimum weight codewords, which implies
∣M∣=(k−1n).
Given qk−1 possible choices of β, the total expected number of multiplications for Step 2 is bounded by
k⋅qk−1⋅q1−(1−q1)(k−1n)=O(kqk).
• Cost of Step 3: No multiplications.
Therefore, the total expected cost of our algorithm is approx:
(k−1n)3k3+O(kqk).(1)
Generic search: We also consider standard vectors. For each candidate β∈Fqk and each choice of indices 1≤i1<⋯<ik−1≤n, one needs to verify that
β∈/spanFq(gi1,…,gik−1).
This can be checked by computing the determinant(or rank) det(gi1,…,gik−1,β). Using Gaussian elimination, this requires approximately k3/3 multiplications. Hence, the total computational cost of the naive method is at most
(k−1n)qk−1(3k3+O(k2))=O((k−1n)qk−1k3).(2)
Comparison: When n<q, (k−1n)3k3 from Step 1 is negligible. Therefore, the expected cost of our algorithm is approximately O(kqk). In contrast, the direct exhaustive search requires O((k−1n)qk−1k3). In contrast to the exhaustive search, our approach offers a significant computational speedup.
To show our algorithm, we provide some example over finite fields. Following [19], we begin with an [n,k] MDS code C0 derived from an elliptic curve with the maximum number of rational points. By applying the extension procedure (Steps 1, 2, and 3), we can identify suitable extension vectors βi. The resulting extended matrix generates an MDS code that is strictly not equivalent to any RS code. We provide an example over F8 below.
Example 1 ([19], Theorem 1). Consider F8=F2(w), where w satisfies w3+w+1=0. Let y2+wxy+wy=x3+w+1 be an elliptic curve over F8.
Let D=(0:1:0)+(w4:1:1)+(0:w3:1)+(w3:w4:1)+(w3:w:1)+(0:1:1)+(w4:w2:1) and G=3P0(w:w4:1) be two divisors over F8. The algebraic geometry code C=CL(D,G) is then a [7,3,5] MDS code over F8 with generator matrix
G0=10w21w4w1w601w3w611w31101w6w3.
Transforming G0 into its standard form, we get
Gstd=100010001w6w4w1w4w4w61w6w2w5w.
The corresponding matrix A′ from the standard form is given by
A′=ww3w6w7w3w3ww7ww5w2w6.
It is easy to verify that the 3×3 minor formed by columns 1, 2, and 4 is non-zero:
detww3w61w3w3w5w2w6=w5=0.
So C is not equivalent to any RS code by Lemma 1.
Applying our extension algorithm, we successively append
β1=(1,0,w6)T,β2=(1,w4,w2)T,β3=(1,w3,w)T.
The final generator matrix G3=(G0∣β1,β2,β3) generates a [10,3,8] MDS code over F8 and dim(C2)=6. This attains the maximal possible length for MDS codes over F8. In particular, the resulting code is non-RS.
The code C0 comes from an elliptic curve and attains the upper bound of length proposed in [6], our extension algorithm further enlarges the code and finally reaches the MDS bound q+2 over F8. Although this [10,3,8] code is not new, this example still shows that our algorithm can find MDS codes reaching the theoretical maximum length.
Moreover, we give an example over F9:
Example 2. Consider F9=F3(w), where w satisfies w2+2w+2=0. Let y2=x3+2x be an elliptic curve over F9.
Let D=(w2:w:1)+(w6:w3:1)+(0:0:1)+(w6:w7:1)+(1:0:1)+(w2:w5:1)+(2:0:1) and G=3(0:1:0)+(w5:w7:1) be two divisors over F9. The algebraic geometry code C=CL(D,G) is then a [7,4,4] MDS code over F9 with a generator matrix
The standard form of G0 is [I4∣A], where the submatrix A is given by
A=w7w7w3w6w1w5w7w6w6w0w7w4.
Taking the multiplicative inverse of each entry, we have
A′=w1w1w5w2w7w3w1w2w2w0w1w4.
We have
detw1w1w5w7w3w1w2w0w1=w6=0.
Thus, C is not equivalent to any RS code.
Applying our extension algorithm, we successively append the following column vectors:
β1=(0,1,w2,w6)T,β2=(1,0,w2,w5)T.
The final generator matrix G2=(G0∣β1,β2) yields a [9,4,6] MDS code over F9 and dim(C2)=9, which remains non-RS.
It is worth noting that any [10,4,7] MDS code over F9 corresponds to a 10-arc in PG(3,9). Classical results on arcs in finite projective spaces (see [5]) indicate that large complete arcs in PG(3,9) are highly constrained and closely related to normal rational curves. Since RS codes are stable under puncturing, any extension of our non-RS [7,4,4] code to length 10 would require a non-RS 10-arc in PG(3,9), which is not supported by known classifications. Hence, length n=9 appears to be the maximal achievable value for non-RS MDS codes of dimension 4 over F9, and our algorithm terminates exactly at this boundary.
In short, the examples over F8 and F9 show that the algorithm can go beyond the usual maximal lengths arising from elliptic-curve constructions and still reach the MDS bound. In particular, the non-RS structure is strictly preserved.
To test our method in different finite fields, we start with non-RS MDS codes over F11 from Example 3.7 in [4]. To make our discussion self-contained, we briefly introduce the TGRS codes with l twists proposed by Gu and Zhang. Let n, k, and l be the code length, dimension, and the number of twists, respectively. A twisted polynomial space S is generated by perturbing l basis elements of the standard space. Specifically, for a twist parameter vector η=(η1,…,ηl)∈Fql and some integers hj≥k, the basis of S is obtained by replacing xtj with xtj+ηjxhj for j=1,…,l.
By evaluating the functions of S at distinct points α=(α1,…,αn)∈Fqn, we obtain the twisted GRS (TGRS) code C=evα,1(S). For any k-subset I⊆{1,2,…,n}, let M(η,α,I,l) denote a specific determinant associated with the evaluation points and twist parameters over I. The fundamental result by Gu and Zhang states that C is MDS if and only if M(η,α,I,l)=0 for all possible subsets I, which is reviewed in the following result.
Lemma 3 ([4], Theorem 3.3). Suppose that 3≤k<n and α1,α2,…,αn are distinct elements of Fq. Let Ω be the set of all η∈Fql such that for each k-subset I, we have M(η,α,I,l)=0. Then C=evα,1(S) is MDS if and only if η=(η1,…,ηl)∈Ω.
Example 3 ([4], Example 3.7). Let α=(1,2,3,5,6,8,9,10) and η=(η1,η2)=(2,9). Then S={1,x+2x3,x2+9x4} and C is an [8,3,6] MDS code over F11 generated by
G0=13101751211271971911451810.
We first show that C is not equivalent to any RS code. A direct computation shows that the Schur square C2 has dim(C2)=6. Hence, C cannot be equivalent to any RS code.
By applying our extension algorithm, we successively append the vector
β1=(1,0,2)T.
G1=(G0∣β1) generates a [9,3,7] non-RS MDS code and dim(C2)=6.
Example 4 ([4], Example 3.7). Let α=(1,2,3,5,6,8,9,10) and η=(η1,η2)=(4,4). Then the twisted polynomial space is S={1,x,x2+4x4,x3+4x5}. This yields an [8,4,5] MDS code C over F11 generated by
G0=115512241339156816631832192711056.
For this code, the Schur product criterion is inconclusive since dim(C2)=7=2k−1. Therefore, we apply Lemma 1. The standard form of G0 is [I4∣A], where A is given by
A=210832939241071632.
Consequently, the corresponding inverse matrix A′ is
A′=610746545631081246.
We have rank(A′)=4. Since the rank is strictly greater than 2, it guarantees that not all 3×3 minors of A′ are zero. Thus, by Lemma 1, C is not equivalent to any RS code.
By applying our extension algorithm, we successively append the vector
β1=(1,0,8,0)T.
G1=(G0∣β1) generates a [9,4,6] non-RS MDS code and dim(C2)=8.
In these two examples, we apply our method to the TGRS codes introduced in [4] and extend them to longer non-RS MDS codes.
We can also start with a column-twisted MDS code over F13 based on [9]. To make our discussion self-contained, we briefly introduce column twisted Reed-Solomon (CTRS) codes. Choose n−1 distinct evaluation points a1,a2,…,an−1∈Fq, and let b,c∈Fq with a non-zero parameter λ∈Fq∗.
For any element x∈Fq, let v(x)=(1,x,x2,…,xk−1)T. The CTRS code C1(b,c) is defined by the following k×n generator matrix
Lemma 4 ([9], Lemma 1). The code C1(b,c) generated by G is MDS if and only if for any 1≤i1<i2<⋯<ik−1≤n−1,
j=1∏k−1(b−aij)−λj=1∏k−1(c−aij)=0.
Example 5 ([9], Theorem 2). Let γ=2 in F19. Let H=⟨γ2⟩, k=5, b=0, c=1, and (λ1,λ2)=(2,8). Taking the elements μi of H∖{1} in increasing order and setting ai=(b−μic)/(1−μi) gives
α=(14,6,5,17,13,3,15,7).
With v(x)=(1,x,x2,x3,x4)T, the first eight columns of G0 are v(ai), and its last two columns are v(b)−λjv(c), j=1,2. Explicitly,
C0 is [10,5,6] MDS and dim(C02)=10, so C0 is non-RS.
Our extension search finds the unique admissible projective column
β1=(0,0,0,0,1)T.
Thus G1=(G0∣β1) generates a [11,5,7] MDS code C1 over F19 with dim(C12)=10.
Example 6 ([9], Lemma 1(1)). Let w=2 in F13. Let {a1,a2,…,a6}={0,1,2,3,4,5}, b=6, c=12, and λ=1. Then C is a [7, 4, 4] MDS code over F13 generated by
G0=100011111248139114312151280799.
We first show that C is not equivalent to any RS code. A direct computation gives dim(C2)=7=2k−1, so the Schur-square criterion is inconclusive. We therefore apply Lemma 1. Reducing G0 to systematic form gives [I4∣A], where
A=124749261012338.
Then
A′=12102103711412995.
The determinant of the submatrix formed by the first three rows of A′ is 10=0 in F13. Hence rank(A′)=3>2, and Lemma 1 shows that C is not equivalent to any RS code. Hence, C cannot be equivalent to any RS code.
By applying our extension algorithm, we successively append projective columns. We append the vectors
β1=(1,11,2,0)T,β2=(1,11,7,1)T.
Then G2=(G0∣β1,β2) generates a [9,4,6] non-RS MDS code over F13 with dim(C2)=9. Moreover, dim(C22)>2k. Since the Schur square of a one-column CTRS code C1(b,c) as defined in [9] has dimension 2k, C2 is not equivalent to any CTRS code. Its length 9 also exceeds (13+3)/2=8, the largest length attained by the subgroup-based construction in [9] over F13.
Next, we apply our extension algorithm to twisted Reed–Solomon codes. We first recall the one-twist construction of [1]. Let 1≤k<n≤q, choose distinct evaluation points α=(α1,…,αn)∈Fqn, and take
1≤t≤n−k,0≤h≤k−1,η∈Fq∗.
Here t is the twist, h is the hook, and η is the twist coefficient. Define
Following Definition 3, a code of this form is called a (*)-twisted Reed–Solomon code if there is a proper subgroup H of the multiplicative group Fq∗ such that
αi∈H∪{0}(1≤i≤n),(−1)kη−1∈/H.
Lemma 5 ([1], Corollary 27). Every (*)-twisted code Cα,1,0,ηn,k is an [n,k,n−k+1] MDS code. If 3≤k<n/2, it is not equivalent to any RS code.
For all the (∗)-twisted examples below, q is odd. Let γ be a primitive element of Fq, and choose
H=⟨γ2⟩={γ2j:0≤j<(q−1)/2}.
This is the subgroup of all nonzero squares in Fq and has order (q−1)/2. Taking
T=H∪{0},η=(−1)kγ−1
gives n=∣T∣=(q+1)/2 and (−1)kη−1=γ∈/H, so Lemma 5 applies. The vector α specifies the order in which the elements of T are evaluated; this order is also the column order of the generator matrix.
Moreover, when 3≤k≤(q−1)/2−2, the length (q+1)/2 is the largest possible among one-twist MDS codes with t=1, h=0, and evaluation points in Fq.
Example 7 ([1], Theorems 13). Let γ=3 in F17, and set H=⟨γ2⟩, η=γ−1=6, α=(0,1,9,13,15,16,8,4,2). For k=6, evaluating P=spanF17{1+6x6,x,x2,x3,x4,x5} at α gives a(∗)-twisted [9, 6, 4] MDS code C0 with generator matrix
Here dim(C02)=9. This does not means C0 is not equivalent to some RS code. Instead, consider D0=C0⊥. It is an [9,3,7] MDS code, with the following generator matrix:
We have dim(D02)=6>5=2dim(D0)−1. Thus D0 is not equivalent to a RS code. Since the dual of a RS code is again a RS code up to equivalence, C0 is also non-RS.
Applying our extension algorithm to C0, we append
β1=(1,3,16,1,16,13)T.
Then G1=(G0∣β1) generates a [10,6,5] MDS code C1. And we have dim(C12)=10. Similarly, let D1=C1⊥. Then D1 is a [10,4,7] MDS code. Set h=(15,2,9,5,4,7,0,0,0). A generator matrix of D1 is
H1=[H0h03×11].
We have dim(D12)=10>7=2dim(D1)−1. Consequently, D1, and hence C1, is non-RS. Moreover, dim(D12)>2dim(D1), whereas the CTRS codes constructed in [9] have Schur-square dimension 2k. Thus, D1 is not equivalent to any code in those CTRS families. Its length matches the largest length attained by the construction of [9] over F17.
Example 8 ([1], Corollary 27). Let γ=3, η=6 and T=(0,1,9,13,15,16,8,4,2) in F17. Evaluating spanF17{1+ηx4,x,x2,x3} on T gives the following code. Its length is the largest possible within the affine one-twist family with t=1,h=0, by Theorem 13 of [1]. C0 is a [9, 4, 6] code over F17 with generate matrix
The Schur square satisfies dim(C02)=8>7, so C0 is non-RS. Applying our extension algorithm, we successively append
β1=(0,1,0,6)T
The matrix G1=(G0∣β1) generates a [10,4,7] MDS code over F17, with dim(C12)=9. Similarly as pervious example, this code is not equivalent to any code in those CTRS families. Its length also matches the largest length attained by the construction of [9] over F17.
We next take k=3 in the same multiplicative-subgroup construction. The common choice of the twist coefficient now becomes η=−γ−1, and the initial code is
C0=Cα,1,0,ηn,3,P1,0,ηn,3=spanFq{1+ηx3,x,x2}.
In each of the following examples, the evaluation set remains T=H∪{0}, with its elements ordered as specified by α. For these dimension-three codes, Schur-square dimension is 6 which means they are not equivalent to any RS codes.
Example 9 ([1], Corollary 27). Let γ=2 in F13, and set η=6, α=(0,1,3,4,9,10,12). The resulting [7, 3, 5] MDS code C0 over F13 is generated by
G0=10071173984379381098121.
A direct computation gives dim(C02)=6, so C0 is non-RS.
Applying our extension algorithm, we successively append the following column vectors:
β1=(1,1,0)T,β2=(1,5,3)T,β3=(1,7,3)T.
Thus G3=(G0∣β1,β2,β3) generates a [10,3,8] MDS code C3 over F13. Moreover, dim(C32)=6, so the extended code is again non-RS.
Example 10 ([1], Corollary 27). Let γ=2, and set η=9, α=(0,1,4,16,7,9,17,11,6,5) in F19. The resulting [10, 3, 8] MDS code C0 over F19 is generated by
Thus G4=(G0∣β1,β2,β3,β4) generates a [14,3,12] MDS code C4 over F19. Moreover, dim(C42)=6, so the extended code is again non-RS.
Example 11 ([1], Corollary 27). Let γ=5 in F23. Set η=9, α=(0,1,2,4,8,16,9,18,13,3,6,12). The resulting [12, 3, 10] MDS code C0 over F23 is generated by
A direct computation gives dim(C02)=6, so C0 is non-RS.
Applying our extension algorithm, we successively append the following column vectors:
β1=(1,11,2)T,β2=(1,17,3)T.
Thus G2=(G0∣β1,β2) generates a [14,3,12] MDS code C2 over F23. Moreover, dim(C22)=6, so the extended code is again non-RS.
Example 12 ([1], Corollary 27). Let F27=F3(a), where a3+2a+1=0 and a is primitive. Taking γ=a, set η=a12, α=(0,1,a2,a4,…,a24). The resulting [14, 3, 12] MDS code C0 over F27 is generated by
A direct computation gives dim(C02)=6, so C0 is non-RS.
Applying our extension algorithm, we successively append the following column vectors:
β1=(1,0,a18)T,β2=(1,a9,a18)T.
Thus G2=(G0∣β1,β2) generates a [16,3,14] MDS code C2 over F27. Moreover, dim(C22)=6, so the extended code is again non-RS.
Example 13 ([1], Corollary 27). Let γ=2 in F29. Set η=14, α=(0,1,4,16,6,24,9,7,28,25,13,23,5,20,22). The resulting [15, 3, 13] MDS code C0 over F29 is generated by
A direct computation gives dim(C02)=6, so C0 is non-RS.
Applying our extension algorithm, we successively append
β1=(1,8,24)T.
Thus G1=(G0∣β1) generates a [16,3,14] MDS code C1 over F29. Moreover, dim(C12)=6, so the extended code is again non-RS.
We now turn to (+)-twisted codes with k=3, t=1, and h=2. Their polynomial space is
P1,2,ηn,3=spanFq{1,x,x2+ηx3}.
Choose the evaluation points from an additive subgroup V⊊Fq and require η−1∈/V. The resulting code is MDS by Theorem 15 and is non-RS when n>6 by Corollary 28. Moreover, Remark 16 permits adjoining f(∞), defined as the coefficient of x3 in f, while preserving the MDS property. In the displayed basis, this appends the column (0,0,η)T.
Example 14 ([1], Corollary 28). Let F16=F2(a), where a4+a+1=0, and set
V=spanF2{1,a,a2},η=a12.
Since η−1=a3∈/V, evaluating P1,2,η8,3 at
α=(0,1,a,a2,a4,a8,a5,a10)
gives an [8,3,6] MDS code C0 over F16 generated by
A direct computation gives dim(C02)=6, so C0 is non-RS.
Applying our extension algorithm, we successively append the following column vectors:
β1=(1,0,a7)T,β2=(1,a2,a3)T.
Thus G2=(G0∣β1,β2) generates a [10,3,8] MDS code C2 over F16. Moreover, dim(C22)=6, so the extended code is again non-RS.
Example 15 ([1], Corollary 28). Let F32=F2(a), where a5+a2+1=0 and a is primitive. Set V=spanF2{1,a,a2,a3}, η=a27. Since η−1=a4∈/V, evaluating P1,2,η16,3 at all elements of V and adjoining the evaluation at infinity gives a [17, 3, 15] MDS code C0 over F32 generated by
A direct computation gives dim(C02)=6, so C0 is non-RS.
Applying our extension algorithm, we successively append the following column vectors:
β1=(1,a4,0)T,β2=(0,1,a4)T.
Thus G2=(G0∣β1,β2) generates a [19,3,17] MDS code C2 over F32. Moreover, dim(C22)=6, so the extended code is again non-RS.
In [7], non-RS MDS codes are constructed by selecting polynomial spaces with omitted monomials. For I={0,1,…,k−2,k}, define
VI=spanFq{xi:i∈I},C(T,I)=evα(VI),
where T={α1,…,αn}⊆Fq. Thus xk−1 is replaced by xk, giving the generator matrix
GI=1⋮α1k−2α1k⋯⋱⋯⋯1⋮αnk−2αnk.
Lemma 6 ([7], Proposition V.1). Suppose 3≤k≤n/2. If
j=1∑kαij=0,forevery1≤i1<⋯<ik≤n,
then C(T,I) is an [n,k,n−k+1] non-RS MDS code. In particular, over an odd prime field Fp, the choice T={0,1,…,n−1} satisfies this condition whenever
2k≤n<kp+2k+1.
Taking p=13, k=3, and T={0,1,2,3,4,5} gives the [6,3,4]13 code below.
Example 16 ([7], Corollary V.2). Let T={0,1,2,3,4,5}⊆F13, and take the evaluation-polynomial space spanF13{1,x,x3}. Then C0 is a [6,3,4] MDS code over F13 generated by
G0=1001111281311412158.
A direct computation gives dim(C02)=6. Hence, C0 is not equivalent to any RS code.
Therefore, G4=(G0∣β1,β2,β3,β4) generates a [10,3,8] non-RS MDS code C4 over F13, and dim(C42)=6.
Besides, cyclic MDS codes are constructed in [20]. Let ζn be a primitive nth root of unity, put K=Q(ζn), and choose J={j1<⋯<jk}⊆{0,…,n−1}. Set
GJ=[ζnji(s−1)]1≤i≤k,1≤s≤n.
For each k-subset S of its columns, let ΔS be the corresponding determinant. Assuming every ΔS=0, define
Bn,J={p:pprime,p∣n∣NK/Q(ΔS)∣forsomeS},
where NK/Q is the algebraic norm. For a prime ideal p of Z[ζn] above p∈/Bn,J, identify its residue field with Fq and write α=ζnmodp. The reduced generator matrix is
GJ=[αji(s−1)]1≤i≤k,1≤s≤n.
Lemma 7 ([20], Theorem 11). Under the preceding assumptions, for n≥4 and k≥3, the matrix GJ generates an [n,k,n−k+1] cyclic MDS code over Fq. If additionally n≥7, jk≤(n−1)/2, and J is not an arithmetic progression, this code is non-RS.
For J={0,1,3}, Example 12 and Table IV give B7,J={2,7} and B8,J={2,3}. Taking (n,q)=(7,29) and (8,17) therefore yields the [7,3,5]29 and [8,3,6]17 codes below.
Example 17 ([20], Example 12). Let α=2 in F17, and take the defining set J={0,1,3}. Then C0 generated by GJ is an [8,3,6] cyclic MDS code over F17 generated by
G0=11112814131821161611591134915.
A direct computation gives dim(C02)=6. Hence, C0 is not equivalent to any RS code.
Therefore, G4=(G0∣β1,β2,β3,β4) generates a [12,3,10] non-RS MDS code C4 over F17, and dim(C42)=6.
Example 18 ([20], Example 12). Let α=16 in F29, so that α has multiplicative order 7, and take the defining set J={0,1,3}. Then C0 generated by GJ is a [7,3,5] cyclic MDS code over F29 generated by
G0=1111167124201724125231231612025.
A direct computation gives dim(C02)=6. Hence, C0 is not equivalent to any RS code.
Therefore, G9=(G0∣β1,β2,…,β9) generates a [16,3,14] non-RS MDS code C9 over F29, and dim(C92)=6.
All the source codes in SAGE of the above examples can be found in [15]. The examples above illustrate the applicability of the hyperplane-based extension procedure to several families of non-RS MDS codes, including elliptic-curve codes, twisted Reed–Solomon codes, column-twisted codes, missing-monomial evaluation codes, and cyclic codes. For the selected fields of order at most 32, the procedure produces longer MDS codes while preserving inequivalence to RS codes. The resulting codes also exhibit different Schur-square behaviour. In particular, the extended codes with parameters [9, 4, 6] over F9, [9, 4, 6] over F13, and [10, 4, 7] over F17 all satisfy dim(C2)=9>2k=8. Thus, the extension procedure can increase the Schur-square dimension beyond 2k while retaining both the MDS and non-RS properties. Over F8, the resulting [10, 3, 8] codes attain the maximum possible length q+2 for dimension-three MDS codes.
Table 1 summarizes the extension sequences presented in this section. Here, C0 denotes the initial code and Cr denotes the code obtained after appending the listed r columns.
4 Conclusion and further study
In this paper, we consider extension of an MDS code. For a new column to be added, it should not lie in any hyperplane generated by k−1 columns of the current generator matrix. We first find the normal vectors of these hyperplanes. Then, we can check whether a new column is admissible by using inner products. In this way, the extension can be carried out step by step to obtain longer MDS codes. If the initial code is non-RS, the codes obtained by the extension are also non-RS.
The examples show that this procedure can be used for different codes over small finite fields. It can not only increase the length of the code, but also increase the dimension of its Schur square. Furthermore, some of the resulting codes have Schur squares of dimension strictly greater than 2k, exceeding the dimension 2k attained by many existing constructions. These examples show that the procedure works in practice. Moreover, many new codes are non-RS and have lengths larger than known non-RS MDS codes. In this sense, these codes are new.
One limitation of the iterative procedure is that the choice of a new column at each step may affect the next extension. If we check all projective candidates and find that none of them can be added, then
Table 1: Summary of the reported extensions of non-RS MDS codes
Field
Source
Initial code C0
Extended code Cr
dim(C02)
dim(Cr2)
F8
Elliptic curve [19]
[7,3,5]
[10,3,8]
6
6
F9
Elliptic curve
[7,4,4]
[9,4,6]∗
7
9
F11
TGRS [4]
[8,3,6]
[9,3,7]∗
6
6
F11
TGRS [4]
[8,4,5]
[9,4,6]∗
7
8
F13
Missing-monomial [7]
[6,3,4]
[10,3,8]∗
6
6
F13
(∗)-twisted [1]
[7,3,5]
[10,3,8]∗
6
6
F13
CTRS [9]
[7,4,4]
[9,4,6]∗
7
9
F16
(+)-twisted [1]
[8,3,6]
[10,3,8]
6
6
F17
Cyclic [20]
[8,3,6]
[12,3,10]∗
6
6
F17
(∗)-twisted [1]
[9,4,6]
[10,4,7]∗
8
9
(∗)-twisted [1]
[9,6,4]
[10,6,5]∗
9
10
F17
Duals of the row above
[9,3,7]
[10,4,7]∗
6
10
F19
(∗)-twisted [1]
[10,3,8]
[14,3,12]∗
6
6
F19
CTRS [9]
[10,5,6]
[11,5,7]∗
10
10
F23
(∗)-twisted [1]
[12,3,10]
[14,3,12]∗
6
6
F27
(∗)-twisted [1]
[14,3,12]
[16,3,14]∗
6
6
F29
Cyclic [20]
[7,3,5]
[16,3,14]∗
6
6
F29
(∗)-twisted [1]
[15,3,13]
[16,3,14]∗
6
6
F32
(+)-twisted [1]
[17,3,15]
[19,3,17]
6
6
Here * indicates the code is not monomial equivalent to any RS code with the same parameters.
the current code cannot be extended by one more coordinate. However, this does not mean that the extension sequence we chose gives the longest code starting from the original code. In future work, we may use automorphisms, some algebraic properties, and backtracking to try different extension sequences and reduce the searching space. It is also useful to compare the running time with other search methods to better understand the advantages and limitations of the proposed procedure.
References
[1] P. Beelen, S. Puchinger, and J. Rosenkilde, “Twisted Reed–Solomon codes,” IEEE Trans. Inf. Theory, vol. 68, no. 5, pp. 3047–3061, May 2022.
[2] H. Chen, C. Hu, J. Huang, and C.-A. Zhao, “On the maximal length of MDS elliptic codes,” arXiv:2605.29439, 2026.
[3] N. Cai, and R. W. Yeung, “Secure network coding,” Proc. IEEE Int. Symp. Inf. Theory (ISIT), Jun. 2002, p. 323.
[4] H. Gu, and J. Zhang, "On Twisted Generalized Reed-Solomon Codes With l Twists," IEEE Trans. Inf. Theory, vol. 70, no. 1, pp. 145–153, Jan. 2024.
[5] J. W. P. Hirschfeld, Finite Projective Spaces of Three Dimensions. Oxford, U.K.: Oxford University Press, 1985.
[6] D. Han, and Y. Ren, “A tight upper bound for the maximal length of MDS elliptic codes,” IEEE Trans. Inf. Theory, vol. 69, no. 2, pp. 819–822, Feb. 2023.
[7] L. Jin, L. Ma, C. Xing, and H. Zhou, “New families of non-Reed-Solomon MDS codes,” IEEE Trans. Inf. Theory, vol. 72, no. 2, pp. 985–993, Feb. 2026.
[8] F. Li, Y. Chen, and Y. Niu, “Non-Reed-Solomon type cyclic MDS codes,” IEEE Trans. Inf. Theory, vol. 71, no. 5, pp. 3489–3496, 2025.
[9] W. Liu, J. Luo, P. Wang, and D. Zhai, “Column Twisted Reed-Solomon Codes as MDS Codes,” IEEE Trans. Inf. Theory, vol. 72, no. 8, pp. 5516–5524, Aug. 2026.
[10] F. J. MacWilliams, and N. J. A. Sloane, The Theory of Error-Correcting Codes. North-Holland, 1977.
[11] R. M. Roth, and A. Lempel, “On MDS codes via Cauchy matrices”, IEEE Trans. Inf. Theory, vol. 35, no. 6, pp. 1314–1319, Nov. 1989.
[12] I. S. Reed, and G. Solomon, “Polynomial codes over certain finite fields,” J. Soc. Ind. Appl. Math., vol. 8, no. 2, pp. 300–304, 1960.
[13] J. Sui, Q. Yue, X. Li, and D. Huang, “MDS, near-MDS or 2-MDS self-dual codes via twisted generalized Reed–Solomon codes,” IEEE Trans. Inf. Theory, vol. 68, no. 12, pp. 7832–7841, Dec. 2022.
[14] J. Sui, X. Zhu, and X. Shi, “MDS and near-MDS codes via twisted Reed–Solomon codes,” Des. Codes Cryptogr., vol. 90, pp. 1937–1958, 2022.
[16] S. Ball, “On sets of vectors of a finite vector space in which every subset of basis size is a basis,” J. Eur. Math. Soc., vol. 14, no. 3, pp. 733–748, 2012.
[17] Y. Wu, C. Ding, and T. Chen, “When does the extended code of an MDS code remain MDS?,” IEEE Trans. Inf. Theory, vol. 71, no. 1, pp. 263–272, 2025.
[18] G. Wang, H. Liu, and J. Luo, “New constructions of non-GRS MDS codes, recovery and determination algorithms for GRS codes,” IEEE Trans. Inf. Theory, vol. 72, no. 4, pp. 3848–3861, Apr. 2026.
[19] P. Wang, W. Liu, J. Luo, and D. Zhai, “Non-Reed-Solomon type MDS codes from elliptic curves,” IEEE Trans. Inf. Theory, IEEE Trans. Inf. Theory, vol. 72, no. 9, pp. 6551–6557, Sept. 2026.
[20] C. Xiang and C. Tang, “Non-RS type cyclic MDS codes over finite fields via cyclotomic field reduction,” arXiv preprint arXiv:2604.06822, 2026.
[21] C. Zhu, and Q. Liao, “A class of double-twisted generalized Reed–Solomon codes,” Finite Fields Appl., vol. 95, Art. no. 102395, 2024.
[22] Y. Zhi, and S. Zhu, “New MDS codes of non-GRS type and NMDS codes,” Discrete Math., vol. 348, no. 5, Art. no. 114436, 2025.