Abstract
Let , where p is an odd prime and m is a positive integer. For a unit in , -constacyclic codes of length over are ideals of , where s is a positive integer. The structure of -constacyclic codes are classified on the distinct cases for the unit : when is a square in and when it is not. In this paper, for all such -constacyclic codes, the Hamming distances are determined using this structure. In addition, their symbol-pair distances are obtained. The symmetry property of Hamming and symbol-pair distances makes analysis easier and maintains consistency by guaranteeing that the distance between codewords is the same regardless of their order. As symmetry preserves invariant distance features across transformations, it improves error detection and correction.
1. Introduction
Digital processing was expensive and slow, and digital communication channels were also slow. In 1948, Claude Shannon’s [1] study showed that using a small amount of redundancy could allow decoders to correct bit errors, improving system parameters like power, file size, and transfer speeds. This led to the development of error-correcting codes. Linear codes introduced by Shannon [1] play a crucial role in information theory for recovering corrupted messages sent through noisy communication channels. Initially, linear codes were studied over finite fields. Since the late 1950s, cyclic codes over finite fields have been extensively researched due to their practical applications and rich algebraic structures. Cyclic codes are generalized into constacyclic codes. As they can be efficiently encoded using basic shift registers, constacyclic codes have practical applications. With the transition from cyclic to constacyclic coding, error correction can be handled with more flexibility. Their uses are widespread in contemporary digital communications, storage systems, wireless networks, and cryptography, making them an essential component of reliable data transfer.
In the finite field , -constacyclic codes of length n over are categorized as ideals of the ambient ring , where is a divisor of . The codes are referred to as simple root codes when the length of the code n is relatively prime to the characteristic of . If not, they are known as repeated-root codes, which were initially studied in [2,3,4].
A landmark study by Hammons et al. [5] demonstrated that by using the Gray map, linear codes over can be converted into some good binary nonlinear codes, such as Preparata and Kerdock codes. This work initiated a rigorous study on codes over rings.
Codes over chain rings have been examined by several authors [6,7,8,9,10,11,12,13,14,15]. Recently, cyclic and constacyclic codes over finite non-chain rings have drawn the attention of researchers as they can obtain optimal linear codes and quantum codes. In [16], Yildiz and Karadeniz examined cyclic codes of odd length over the non-chain ring . As the Gray images of these cyclic codes, they found a few good binary codes. Later, they examined -constacyclic codes over the ring and obtained cyclic codes over as the image of -constacyclic codes over under natural Gray map [17]. After that, Haifeng et al. [18] examined -constacyclic codes over and showed that under a Gray map, images of these codes are distance invariant quasi-cyclic code of length and index over . Negacyclic codes of odd length over are studied by Ghosh [19]. Moreover, Bag et al. [20] investigated and -constacyclic codes of length over . The more general ring was taken into consideration by Dougherty et al. [21], who also examined the general characteristics of cyclic codes over such rings and identified the nontrivial one-generator cyclic codes. These investigations were expanded to cyclic codes over the ring by Sobhani and Molakarimi in [22]. The structures of all constacyclic codes of length and over the ring are investigated in [23,24]. For recent research on non-chain rings, one can refer [25,26,27,28].
For a given linear code , with a Hamming distance , the error correction capacity of is [29]. The symmetry property of the Hamming distance, which states that , guarantees consistent evaluation of codeword differences and makes error correction easier. This constancy makes decoding predictable and enhances the effectiveness and dependability of error-correcting codes. As a result, the Hamming distance plays an important role in coding theory. Thus, many researchers are interested in the Hamming distance. In 2010, Dinh [8] computed the Hamming distances of all ()-constacyclic codes of length over . Later, for all -constacyclic codes of length over , the Hamming distances are studied in [30]. For all constacyclic codes of length over , the Hamming distances are completely determined in [31]. In 2020, the Hamming distance of -constacyclic codes (where is not a cube) of length over was determined in [11]. For -constacyclic codes of length over , where is a cube and is not a cube in , the Hamming distance was determined in [32]. Further, Hamming distances of -constacyclic codes of length over for , , , where , and are determined in [33].
As high-density data storage technologies advance, symbol-pair codes are suggested as an effective way to guard against a specific number of pair errors. Cassuto et al. [34] introduced a novel coding method for symbol-pair read channels in 2010. In this method, the output of the read process is consecutive symbol pairs. The symbol-pair distances of the constacyclic codes over are studied in [35,36,37]. Further, symbol-pair distances of repeated-root constacyclic codes of length over and were studied in [30,38], respectively. Also, several authors studied Maximum Distance Separable symbol-pair codes (see, for example, [39,40,41,42,43]).
By examining the literature, the Hamming and symbol-pair distances of constacyclic codes of length over have remained open. Motivated by all these works, in this paper, we compute the Hamming and symbol-pair distances of constacyclic codes of length over . The paper is organized as follows. Section 2 provides some preliminary information. Section 3 gives a brief outline of the -constacyclic code of length over the ring . In Section 4, we obtain the Hamming distances of -constacyclic codes of length over . In Section 5, we determine the symbol-pair distance of -constacyclic codes of length over . The paper is concluded in Section 6.
2. Preliminaries
Let ℜ be a finite commutative ring with identity. A code of length n over ℜ is a nonempty subset of . An element of is called a codeword. If is an ℜ-submodule of , then is said to be linear denoted by , where k is the dimension of the code and d is the distance of code. Let be a unit of ℜ. The -constacyclic shift on is the shift,
and a code is said to be -constacyclic if is closed under the -constacyclic shift . If is equal to 1 (or −1), then the -constacyclic codes are referred to as cyclic (or negacyclic) codes.
Each codeword in , denoted by , is uniquely identified using its polynomial representation, . From that, the following proposition follows from [29,44].
Proposition 1.
A linear code of length n over ℜ is an α-constacyclic if and only if is an ideal of .
Let and be two vectors in , where ℜ is a code alphabet. The Hamming weight of , represented as , is the nonzero entries of a codeword . The Hamming distance , of two words and , equals the number of components in which they differ. i.e., . The Hamming distance of code contains at least two words, .
The symbol-pair distance is given by using the Hamming distance over the alphabet as follows:
Then, is the symbol-pair distance of code [34].
Theorem 1
([34]). For in , let be the Hamming distance between x and y. Then,
In the extreme cases in which equals 0 or n, clearly .
Theorem 2
([45]). Let and be two and linear codes over . Then, their direct sum is defined as , representing linear codes over .
3. -Constacyclic Code of Length over the Ring
Let p be an odd prime number and m be a positive integer. Let (, , ). An element is a unit if and only if is non zero in . Let . Now, for any positive integer t. For positive integers m and s, by division algorithm, , where and are non-negative integers with . Let . Then, .
For any unit of , let
In [24], Ahendouz and Akharraz studied the -constacyclic code of length over the ring , where and with and are not both zero. Also, their duals are determined.
Theorem 3
([24]). Let α be a square in , say for some . A subset of is a α-constacyclic code of length over if and only if , where is a γ-constacyclic code of length over and is a -constacyclic code of length over .
Theorem 4
([24]). Let be a non-square in , where and with and are not both zero. Then, α-constacyclic codes of length over , that is, the ideals of the quotient ring , are
- Type A: , .
- Type B: , where .
- Type C: , where , and either is 0 or is a unit that can be represented as with and .
- Type D: , where , with as in Type C.Here, . Also,where .
Let , where and with and are not both zero. In the following sections, we determine the Hamming and symbol-pair distances of the -constacyclic code of length over the ring .
4. Hamming Distance
The Hamming distances of -constacyclic codes of length over are determined in this section, where is an arbitrary unit of . As shown in [24], the types of determine the construction of -constacyclic codes. Therefore, we must take into account two scenarios: is a square and is a non-square.
By Theorem 2 and 3, when is a square in , the Hamming distance of the -constacyclic code of length is the minimum of the Hamming distance of the -constacyclic code of length and the Hamming distance of the −-constacyclic code of length .
Permouth et al. [46] determined the Hamming distances of the -constacyclic code of length over .
Theorem 5
([46]). Let ⊆, for . Then,
where , and .
Now, we determine the Hamming distances of the -constacyclic code of length over when is not a square in . The Hamming distance of Type A ideals and of are obviously 0 and 1, respectively. Now, we calculate the Hamming distance of Type B, C and Type D -constacyclic code of length when is not a square in . Note that Section 3 of Theorem 4 provides the structure of -constacyclic codes of length over when is not a square in . The Hamming distance of Type B -constacyclic codes of length over is discussed in the following theorem.
Theorem 6.
Let , where . Then,
where , and .
Proof.
From Theorem 4, Type B -constacyclic codes of length over are given by , where .
- Case (i): If , then .
- Case (ii): If , then . Thus, is precisely the -constacyclic code in multiplied by . Therefore, , and the proof follows from Theorem 5.
□
The following result calculates the Hamming distance of Type C -constacyclic codes.
Theorem 7.
Let , where , and is 0 or a unit. Then,
where , and .
Proof.
From Theorem 4, Type C -constacyclic codes of length over are given by , where , , and is 0 or a unit. Let ℑ be the smallest integer such that . Then, . Let . Then, exists, where such that . Thus,
Then,
By simplifying Equation (2),
Then, we have . Thus, . Hence, . The proof follows from Theorem 6.
□
We examine the Hamming distance of Type D -constacyclic codes of length over in the following theorem.
Theorem 8.
Let , where , and is 0 or a unit. Then,
where , and .
Proof.
From Theorem 4, Type D -constacyclic codes of length over are given by , where , and is 0 or a unit. We have . Then, . Let . Then, exists, where and , where , such that . Thus,
Then,
By simplifying Equation (3),
Then, we have and . Then, . Hence, . The proof follows from Theorem 6. □
5. Symbol-Pair Distance
The symbol-pair distances of all -constacyclic codes of length over are determined in this section, where is an arbitrary unit of . As shown in [24], the types of determine the construction of -constacyclic codes. Therefore, we must take into account two scenarios: is a square and is a non-square.
By Theorem 2 and 3, when is a square in , the symbol-pair distance of the -constacyclic code of length is a minimum of the symbol-pair distance of -constacyclic code of length and the symbol-pair distance of the -constacyclic code of length .
Dinh et al. [35] determined the symbol-pair distances of the -constacyclic code of length over .
Theorem 9
([35]). Let ⊆, for . Then,
where , and .
Now, we determine the symbol-pair distances of the -constacyclic code of length over when is not a square in . The symbol-pair distance of Type A ideals and of are obviously 0 and 2, respectively. Now, we calculate the symbol-pair distance of Type B, C and Type D of length when is not a square in . Note that Section 3 of Theorem 4 provides the structure of -constacyclic codes of length over when is not a square in .
The symbol-pair distance distance of Type B -constacyclic codes of length over is discussed in the following theorem.
Theorem 10.
Let , where . Then,
where , and .
Proof.
From Theorem 4, Type B -constacyclic codes of length over are given by , where .
- Case (i): If , then .
- Case (ii): If , then . Thus, is precisely the -constacyclic code in multiplied by . Therefore, and the proof follows from Theorem 9.
□
The following result calculates the symbol-pair distance of Type C -constacyclic codes.
Theorem 11.
Let , where , and is 0 or a unit. Then,
where , and .
Proof.
From Theorem 4, Type C -constacyclic codes of length over are given by , where , and is 0 or a unit. Let ℑ be the smallest integer such that . Then, . Let . Then, exists, where such that . Thus,
Then,
By simplifying Equation (4),
Then, we have . Then, we obtain . Hence, . The proof follows from Theorem 10. □
We examine the symbol-pair distance of Type D -constacyclic codes of length over in the following theorem.
Theorem 12.
Let , where , and is 0 or a unit. Then,
where , and .
Proof.
From Theorem 4, Type D -constacyclic codes of length over are given by , where , and is 0 or a unit. We have . Then, . Let . Then, exists, where and , where , such that . Thus,
Then,
By simplifying Equation (5),
We have and by Theorem 4, . Then, . Hence, . The proof follows from Theorem 10. □
Example 1.
Let , , , and . It is simple to verify that 2 in is not a square. Let us calculate the Hamming and symbol pair distances of Type B constacyclic codes of length 6 over . Let , where . For by Theorem 6, . And by Theorem 10, . Also, and . For , , and for , . Then, by Theorem 6, and , respectively. And by Theorem 10, and , respectively. The Hamming and symbol-pair distance of the Constacyclic code of length 6 over are determined in Table 1.
Table 1.
Hamming and symbol-pair distance of Constacyclic code of length 6 over .
6. Conclusions
In the case of error-correcting codes, distances of constacyclic codes are crucial. Determining the Hamming and symbol-pair distances of constacyclic codes is an interesting field of study. Let p be an odd prime and m and s be positive integers, and let , a finite commutative non-chain ring with identity. In this article, we computed the Hamming and symbol-pair distances of -constacyclic codes of length over . By examining the results obtained, we can conclude that for constacyclic codes of length over , we have . The objective in designing codes for the symbol-pair read channel is to attain a high minimum symbol-pair distance with respect to the minimum Hamming distance. From Theorem 1 and since , these codes have the largest possible minimum symbol-pair distance with respect to their minimum Hamming distance. Also, we provided an example of constacyclic codes of length 6 over along with the Hamming and symbol-pair distances.
Author Contributions
Conceptualization, D.A. and P.P.; methodology, D.A. and V.G.R.B.; validation, P.P. and V.G.R.B.; formal analysis, D.A.; investigation, D.A. and P.P.; writing—original draft preparation, D.A. and P.P.; writing—review and editing, D.A. and V.G.R.B.; and supervision, P.P. and V.G.R.B. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Data sharing does not apply to this manuscript because no data sets were analyzed or generated during this particular study.
Acknowledgments
The authors thank the editor and reviewers for their thorough review and constructive comments.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
- Berman, S. Semisimple cyclic and abelian codes. II. Cybernetics 1967, 3, 17–23. [Google Scholar] [CrossRef]
- Lint, J.H.V. Repeated-root cyclic codes. IEEE Trans. Inf. Theory 1991, 37, 343–345. [Google Scholar] [CrossRef]
- Castagnoli, G.; Massey, J.L.; Schoeller, P.A.; Seemann, N.V. On repeated-root cyclic codes. IEEE Trans. Inf. Theory 1991, 37, 337–342. [Google Scholar] [CrossRef]
- Hammons, A.R.; Kumar, P.V.; Calderbank, A.R.; Sloane, N.J.A.; Sole, P. The -linearity of Kerdock, Preparata, Goethals and related codes. IEEE Trans. Inf. Theory 1994, 40, 301–319. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Dhompongsa, S.; Sriboonchitta, S. Repeated-root constacyclic codes of prime power length over and their duals. Discret. Math. 2016, 339, 1706–1715. [Google Scholar] [CrossRef]
- Guenda, K.; Gulliver, T.A. Repeated root constacyclic codes of length mps over . J. Algebra Its Appl. 2015, 14, 1450081. [Google Scholar] [CrossRef]
- Dinh, H.Q. Constacyclic codes of length ps over . J. Algebra 2010, 324, 940–950. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Wang, L.; Zhu, S. Negacyclic codes of length 2ps over . Finite Fields Their Appl. 2015, 31, 178–201. [Google Scholar] [CrossRef]
- Chen, B.; Dinh, H.Q.; Liu, H.; Wang, L. Constacyclic codes of length 2ps over . Finite Fields Their Appl. 2016, 37, 108–130. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Nguyen, B.T.; Yamaka, W. Constacyclic Codes of Length 3ps Over . IEEE Access 2020, 8, 204031–204056. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Nguyen, B.T.; Sriboonchitta, S. Negacyclic codes of length 4ps over and their duals. Discret. Math. 2018, 341, 1055–1071. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Sharma, A.; Rani, S.; Sriboonchitta, S. Cyclic and negacyclic codes of length 4ps over . J. Algebra Its Appl. 2018, 17, 1850173. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Nguyen, B.T.; Sriboonchitta, S.; Vo, T.M. On (α + uβ)-constacyclic codes of length 4ps over . J. Algebra Its Appl. 2019, 18, 1950023. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Nguyen, B.T.; Sriboonchitta, S.; Vo, T.M. On a class of constacyclic codes of length 4ps over . J. Algebra Its Appl. 2019, 18, 1950022. [Google Scholar] [CrossRef]
- Yildiz, B.; Karadeniz, S. Cyclic codes over . Des. Codes Cryptogr. 2011, 58, 221–234. [Google Scholar] [CrossRef]
- Karadeniz, S.; Yildiz, B. (1 + v)-constacyclic codes over . J. Frankl. Inst. 2011, 348, 2625–2632. [Google Scholar] [CrossRef]
- Yu, H.; Zhu, S.; Kai, X. (1 − uv)-constacyclic codes over . J. Systems Sci. Complex. 2014, 27, 811–816. [Google Scholar] [CrossRef]
- Ghosh, B. Negacyclic codes of odd length over the ring . arXiv 2015, arXiv:1501.07431. [Google Scholar]
- Bag, T.; Pathak, S.; Upadhyay, A.K. Classes of constacyclic codes of length ps over the ring . Beiträge Algebra Geom. 2019, 60, 693–707. [Google Scholar] [CrossRef]
- Dougherty, S.T.; Karadeniz, S.; Yildiz, B. Cyclic codes over Rk. Des. Codes Cryptogr. 2012, 63, 113–126. [Google Scholar] [CrossRef]
- Sobhani, R.; Molakarimi, M. Some results on cyclic codes over the ring R2,m. Turk. J. Math. 2013, 37, 1061–1074. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Kewat, P.K.; Kushwaha, S.; Yamaka, W. On constacyclic codes of length ps over . Discret. Math. 2020, 343, 111890. [Google Scholar] [CrossRef]
- Ahendouz, Y.; Akharraz, I. A class of constacyclic codes of length 2ps over . Gulf J. Math. 2024, 17, 73–90. [Google Scholar] [CrossRef]
- Ali, S.; Alali, A.S.; Wong, K.B.; Oztas, E.S.; Sharma, P. Cyclic codes over non-chain ring and their applications to quantum and DNA codes. AIMS Math. 2024, 9, 7396–7413. [Google Scholar] [CrossRef]
- Benjwal, S.; Bhaintwal, M.; Kumar, R. On quantum codes derived from quasi-cyclic codes over a non-chain ring. Quantum Inf. Process. 2024, 23, 309. [Google Scholar] [CrossRef]
- Rai, P.; Singh, B.; Gupta, A.J. Quantum and LCD codes from skew constacyclic codes over a general class of non-chain rings. Quantum Inf. Process. 2024, 23, 276. [Google Scholar] [CrossRef]
- Yadav, S.; Singh, A.; Islam, H.; Prakash, O.; Solé, P. Hermitian hull of constacyclic codes over a class of non-chain rings and new quantum codes. Comput. Appl. Math. 2024, 43, 269. [Google Scholar] [CrossRef]
- MacWilliams, F.J.; Sloane, N.J.A. The Theory of Error-Correcting Codes, 10th ed.; Elsevier: Amsterdam, The Netherlands, 1977. [Google Scholar]
- Dinh, H.Q.; Nguyen, B.T.; Singh, A.K.; Sriboonchitta, S. Hamming and Symbol-Pair Distances of Repeated-Root Constacyclic Codes of Prime Power Lengths Over . IEEE Commun. Lett. 2018, 22, 2400–2403. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Gaur, A.; Gupta, I.; Singh, A.K.; Singh, M.K.; Tansuchat, R. Hamming distance of repeated-root constacyclic codes of length 2ps over . Appl. Algebra Eng. Comput. 2020, 31, 291–305. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Nguyen, B.T.; Thi, H.L.; Yamaka, W. On Hamming distance distributions of repeated-root constacyclic codes of length 3ps over . Discret. Math. 2023, 346, 113593. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Kewat, P.K.; Kushwaha, S.; Yamaka, W. Self-dual constacyclic codes of length 2s over the ring . J. Appl. Math. Comput. 2022, 68, 431–459. [Google Scholar] [CrossRef]
- Cassuto, Y.; Blaum, M. Codes for symbol-pair read channels. IEEE Trans. Inf. Theory 2010, 57, 8011–8020. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Wang, X.; Liu, H.; Sriboonchitta, S. On the symbol-pair distances of repeated-root constacyclic codes of length 2ps. Discret. Math. 2019, 342, 3062–3078. [Google Scholar]
- Dinh, H.Q.; Nguyen, B.T.; Singh, A.K.; Sriboonchitta, S. On the symbol-pair distance of repeated-root constacyclic codes of prime power lengths. IEEE Trans. Inf. Theory 2017, 64, 2417–2430. [Google Scholar] [CrossRef]
- Sun, Z.; Zhu, S.; Wang, L. The symbol-pair distance distribution of a class of repeated-root cyclic codes over . Cryptogr. Commun. 2018, 10, 643–653. [Google Scholar] [CrossRef]
- Charkani, M.E.; Dinh, H.Q.; Laaouine, J.; Yamaka, W. Symbol-Pair Distance of Repeated-Root Constacyclic Codes of Prime Power Lengths over . Mathematics 2021, 9, 2554. [Google Scholar] [CrossRef]
- Chee, Y.M.; Ji, L.; Kiah, H.M.; Wang, C. Maximum distance separable codes for symbol-pair read channels. IEEE Trans. Inf. Theory 2013, 59, 7259–7267. [Google Scholar] [CrossRef]
- Kai, X.; Zhu, S.; Li, P. A construction of new MDS symbol-pair codes. IEEE Trans. Inf. Theory 2015, 61, 5828–5834. [Google Scholar] [CrossRef]
- Ding, B.; Ge, G.; Zhang, J.; Zhang, T.; Zhang, Y. New constructions of MDS symbol-pair codes. Des. Codes Cryptogr. 2018, 86, 841–859. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Nguyen, B.T.; Sriboonchitta, S. MDS Symbol-Pair Cyclic Codes of Length 2ps over . IEEE Trans. Inf. Theory 2019, 66, 240–262. [Google Scholar] [CrossRef]
- Dinh, H.Q.; Kumam, P.; Kumar, P.; Satpati, S. MDS Symbol-Pair Repeated-Root Constacylic Codes of Prime Power Lengths Over . IEEE Access 2019, 7, 145039–145048. [Google Scholar] [CrossRef]
- Huffman, W.C.; Pless, V. Fundamentals of Error-Correcting Codes; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
- Ling, S.; Xing, C. Coding Theory: A First Course; Cambridge University Press: Cambridge, UK, 2004. [Google Scholar]
- López-Permouth, S.R.; Özadam, H.; Özbudak, F.; Szabo, S. Polycyclic codes over Galois rings with applications to repeated-root constacyclic codes. Finite Fields Their Appl. 2013, 19, 16–38. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).