Some Properties of Channel Detecting Codes on Specific Domains

Jen-Tse Wang1, Cheng-Chih Huang2
1Department of Information Management, Hsiuping University of Science and Technology, Taichung, Taiwan 412
2Department of Computer Science and Information Engineering, National Taichung University of Science and Technology, Taichung, Taiwan 403

Abstract

This project aims at investigating properties of channel detecting codes on specific domains 1+0+. We focus on the transmission channel with deletion errors. Firstly, we discuss properties of channels with deletion errors. We propose a certain kind of code that is a channel detecting (abbr. γ-detecting) code for the channel γ=δ(m,N) where m<N. The characteristic of this γ-detecting code is considered. One method is provided to construct γ-detecting code. Finally, we also study a kind of special channel code named τ(m,N)-srp code.

Keywords: Channel codes, Error-correcting codes, Error-detecting codes

1. Introduction

The classical coding theory pays attention to substitution errors occurring when the messages are communicated through the transmission channel. In [1], an abstract channel with combinations of substitutions, deletions and insertions and its properties are discussed. Moreover, the authors [2] provide the concepts of singleton-detecting and (γ,)-detecting codes which can detect both synchronous and asynchronous errors when the finite-length messages are communicated through the transmission channel. Some concepts related to the error detecting property have been studied in [3],[4]. In this project, we first study the concept of γ-detecting codes which are applied for the infinite-length messages communicated in the transmission channel. Furthermore we consider some properties of γ-detecting codes. Next, we investigate some properties of the codes of the form 1n0n with n1 for the transmission channel δ(m,N) and propose one method to construct δ(m,N)-detecting code. Some properties of the special channel code named τ(m,N)-srp code are studied in the final section. We also find the maximal δ(m,N)-srp code on specific domains 1+0+.

2. Preliminaries

Let X be a finite alphabet and let X be the free monoid generated by X. The set of natural numbers is denoted by . Any element of X is called a word. The length of a word w is denoted by lg(w). Any subset of X is called a language. Let X+=X{λ}, where λ is the empty word. The concatenation of two words w and v over X is denoted by wv. For each positive integer n and LX, the notation Ln={u1u2un| uiL,1in}. Let L0={λ}. Then Xn={wX| lg(w)=n}. The set consisting of all infinite sequences of nonempty words of L is denoted by Lω={u1u2ui| uiLL0,i1}. Let L=LLω, where L=n=0Ln. Note that LLω=.

Let YX. If yYω, then a factorization of y over Y is an element (y1,y2,,yn,) of the countably infinite Cartesian product of Y, denoted by ΠY, for which y=y1y2yn. If yY+, then a factorization of y over Y with order n is an ordered n-tuple (y1,y2,,yn) such that yiY,1in, and y=y1y2yn. A factorization of yY+ over Y is a factorization of y over Y with some order n.

A channel γ over X is a subset of the Cartesian product X×X. An element (y,y)γ means that for an input y, the channel could output y. A channel is noiseless if γ{(y,y)|yX}. Otherwise, it is noisy. Denote by π2 the projection onto the second coordinate, which is defined by π2(y1,y2)=y2 for every (y1,y2)X×X. For γX×X, this notation can be extended to π2(γ)=yX{yX|(y,y)γ}. Thus yγ is the set of all possible outputs of with respect to the input y. Given a subset Y of π2(γ), we define Yγ=yYyγ to be the γ-spanned set of Y.

