1. Introduction
In coding theory, constacyclic codes are important, since many optimal linear codes are derived from constacyclic codes. The class of constacyclic codes has practical applications as constacyclic codes are effective for encoding and decoding with shift registers.
A
-constacyclic code of length
n over
is an ideal
of the ambient ring
where
is a divisor of
and
is a unit in the finite field
. If
, the code is called a
simple-root code. Otherwise, it is called a
repeated-root code. Repeated-root codes were studied earlier, from the 1960s, in some papers (for example, refs. [
1,
2,
3,
4,
5,
6,
7,
8])
.After the celebrated results in the 1990s [
9,
10,
11] by Nechaev and Hammons et al., that many important yet seemingly non-linear codes over finite fields are actually closely related to linear codes over the ring of integers modulo four, codes over
in particular, and codes over finite rings in general, have received a great deal of attention. The class of finite rings of the form
have been used widely as alphabets of certain constacyclic codes. For example, the structure of
is interesting because this ring lies between
and
, in the sense that it is additively analogous to
and multiplicatively analogous to
. Codes over
have been extensively studied by many researchers, whose work includes cyclic and self-dual codes [
12], decoding of cyclic codes [
13], Type II codes [
14], and duadic codes [
15]. The most general form of these rings,
, has been used as code alphabet as well. For instance, Ozen and Siap [
16] addressed linear codes over this ring with respect to the Rosenbloom–Tsfasman metric, and Alfaro et al. obtained a construction for self-dual codes over it [
17].
Let
be the code alphabet consisting of
q elements. Then, each element
is called a
symbol. In symbol-pair read channels, a codeword
is read as
A
q-ary code of length
n is a nonempty subset
Assume that
is a vector in
. Then,
is said to be a symbol-pair vector of
v. Hence, for each
v, we have a unique symbol-pair vector
. In 2010, Cassuto and Blaum [
18] introduced the symbol-pair distance as the Hamming distance over the alphabet
Given
the symbol-pair distance between
v and
t is defined as
The symbol-pair distance of
C is defined as
The symbol-pair weight of a vector
v, denoted by
, is defined as
If
C is linear,
is equal to the minimum symbol-pair weight of nonzero codewords of
C:
With the development of high-density data storage technologies, symbol-pair codes are proposed to protect efficiently against a certain number of pair-errors. In 2010, Cassuto and Blaum [
18] studied the model of symbol-pair read channels. However, the problem of determining symbol-pair distance of a code
C is very difficult in general. In 2012, lower bound on the symbol-pair distances for binary cyclic codes are considered by Yaakobi et al. [
19]. They proved that the symbol-pair distance of linear code
C is at least
Theorem 4 of [
19]. This result is better than the previous result provided by Cassuto and Litsyn. However, the algorithms in [
19,
20] must improve because these algorithms can not be used to decode all symbol-pair codes. Motivated by this, a new algorithm is given by Hirotomo et al. [
21], using the parity-check matrix for decoding symbol-pair codes. By extending Theorem 10 of [
20], Kai et al. [
22] provided a new lower bound on simple-root constacyclic codes. Recently, Dinh et al. [
23,
24] succesfully established the symbol-pair distances for all constacyclic codes of length
and cyclic codes of length
over
. In addition, refs. [
25,
26] investigated Hamming and symbol-pair distances of repeated-root constacyclic codes of length
over
.
Motivated by these, in this paper, we determine symbol-pair distance of -constacyclic codes of length over , where is not a cube in . As an application, we identify all the MDS symbol-pair codes among such codes.
The rest of this paper is organized as follows.
Section 2 gives some preliminaries.
Section 3 obtains the symbol-pair distance of all
-constacyclic codes of length
over
, where
is not a cube in
. In
Section 4, we give the necessary and sufficient condition for a symbol-pair
-constacyclic code to be an MDS symbol-pair code, and we identify all such codes. The conclusion of this paper is given in
Section 5.
2. Preliminaries
For a unit
of
R (
R is a finite chain ring size
), the
-constacyclic (
-twisted) shift
on
is the shift
and a code
C is called
-constacyclic if
. If
, then
C is a cyclic and negacyclic code, respectively.
Proposition 1 ([
27,
28])
. Let C be a linear code. Then C is a λ-constacyclic code of length n over R if C is an ideal of the ring . Proposition 2 ([
29])
. The dual of a λ-constacyclic code is a -constacyclic code. Let p be a prime and R be a finite chain ring of size .
Proposition 3 ([
27,
30])
. Let C be a linear code C of length n over R. Then , for some integer . In addition, , where is the dual code of C. Assume that and are elements in . It is simple to check that is invertible over if . Thus, we divide all -constacyclic codes of length over into the following cases: is a cube and , is a cube and , is not a cube and , is not a cube and . We give all -constacyclic codes of length over in the following theorem.
Theorem 1 ([
31])
. Let be any prime. Let C be a λ-constacyclic code of length over .- (1)
Assume that λ is a cube in and . Let such that and such that and . Then where is a -constacyclic code of length over , is a -constacyclic code of length over and is a -constacyclic code of length over . In particular, .
- (2)
Assume that λ is a cube in and . Let such that . Then
- (a)
where is a -constacyclic code of length over , and is an ideal of .
- (b)
, where is determined as in Theorem 2.2 and all ideals of are determined as follows:
Then and , respectively.
Type 2:where . Then Type 3:where , and either is 0 or a unit which can be represented as with and . In this case, Type 4: with as in Type 3, and and R is the smallest integer satisfying . In this case,
- (3)
Assume that is not a cube in . There is an satisfying . Then -constacyclic codes of length over are the ideals , where and each -constacyclic code has codewords.
- (4)
Assume that is not a cube in . Let such that . Then λ-constacyclic codes of length over are
Type 2:where . Type 3:where , and is 0 or a unit where it can be written as where and . Type 4:where , , , and , where T is the smallest integer satisfyingor equivalently,with as in Type 3 and .
In addition, the number of codewords of C, denoted by , is determined as follows:
- ∘
If and , then and , respectively.
- ∘
If , where , then .
- ∘
If where , and is 0 or a unit, then - ∘
If , where , , either is 0 or a unit, andthen .
Let
b be an integer and
. For a codeword
, the
b-symbol read codeword of
v is defined as
Then the
b-symbol distance between two codewords
v and
t in
is denoted by
and defined as
In 2016, [
32] generalized the coding framework for symbol-pair read channels to that for
b-symbol read channels, where the read operation is performed as a consecutive sequence of
symbols. The authors of [
32] also generalized some of the known results for symbol-pair read channels to those for
b-symbol read channels. In [
33], Dinh et al. computed the
b-symbol distance for
for
and
, where
is irreducible. For symbol-pair distance, we have the following theorem.
Theorem 2. Let for , the symbol-pair distance is completely given bywhere , . 3. Symbol-Pair Distance
The authors of [
23] obtained the symbol-pair distance of all constacyclic codes of length
over
. After that, Dinh et al. [
25,
26] provided the symbol-pair distance of all constacyclic codes of length
over
. In this section, we compute the symbol-pair distance of all
-constacyclic codes of length
over
, where
is not a cube in
. First, we determine the symbol-pair distance of all
-constacyclic codes of length
over
, where
is not a cube in
. Obviously, if
then
. If
, then
. Now, we determine the symbol-pair distance for all
-constacyclic code of Types 2,3,4 of length
, where
is not a cube in
. Note that when
is not a cube in
, the structure of
-constacyclic codes of length
over
is given in part 4 of Theorem 1. Denote
as the symbol-pair distance of
. The symbol-pair distance of
-constacyclic code of Type 2 can be determined as follows.
Theorem 3. Let be a λ-constacyclic code of Type 2 of length over , where . Then we have , andwhere , . Proof. We consider the case and .
Case 1: If , then .
Case 2: If
then
is exactly same as
in
multiplied by
u. Hence, we see that
and
where
,
. □
In the following theorem, we discuss the symbol-pair distance of -constacyclic codes of Type 3 of length over .
Theorem 4. Let be a λ-constacyclic code of Type 3 of length over , where , and either is a unit in or 0. Then, we have , where T is the smallest integer satisfying , andThenwhere , and . Proof. Since
T is the smallest integer satisfying
, we have
Let
be an arbitrary polynomial. Then we see that there are two polynomials
and
over
satisfying
Now, we consider two cases as follows:
Case 1: Assume that
. Then, we have
Case 2: Assume that
. Then we see that
where
. Hence, by combining both the cases, we get
, which implies that,
. □
The symbol-pair distance of -constacyclic codes of Type 4 is computed in the following result.
Theorem 5. Let be a λ-constacyclic code of Type 4 of length over , where is same as given in Type 3, , , and T is the smallest integer satisfying i.e., , if and otherwise . Then, we have , and is given bywhere , and . Proof. Since
, we see that
. Hence,
. We will prove that
. Now, taking an arbitrary polynomial
, we need to prove that
. Now, the following polynomials exist
and
over
satisfying
where
.
Hence,
where
. Thus,
where
,
and
. □
If is not a cube in , then there is an satisfying . As in part 3 of Theorem 1, -constacyclic codes of length over are the ideals , where . When is not a cube in , we determine the symbol-pair distance of all -constacyclic codes of length over in the following theorem.
Theorem 6. Let C be a -constacyclic code of length over , where is not a cube in , i.e., for , where such that . Thenwhere , . Proof. We consider three cases.
Case 1: If and , then and . It is simple to verify that and , respectively.
Case 2: If . In , . Thus, we have . It implies that .
Case 3: If , then we see that . Hence, in is exactly the same as in multiplied by u. Hence, . By Theorem 1, we can determine the symbol-pair distance of . Therefore, when . □
Example 1. We present some examples of symbol-pair λ-constacyclic codes of length over , where and λ is not a cube. In Table 1, we compute the symbol-pair distances for and in Table 2, symbol-pair distances have been computed by taking . 4. MDS Symbol-Pair Codes
In 2018, Ding et al. [
34] discussed the Singleton bound with respect to the
b-symbol distance
. Following them, the Singleton bound with respect to the
b-symbol distance is given as
. In order to determine MDS symbol-pair codes, we need to have Singleton Bound with respect to symbol-pair distance.
Theorem 7. Let C be a linear symbol-pair code of length n over with symbol-pair distance . Then, the Singleton bound with respect to the symbol-pair distance is given by .
Proof. Let C be a symbol-pair code such that . If we delete the last coordinates from all the codewords in C, then any consecutive coordinates contribute, at most, to the symbol-pair distance. Since C has symbol-pair distance , the resulting vectors of length are still distinct. The conclusion follows on from the fact that the maximum number of distinct vectors of length over is . □
Definition 1. Let C be a symbol-pair code of length n over . Then, C is said to be a MDS symbol-pair code with respect to the symbol-pair distance if .
We will identify the MDS symbol-pair codes for each type of -constacyclic code, one by one.
Theorem 8. Let C be a symbol-pair λ-constacyclic code of Type 1 of length over . Then is an MDS symbol-pair code.
Proof. If , then . Thus, C is MDS when , i.e., , which is a contradiction. Therefore, the code is an MDS code. □
Now we give the MDS condition for symbol-pair -constacyclic codes of Type 2 of length over .
Theorem 9. Let be a symbol-pair λ-constacyclic code of Type 2 of length over , where . Then is not an MDS symbol-pair code λ-constacyclic code of Type 2 of length over .
Proof. Case 1: If , then . If is an MDS symbol-pair code, then , which is equivalent to , i.e., , which is a contradiction. Thus, is not MDS.
Case 2: If , then . Thus, is an MDS symbol-pair code if , i.e., , i.e., .
Hence, is not MDS. □
Next, we consider the symbol-pair -constacyclic codes of Type 3 to verify the MDS condition for these codes.
Theorem 10. Let be a symbol-pair λ-constacyclic code of Type 3 of length over , where , , and either is a unit in or 0. Then, is not an MDS symbol-pair λ-constacyclic code of Type 3 of length over .
Proof. We consider two cases as follows:
Case 1: If and , then we have . Thus, is an MDS symbol-pair code if , i.e., , i.e., , i.e., .
Thus, is not MDS.
Case 2: If and , then we consider two subcases as follows:
Subcase 2.1: If
, then
. Thus,
is an MDS symbol-pair code if
, i.e.,
, i.e.,
, i.e.,
. We see that
Thus, is not MDS.
Subcase 2.2: If
, then
. Hence,
is MDS if
, i.e.,
, i.e.,
, i.e.,
, i.e.,
, i.e.,
. We have
Therefore, is not MDS. □
Next, we explore the MDS -constacyclic codes of Type 4.
Theorem 11. Let be a symbol-pair λ-constacyclic code of Type 4 of length over , where , , either is a unit in or 0, , , and T is the smallest integer satisfying , i.e., , if , otherwise . Then, is not MDS.
Proof. If
, then symbol-pair distance is
. Thus,
is an MDS symbol-pair
-constacyclic code if
, i.e.,
, i.e.,
. Now,
Therefore, is not MDS, as required. □
In Theorem 6, we compute the symbol-pair distance of -constacyclic codes of length over , where is not a cube in . Using Theorem 6, as an application, we have the following theorem.
Theorem 12. Let C be a -constacyclic code of length over , where is not a cube in , i.e., for , where such that . Then, C is not an MDS symbol-pair -constacyclic code of length over .
Proof. By using the result in Theorem 1 (part 3), we have .
Case 1: When , by Theorem 6, . Hence, C is an MDS symbol-pair code if i.e., , i.e., , i.e., . Thus, is MDS.
Case 2: When
, then
. Therefore,
C is an MDS symbol-pair code if
i.e.,
i.e.,
i.e.,
. Now, we have
Hence, . Thus, C is not MDS. □