Abstract
The concepts of a linear covering code and a covering set for the limited-magnitude-error channel are introduced. A number of covering-set constructions, as well as some bounds, are given. In particular, optimal constructions are given for some cases involving small-magnitude errors. A problem of Stein is partially solved for these cases. Optimal packing sets and the corresponding error-correcting codes are also considered for some small-magnitude errors.
Similar content being viewed by others
References
Andrews G.E.: Number Theory. W. B. Saunders Co., Philadelphia (1971).
Cassuto Y., Schwartz M., Bohossian V., Bruck J.: Codes for asymmetric limited-magnitude errors with applications to multilevel flash memories. IEEE Trans. Inf. Theory 56(4), 1582–1595 (2010).
Chen Z., Shparlinski I.E., Winterhof A.: Covering sets for limited-magnitude errors. arXiv:1310.0120v1 [cs.IT] 1 Oct 2013.
Hardy G.H., Wright E.M.: An Introduction to the Theory of Numbers, 4th edn. Oxford University Press, London (1960).
Jiang A., Langberg M., Schwartz M., Bruck J.: Trajectory codes for flash memory. IEEE Trans. Inf. Theory 59(7), 4530–4541 (2013).
Kløve T., Schwartz M.: Covering sets for limited-magnitude errors. In: Preproceedings, International Workshop on Coding and Cryptography (WCC), Bergen, 15–19 April 2013, pp. 69–78. http://www.selmer.uib.no/WCC2013/PreProceedings.
Kløve T., Bose B., Elarief N.: Systematic, single limited magnitude error correcting codes for flash memories. IEEE Trans. Inf. Theory 57(7), 4477–4487 (2011).
Kløve T., Luo J., Naydenova I., Yari S.: Some codes correcting asymmetric errors of limited magnitude. IEEE Trans. Inf. Theory 57(11), 7459–7472 (2011).
Kløve T., Luo J., Yari S.: Codes correcting single errors of limited magnitude. IEEE Trans. Inf. Theory 58(4), 2206–2219 (2012).
Schwartz M.: Quasi-cross lattice tilings with applications to flash memory. IEEE Trans. Inf. Theory 58(4), 2397–2405 (2012).
Schwartz M.: On the non-existence of lattice tilings by quasi-crosses. Eur. J. Comb. 36, 130–142 (2014).
Stein S.K.: Tiling, packing, and covering by clusters. Rocky Mt. J. Math. 16, 277–321 (1986).
Stein S.K., Szabó S.: Algebra and Tiling. The Mathematical Association of America, Washington, DC (1994).
Szabó S.: Lattice covering by semicrosses of arm length 2. Eur. J. Comb. 12, 263–266 (1991).
Yari S., Kløve T., Bose B.: Some codes correcting unbalanced errors of limited magnitude for flash memories. IEEE Trans. Inf. Theory 59(11), 7278–7287 (2013).
Acknowledgments
This study is supported by The Norwegian Research Council and by ISF Grant 134/10.
Author information
Authors and Affiliations
Corresponding author
Additional information
Moshe Schwartz—on sabbatical leave at the Research Laboratory of Electronics, MIT.
This is one of several papers published in Designs, Codes and Cryptography comprising the “Special Issue on Coding and Cryptography”.
Appendix
Appendix
1.1 Proof of Theorem 5
In the setting of Theorem 5 we have \(q\) odd. Let \(\varsigma _r(q)\) denote the number of cyclotomic cosets of odd size. In [8], an expression for \(\varsigma _1(q)\) was given, in a slightly different notation. Here we will use a similar method to show that \(\varsigma _r(q)=\vartheta _r(q_0)\) for all \(r\).
Let
and for \(d|q\), let
In particular, \( \mathbb {Z}_{q,1} =\left\{ 0\right\} \). The size of \(\mathbb {Z}_{q,d}\) is \(\varphi (d)\), where \(\varphi (\cdot )\) is Euler’s totient function. We have the following disjoint-union decomposition [8, Lemma 4]:
Lemma 4
Let \(d\) be a divisor of \(q\). For any \(b\in \mathbb {Z}_{q,d}\), the least positive \(\ell \) such that \(2^\ell b\equiv b\;(\mathrm{mod}\; q)\) is exactly \(\ell _d\).
Proof
Let \(b=a\cdot q/d\). Since \(\gcd (a,q)=1\) by definition, we have the following equivalences:
\(\square \)
We observe that Lemma 4 implies that \(\mathbb {Z}_{q,d}\) is the disjoint union of \(\varphi (d)/\ell _d\) cosets of size \(\ell _d\).
In [8, Lemma 5] the following result was given.
Lemma 5
-
(i)
For odd \(d=p_1^{e_1}p_2^{e_2}\ldots p_s^{e_s}\), with \(p_i\) distinct odd primes, we have
$$\begin{aligned} \ell _d={{\mathrm{lcm}}}\left( \ell _{p_1^{e_1}}, \ell _{p_2^{e_2}}, \ldots , \ell _{p_s^{e_s}}\right) . \end{aligned}$$In particular, \(v_2(\ell _d)=i\) if and only if \(\max _{1\le j\le s}v_2(\ell _{p_j^{e_j}})=i\).
-
(ii)
For any odd prime \(p\), suppose \(2^{\ell _p}=1+p^{u_p}s_p\) with \(p\not \mid s_p\). Then
$$\begin{aligned} \ell _{p^k}= {\left\{ \begin{array}{ll} \ell _p &{}\quad \! \text {if } k\le u_p,\\ p^{k-u_p} \ell _p &{}\quad \! \text {if } k>u_p. \end{array}\right. } \end{aligned}$$
From Lemma 5 we get the following more general result:
Lemma 6
For any odd \(q\), and \(d_1, d_2, \ldots , d_r\) divisors of \(q\) we have
Proof
Let \(p_j\), \(j=1,2,\ldots ,s\), be the set of all primes dividing \(q\), and let \(d_i= \prod _{j=1}^s p_j^{e_{i,j} }\). Then
By Lemma 5 we get
\(\square \)
Now, consider a cyclotomic coset in \(\mathbb {Z}_q^r\), generated by \((a_1,a_2,\ldots a_r)\). Suppose \(a_i\in \mathbb {Z}_{q,d_i}\). Then the size of the coset is \({{\mathrm{lcm}}}(\ell _{d_1},\ell _{d_2},\ldots , \ell _{d_r})=\ell _{{{\mathrm{lcm}}}(d_1,d_2,\ldots ,d_r)}\), and the number of such cosets is
We get cosets of odd order if and only if \(d_i|q_0\) for all \(i\). Hence we get
where
It follows that
Using Möbius inversion, we get
Substituting this expression in (23) we get
This completes the proof of Theorem 5.
For \(r=1\), the expression in (23) was given in [8, Theorem 2], in a slightly different notation. In the same theorem we determined \(\theta _{2,0,1}(q)\). For \(r>1\), the result is new.
Example 8
If \(q_0= p^a\), where \(p\) is a prime and \(a\ge 1\), the divisors of \(q_0\) are \(p^b\), \(b\in [0,a]\). If \(d=p^b>1\), then \(\mu (d/c)\ne 0\) for \(c\mid d\) exactly for \(c=p^a\) and \(c=p^{a-1}\). Since \(\mu (1)=1\) and \(\mu (p)=-1\), we get
In particular, if \(v_2\left( 2^{\ell _p}-1 \right) =1\), that is \(u_p=0\) (which is the situation in most cases), Lemma 5 implies that \(\ell _{p^b}=p^{b-1}\ell _p\) for all \(b\ge 1\). Hence, in this case we get
and for \(r>1\) we get
In particular,
and so \(\vartheta _1(p^r)<\vartheta _r(p)\). This is a special case of Lemma 10 below.
1.2 Proof of Theorem 8
The expressions for \(\omega _{2,0,r}(q)\) in Theorem 5 and \(\theta _{2,0,r}(q)\) in (12), and their proofs, are closely related. In the same way we will get closely related expressions and proofs for \(\omega _{2,2,r}(q)\) and \(\theta _{2,2,r}(q)\). For \(\theta _{2,2,1}(q)\), the expression in Theorem 8 was given in [9], in a slightly different notation. For general \(r\) we get a proof that generalizes its proof.
Consider the coset generated by a non-zero \(\mathbf{a}=(a_1,a_2,\ldots , a_r)\in \mathbb {Z}_q^r\). We first remark that if \(-\mathbf{a}\in \sigma (\mathbf{a})\), that is, \(\sigma (-\mathbf{a})=\sigma (\mathbf{a})\), then \(\left| \sigma (\mathbf{a})\right| \) is even: if \(u>0\) is minimal such that \(-\mathbf{a}=2^u\mathbf{a}\;(\mathrm{mod}\; q)\), then \(\left| \sigma (\mathbf{a})\right| =2u\).
The coset \(\sigma (\mathbf{a})\) has odd size if and only if \(\sigma (a_i)\), \(1\le i \le r\), all have odd size. In this case \(\sigma (\mathbf{a})\) and \(\sigma (-\mathbf{a})\) are disjoint, and the \((\left| \sigma (\mathbf{a})\right| +1)/2\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,(\left| \sigma (\mathbf{a})\right| -1)/2]\) will cover \(\sigma (\mathbf{a})\cup \sigma (-\mathbf{a})\), and the union cannot be covered by fewer elements. We select these elements in a covering set. Hence we get a contribution \((\left| \sigma (\mathbf{a})\right| +1)/4\) to \(\omega _{2,2,r}(q)\) from the coset \(\sigma (\mathbf{a})\) and \((\left| \sigma (\mathbf{a})\right| +1)/4=(\left| \sigma (-\mathbf{a})\right| +1)/4\) from the coset \(\sigma (-\mathbf{a})\). The number of such cosets is \(\vartheta _r(q_0)\) as was shown in the proof of Theorem 5.
If \(\left| \sigma (\mathbf{a})\right| \) is even, but \(\sigma (-\mathbf{a})\ne \sigma (\mathbf{a})\) (that is, the two sets are disjoint), then we select the \(\left| \sigma (\mathbf{a})\right| /2\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,\left| \sigma (\mathbf{a})\right| /2-1]\) to cover \(\sigma (\mathbf{a})\cup \sigma (-\mathbf{a})\). The contribution to \(\omega _{2,2,r}(q)\) from the cosets \(\sigma (\mathbf{a})\) and \(\sigma (-\mathbf{a})\) is therefore \(\left| \sigma (\mathbf{a})\right| /4+\left| \sigma (-\mathbf{a})\right| /4\).
Now, consider the situation when \(\sigma (-\mathbf{a})=\sigma (\mathbf{a})\). As before, let \(u>0\) be the minimal integer such that \(-\mathbf{a}=2^u\mathbf{a}\;(\mathrm{mod}\; q)\). If \(u\) is even, then the \(u/2=\left| \sigma (\mathbf{a})\right| /4\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,u/2-1]\) cover \(\sigma (\mathbf{a})\). Finally, if \(u\) is odd, then the \((u+1)/2=(\left| \sigma (\mathbf{a})\right| +2)/4\) elements \(2^{2i}\mathbf{a}\), \(i\in [0,(u-1)/2]\) cover \(\sigma (\mathbf{a})\). We see that \(u\) is odd if and only if \(\sigma (a_i)\) is singly even for all \(i\). In the proof of [9, Theorem 6], it was shown that this occurs exactly when \(a_i\in \mathbb {Z}_{q,d_i}\) for some \(d_i|q_1\). A proof similar to the proof in Appendix 10 shows that the number of such cosets is \(\vartheta _r(q_1)\). Summing over all the cosets, we get the expression in Theorem 8.
1.3 A result for \(\vartheta _r(q)\)
A simple, but useful relation is the following.
Lemma 7
If \(d_1|d_2\), then \( \ell _{d_1} \le \ell _{d_2}\).
Proof
By definition, \( d_2| 2^{\ell _{d_2}}-1\) and so \( d_1| 2^{\ell _{d_2}}-1\), which implies that \(\ell _{d_1} \le \ell _{d_2}\) (and in fact \( \ell _{d_1}|\ell _{d_2}\)). \(\square \)
We recall that \( \Phi _r(d) \) was defined by (24). This is a multiplicative function, as the following lemma shows.
Lemma 8
If \(\gcd (d_1,d_2)=1\), then \( \Phi _r(d_1d_2)= \Phi _r(d_1) \Phi _r(d_2)\).
Proof
If \(c|d_1d_2\), then \(c=c_1c_2\), where \(c_1|d_1\) and \(c_2|d_2\). Hence
\(\square \)
For a prime \(p\), define \( \Delta _r(p^\beta ) \) by
For convenience, we let \( \Delta (p^\beta )=\Delta _1(p^\beta )\).
Lemma 9
If \(p\) is a prime and \(\beta \ge 1\), then
Proof
We have
\(\square \)
We now give a main lemma on \(\vartheta _r(q)\).
Lemma 10
For all \(r\ge 2\) and odd \(q\) we have \(\vartheta _1(q^r)\le \vartheta _r(q) \).
Proof
By definition, \(\vartheta _r(q)=\sum _{d|q}\frac{1}{\ell _d} \Phi _r(d)\). Let \(q= \prod _{i=1}^{s}p_i^{\alpha _i} \) be the prime factorization of \(q\). The divisors of \(q^r\) are all numbers of the form \(\prod _{i=1}^{s}p_i^{\beta _i} \) where \(0\le \beta _i\le r\alpha _i\). Using Lemmas 8 and 9, we get
Hence
Similarly, we get
In order to compare the two expressions we note all the summands are non-negative, and of the form \(\prod _{i=1}^s \Delta (p_i^{\gamma _i})\). One can verify that the coefficient of \(\prod _{i=1}^s \Delta (p_i^{\gamma _i})\) in \(\vartheta _r(q)\) is
whereas its coefficient in \(\vartheta _1(q^r)\) is
Since \(\left\lceil \gamma _i/r \right\rceil \le \gamma _i\) we have
and so \(C_r\ge C_1\) by Lemma 7. Hence \(\vartheta _r(q)\ge \vartheta _1(q^r)\). \(\square \)
We illustrate the proof by a simple example.
Example 9
Let \(q=p^2\pi \) where \(p\) and \(\pi \) are distinct odd primes, and let \(r=2\). Then
and
For example, for \(\Delta (p^3)\Delta (\pi )\), the coefficients are \(1/\ell _{p^3\pi }\) and \(1/\ell _{p^2\pi }\) respectively, and \(\ell _{p^2\pi }\le \ell _{p^3\pi }\).
Rights and permissions
About this article
Cite this article
Kløve, T., Schwartz, M. Linear covering codes and error-correcting codes for limited-magnitude errors. Des. Codes Cryptogr. 73, 329–354 (2014). https://doi.org/10.1007/s10623-013-9917-1
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10623-013-9917-1