Three basic error types σ,ι, and δ indicate substitutions, insertions, and deletions, respectively. For a natural number N and a nonnegative integer m with mN, γ(m,N) denotes that at most m errors of type γ can occur in any consecutive N symbols in a channel, where γ may be σ,ι,δ, or their combinations. Note that (see [5]) for a nonempty word w with lg(w)=n where nN, wγ(m,N)={wγ(m,n),if Nnm;wγ(n,n),if m>n. For instance, 1100δ(1,4)={1100,100,110}=1100δ(1,5) and 1100δ(1,3)={1100,100,110,10}. Items not defined in this project can be found in ([6],[5]).

Remark 1. Let N2N1N for some nature numbers N,N1,N2. Then wδ(1,N2)wδ(1,N1) where lg(w)=nN.

Definition 1. Let γ be a channel. A code CX+ is detecting for γ or γ-detecting, if the following condition is satisfied : for all wC, Cwγ={w}.

From the above definition of the channel detecting code, we have that if the code C is called channel detecting, then for all w1,w2C with w1w2, w1w2γ for channel γ. For instance, let C={1204,1606}, w1=110000(1606)ω,w2=110000110000(1606)ωC. It is clear that w1w2, but w1w2γ where γ=δ(3,4) because w1 can be obtained from w2=110_00011_0000_(1606)ω after deleting the underlined symbols. Then C is not δ(3,4)-detecting code.

3. Properties of Channel Detecting Codes

In this section, the channel with deletion errors is considered. We consider the case γ=δ(m,N) where m<N. The case γ=δ(m,N) where mN is omitted because there does not exist such a γ-detecting code. First, we study the sufficient conditions of γ-detecting code. For instance, let X={0,1}, C={1204} and γ=δ(6,10). Let w1=(1204)4 and w2=(1204)5. Then w1w2 for w1,w2C. We have w1w2γ. This implies that C is not γ-detecting.

Remark 2. Let C={w} and γ=δ(m,N) where m<N. If  lg(w)m, then C is not γ-detecting.

Proof. Suppose that C is γ-detecting. Let wk,wk+1C for some k1. Then wkwk+1. Since lg(w)m, by the definition of channel detecting code, wkwk+1γ, a contradiction. Thus C is not γ-detecting. ◻

Remark 3. Let γ=δ(m,N) where m<N. Let C be a γ-detecting code with Nmax{lg(w)| wC}. If there exist p,qX such that w,pwqC, then pq=λ or lg(pq)>m.

Proof. Let C be a γ-detecting code. Suppose that there exist w,pwqC such that u=pwq for some p,qX with 1lg(pq)m. Since Nmax{lg(w)|wC}, we have wuγ. This contradicts that C is a γ-detecting code. ◻

Lemma 1. Let X={0,1} and w1=1i0i, w2=1j0j where i,j and j>i. Let γ=δ(m,N) where m<N and t=lg(w2)N. Then w1w2γ if and only if lg(w2)lg(w1)tm+min{m,lg(w2)tN}.

Proof. Let w1=1i0i, w2=1j0j where i,j and j>i. Let t=lg(w2)N. Then tlg(w2)N<t+1. It follows that tNlg(w2)<tN+N. We have w2=1j0j=a1atNa2j, where ak{0,1} for 1k2j. First, we consider to delete m digits from asN+1asN+N whenever 0s<t. Then the total tm digits are deleted from 1j0j. Secondly, the min{m,lg(w2)tN} digits are deleted from atN+1a2j. Thus for any word w1=1i0i with i<j, the condition lg(w2)lg(w1)tm+min{m,lg(w2)tN} implies that w1w2γ. By an analogous proof, the condition lg(w2)lg(w1)>tm+min{m,lg(w2)tN}, implies that w1w2γ◻

Corollary 1. Let γ=δ(m,N) where m<N. Then akajγ with jk for some aX and k,j if and only if kj(tm+min{m,jtN}) where t=jN.

We study the relationship between words which have the form 1s10s21j0jγ with s1,s2 and words which have the form 1i0i1j0jγ with i where j for the channel γ=δ(m,N) where m<N. For instance, let γ=δ(1,3). Then 1505γ={1s10s2| 3s15, 3s25}. It is clear that 10, 12021505γ.

Lemma 2. Let X={0,1} and w1=1i0i, w2=1s10s2, w3=1j0j where i,j,s1,s2 and j>i. Let γ=δ(m,N) where m<N. If w1w3γ and w2w3γ, then s1,s2>i.

Proof. Let γ=δ(m,N) where m<N and t=lg(w3)N. We consider w1w3γ and w2w3γ. As w2w3γ, by Lemma 1, we have lg(w3)lg(w2)tm+min{m,lg(w3)tN}. Since w1w3γ, by Lemma 1 again, we have lg(w3)lg(w1)>tm+min{m,lg(w3)tN}. It follows that lg(w3)lg(w2)<lg(w3)lg(w1). Thus lg(w1)<lg(w2). We have 2i<s1+s2. There are the following cases:

  1. is1. By corollary 1, we have s1j(tm+min{m,jtN}) and i<j(tm+min{m,jtN}) where t=jN. It follows that s1>i, a contradiction.

  2. i<s1 and is2.

As is2, the proof is similar to case (1). It follows that s2>i, a contradiction. From case (1) and case (2), we have s1,s2>i◻

Lemma 3. Let X={0,1} and w1=1i0i, w2=1j0j where i,j and j>i. Let γ=δ(m,N) where m<N and k=lg(w1)Nm. Then the following statements are true:

  1. w1w2γ when lg(w2)lg(w1)+(k+1)m.

  2. w1w2γ when lg(w2)lg(w1)+(k+1)m+1.

Proof. Let w1=1i0i, w2=1j0j where i,j and j>i. Let t=lg(w2)N. Then tlg(w2)N<t+1. It follows that (1)tNlg(w2)<(t+1)N. Let k=lg(w1)Nm. We consider the following cases:

  1. lg(w2)lg(w1)+(k+1)m. Since k=lg(w1)Nm, we have klg(w1)Nm<k+1. It follows that (2)k(Nm)lg(w1)<(k+1)(Nm). This in conjunction with lg(w2)lg(w1)+(k+1)m yields that lg(w2)<(k+1)(Nm)+(k+1)m=(k+1)N. By Eq. (1), we have tlg(w2)N. Thus tNlg(w2). This in conjunction with lg(w2)<(k+1)N yields that t<(k+1); hence tk. By Lemma 1, we want to show that lg(w2)tmmin{m,lg(w2)tN}lg(w1). It will imply that w1w2γ. We consider the following subcases:

    • (1-1)lg(w2)tN<m. We have lg(w2)tmmin{m,lg(w2)tN}=lg(w2)tm(lg(w2)tN)=t(Nm)k(Nm). This in conjunction with Eq. (2) yields that lg(w2)tmmin{m,lg(w2)tN}lg(w1).

    • (1-2)lg(w2)tNm. We have lg(w2)tmmin{m,lg(w2)tN}=lg(w2)tmm=lg(w2)(t+1)m. From Eq. (1), we have lg(w2)<(t+1)N. It follows that lg(w2)(t+1)m<(t+1)N(t+1)m=(t+1)(NM)k(NM)lg(w1) whenever t<k. If t=k, then lg(w2)(t+1)m=lg(w2)(k+1)m. This in conjunction with lg(w2)lg(w1)+(k+1)m yields that lg(w2)tmmin{m,lg(w2)tN}lg(w1).

      Therefore, we showed that lg(w2)tmmin{m,lg(w2)tN}lg(w1). Thus w1w2γ.

  2. lg(w1)+(k+1)m+1lg(w2). From Eq. (2), we have k(Nm)lg(w1). This in conjunction with lg(w1)+(k+1)m+1lg(w2) yields that k(Nm)+(k+1)m+1lg(w1)+(k+1)m+1lg(w2). Thus kN+m+1lg(w2). By Lemma 1, we want to show that lg(w2)tmmin{m,lg(w2)tN}>lg(w1). We consider the following subcases:

    • (2-1)lg(w2)tNm. We have kN+m+1lg(w2)tN+m. This implies that k<t. Since lg(w2)tNm, we have lg(w2)tmmin{m,lg(w2)tN}=lg(w2)tm(lg(w2)tN)=t(Nm). This in conjunction with k<t yields that t(Nm)(k+1)(Nm). From Eq. (2), we have lg(w1)<(k+1)(Nm). Hence lg(w2)tmmin{m,lg(w2)tN}>lg(w1).

    • (2-2)lg(w2)tN>m. Since kN+m+1lg(w2), this in conjunction with Eq. (1) which lg(w2)<(t+1)N yields that kN+m+1<(t+1)N=tN+N. Note that m<N. This implies that kt. Since lg(w2)tN>m, we have lg(w2)tmmin{m,lg(w2)tN}=lg(w2)tmm and lg(w2)>tN+m. It follows that lg(w2)tmm>tN+mtmm=t(Nm). If t>k, then t(Nm)(k+1)(Nm). From Eq. (2), lg(w2)tmmin{m,lg(w2)tN}<(k+1)(Nm). We have lg(w2)tmmin{m,lg(w2)tN}>lg(w1). If t=k, then lg(w2)tmm=lg(w2)kmm. Since lg(w1)+(k+1)m+1lg(w2), we have lg(w2)kmmlg(w1)+(k+1)m+1kmm=lg(w1)+1>lg(w1).

      Therefore, we showed that lg(w2)tmmin{m,lg(w2)tN}>lg(w1). Thus w1w2γ.

 ◻

We extend the concept of the above Lemma 2 and Lemma 3. We have the following lemma.

Lemma 4. Let X={0,1} and w1=1i0i, w2=1s10s2, w3=1j0j where i,j,s1,s2 and j>i. Let γ=δ(m,N) where m<N and k=lg(w1)Nm. If w2w3γ and lg(w3)lg(w1)+(k+1)m+1, then s1,s2>i.

Proposition 1. Let X={0,1}, C{1n0n| n}, and γ=δ(m,N) where m<N. Let k=min{ lg(w)| wC} and k>m. If the following conditions hold:

  1. for w1,w2C with lg(w2)>lg(w1),  lg(w2)>lg(w1)+(lg(w1)Nm+1)m;

  2. for w3,w4C with lg(w3)lg(w4),  {w3}ww4ww3γ= where lg(w)=k,

then C is γ-detecting.

Proof. Assume that there exist u,vC such that uvγ. Let u=u1u2ui and v=v1v2vj, where ui,vjC and i,j. Now we consider the first subword u1 of u such that u1v1v2vkγ where k1. By Lemma 3, the statement (1) implies that uivjγ for some i,j. It follows that uixvjyγ where x,yC. Indeed, if uixvjyγ, then we have lg(xvjy)lg(ui)(lg(w1)Nm+1)m<lg(vj)lg(ui), a contradiction. Therefore, u1v1v2vkγ implies that lg(u1)lg(vi) for all 1ik. Let k=min{ lg(w)| wC} and k>m. We consider the following cases:

  1. 2m<k.

    From the definition of the channel with deletion errors, we have 1sCγ and 0tCγ where s,t. Thus for u1v1v2vkγ, we have u1v1γ. Note that if lg(u1)>lg(v1), then u1v1γ. This in conjunction with lg(u1)lg(v1) yields that u1=v1.

  2. 2mk. Let lg(w)=k where wC. From the the statement (1), we have lg(w)>lg(w)+(lg(w)Nm+1)m for some wC{w}. This in conjunction with lg(w)m yields that lg(w)>m+(lg(w)Nm+1)m>2m. Then we have 1sCγwγ and 0tCγwγ where s,t. Now we consider u1v1v2vkγ with lg(u1)lg(vi) for all 1ik. If k=1, then we have u1v1γ. By the similar proof used in case(1), we have u1=v1. If k>1, then we can assume that u1=1p1m0n0q where p,q,m,n{0} such that 1pwγ, 1m0nviγ where 1ik, and 0qwγ. There are the following subcases:

    • (2-1) m=0 or n=0 or m=n=0.

      Since 1sCγwγ and 0tCγwγ where s,t, this in conjunction with u1v1v2vkγ yields that u1wwwγ=wwwγ. This result contradicts the statement (2).

    • (2-2) p=0 and q0.

      We have u1=1m0n0q. Since u1v1v2vkγ, this implies that u1viwwγ=wviwγ. This result contradicts the statement (2).

    • (2-3) p0 and q=0.

      We have u1=1p1m0n. Since u1v1v2vkγ, this implies that u1wwviγ=wviwγ. This result contradicts the statement (2).

    • (2-4) p=0 and q=0.

      We have u1=1m0n. Then u1v1γ. This implies that u1=v1.

    • (2-5) p0 and q0.

      We have u1=1p1m0n0q. Since u1v1v2vkγ, this implies that u1wwviwwγ=wviwγ. This result also contradicts the statement (2).

Therefore, we can conclude that for u1v1v2vkγ with k1, we have u1v1γ and u1=v1. By similar discussion, we can conclude the results that u2=v2, u3=v3, . Thus uvγ implies that u=v and C is γ-detecting. ◻

4. A Construction of Channel Detecting Codes

Let γ=δ(m,N) for any given 1m<N. In this section, we provide a method to construct γ-detecting code which is the subset of {1n0n|n1}.

 

Proposition 2. Let X={0,1} and γ=δ(m,N) where m<N. Let C={w} where w=1s10s2 for some s1,s2. Then ww2γ implies that C is γ-detecting.

Proof. Suppose that C is not γ-detecting. There exist w1,w2C,w1w2 such that w1w2γ. Without loss of generality, we can assume that ww1=w and ww2=w{w} such that ww1ww2γ where ww1 and ww2 are subwords of w1 and w2 respectively. Now we consider ww{w}γ. There exist uw2γ and vwγ such that w=uv. Since w=1s10s2, it follows that u=1i10i2 for some 0i1s1 and 0i2s2. This in conjunction with the definition of the transmission channel γ=δ(m,N) yields that {1j10j2w2| i1j1s1, i2j2s2}. This implies that ww2γ, a contradiction. Thus C is γ-detecting. ◻

In the following we define a function for constructing the γ-detecting code where γ=δ(m,N). A function fγ: is defined as fγ(1)=m+1 and fγ(k+1)=fγ(k)+(2fγ(k)Nm+1)m+12 for k.

For instance, let γ=δ(1,4). Then fγ()={2,4,6,9,13,}. We have 1606γ={1s10s2| 4s16,4s26}{1404} and 1404γ={1s10s2| 3s14,3s24}. Note that 12021404γ.

 

Proposition 3. The code C={1fγ(k)0fγ(k)k} is γ-detecting where γ=δ(m,N).

Proof. Let X={0,1}, γ=δ(m,N), and C={1fγ(k)0fγ(k)k}. We take w1=1fγ(i)0fγ(i) and w2=1fγ(j)0fγ(j) with j>i where i,j. It follows lg(w2)lg(w1)=2(fγ(j)fγ(i))2(fγ(i+1)fγ(i))=2(2fγ(i)Nm+1)m+12(2fγ(i)Nm+1)m+1>(2fγ(i)Nm+1)m. By Lemma 3, we have w1w2γ. By Proposition 3, it follows that C is γ-detecting. ◻

5. A Special kind of Channel Code

In this section, we study a special kind of channel code. Let τ={δ,σ,ι} and let γ be a channel of the form τ(m,N) where m<N. We consider the following properties from [5]. For a language LX+, let Pref(L)={xX+| xXL}, and Ls={yX+| XLyL}. A language LX+ is called strongly residue preventive if Pref(L)Ls=. For instance, let L={ab,a2ba}. Then Pref(L)={a,ab,a2,a2b,a2ba} and Ls={a}. Since aPref(L)Ls, L is not strongly residue preventive. A language L is an τ(m,N)-srp code [5] if Lτ(m,N) is strongly residue preventive. For instance, let X={0,1}, γ=δ(1,4). We take w=13021+0+. Then wγ={1302,130,1202,120}. It follows that (wγ)s={0} and Pref(wγ)={1,12,13,130,1302,120,1202}. Thus Pref(wγ)(wγ)s=. We study the characteristic of τ(m,N)-srp code in the following proposition. For L1,L2X+, L11L2={xX+|L1xL2}. and L2L11={xX+|xL1L2}.

Proposition 4. Let X={0,1} and γ=τ(m,N) where m<N. Let LX+. Then L is an τ(m,N)-srp code if and only if D1DDD1= where D=Lγ.

Proof. Let X={0,1} and γ=τ(m,N) where m<N. Let L is an τ(m,N)-srp code and D=Lγ. Suppose that D1DDD1. There exists xX+ such that u=w1x and v=xw2 for some u,v,w1,w2D. Since v=xw2, we have xpvD. It follows that xPref(D). Since u=w1x, we have xDs. Thus xPref(D)Ds, a contradiction. Conversely, suppose that L is not an τ(m,N)-srp code. There exists xX+ such that xPref(D)Ds. This implies that D1DDD1, a contradiction. Thus L is an τ(m,N)-srp code. ◻

Proposition 5. Let X={0,1} and γ=δ(m,N) where m<N. There exist p,qZ with p1 and q0 such that 1m+p0m+q is an δ(m,N)-srp codeword.

Proof. Let X={0,1} and γ=δ(m,N) where m<N. Let L1+0+ be an δ(m,N)-srp code and D=Lγ. Suppose that 1m+p0m+q is an δ(m,N)-srp codeword where p,qZ with p1 and q0. If p0, then we have 1m+p0m+q,1m+p0m+q1,0m+qD. This implies that 0Pref(D)Ds, a contradiction. If q<0, then we have 1m+p,1m+p1Ds. This implies that 1Pref(D)Ds, a contradiction. Thus 1m+p0m+q is an δ(m,N)-srp codeword with p1 and q0◻

Proposition 6. Let X={0,1} and γ=δ(m,N) where m<N. The language L={1m+p0m+q| p1,q0} is a maximal δ(m,N)-srp code on 1+0+.

Proof. Let X={0,1} and γ=δ(m,N) where m<N. It is sufficient to show that L{w} is not δ(m,N)-srp code for any w1+0+L. If a word w1+0+L, then w=1k,w=0k,w=1mp10k,w=1k0mq1 for some k1,p10,q11. We consider the following cases:

  1. w=1k. Let L={w=1k|k1} and D=Lγ. We have 1k,1kmD. This implies that 1Pref(D)Ds, a contradiction.

  2. w=0k. This case is similar to case (1). We get 0Pref(D)Ds where D={w=0k|k1}γ, a contradiction.

  3. w=1mp10k. Let L={w=1mp10k|k1,p10} and D=Lγ. We have 0kk1D for some k10. This implies that 0Pref(D)Ds, a contradiction.

  4. w=1k0mq1. Let L={w=1k0mq1|k1,q11} and D=Lγ. We have 1kk2D for some k20. This implies that 1Pref(D)Ds, a contradiction.

 ◻

Acknowledgement

The authors would like to thank the referees for their careful reading of the manuscript and useful suggestions.

Conflict of Interest

The authors declare no conflict of interest

References:

  1. Konstantinidis, S., 1999. Structural analysis of error-correcting codes for discrete channels that involve combinations of three basic error types. IEEE Trans. Inform. Theory, 45(1), pp.60–77.
  2. Jurgensen, H. and Konstantinidis, S., 1996. Error correction for channels with substitutions, insertions, and deletions. Lecture Notes in Comput. Sci. 1133, Springer-Verlag, pp.149–163.

  3. Konstantinidis, S. and O’Hearn, A., 2002. Error-detecting properties of languages. Theoretical Computer Science, 276, pp.355–375.
  4. Konstantinidis, S. and Silva, P.V., 2008. Maximal error-detecting capabilities of formal languages. Journal of Automata, Languages and Combinatorics, 13, pp.55–71.

  5. Hsiao, H. K., Lin, H. H. and Yu, S. S., 2010. The Decodability and Correctability of Codes. International Journal of Computer Mathematics, 87(7), pp.1456–1468.

  6. Berstel, J. and Perrin, D., 1985. Theory of Codes. Academic Press.