Académique Documents
Professionnel Documents
Culture Documents
Abstract
email:bernhard@mathematik.uni-bielefeld.de
email:lk@mathematik.uni-bielefeld.de
1
1 BASIC DEFINITIONS
1 Basic Denitions
For a nite set X = f0 : : : a ; 1g, called alphabet, we form X n =
Qn X ,
S1 X n, the set of
1
Y w = fyw 2 X : y 2 Yg
YZ = fyz 2 X : y 2 Y z 2 Zg
and
Y w;1 = fz 2 X : zw 2 Yg:
A set of words C X is called a code.
XN a;` = 1:
i
i=1
2 THE EXISTENCE
2 The Existence
PN
PN
cN +1 = x` y` :
N
l (Z ) =
l(z):
z2Z
usual way).
We count now all leaves of this tree in the `N 'th level, which have one of
the codewords as a prex or as a sux. (The shadow of the code in the
`N 's level.)
2 THE EXISTENCE
For each codeword ci of length `i we thus count a`N ;`i leaves, which have
ci as a prex and also a`N ;`i leaves, which have ci a sux. These sets need
NP
;1
not be distinct. However, their total number does not exceed 2 a`N ;`i .
i=1
By our assumption this is smaller than a`N and there is a leaf on the `N 's
level, which was not counted. The corresponding word can serve as our
N {th codeword.
We dene now as the largest constant such that for every integral tuple
PN
(`1 `2 : : : `N ) 2;`i < implies the existence of a binary x{free code
i=1
with lengths `1 `2 : : : `N .
Lemma 3
3
4
Proof: For any = 34 + " " > 0, choose k such that 2;k < ". For the
vector (`1 : : : `N ) = (1 k : : : k) with N = 2k;2 + 2 we have
i=1
PN
(2.1)
Then 2;`i 34 implies the existence of a binary x{free code with these
i=1
codeword lengths.
`1 `2 : : : `N :
Obviously the result is true, if there is only one length, that is, n = 1.
Assuming that we can construct a code with n ; 1 dierent codeword
lengths we show that we can construct a code with n dierent codeword
PM
lengths. Let M be the largest index i with `i < `N . Thus 2;`i 43
i=1
2 THE EXISTENCE
j` (C 0 )j = 2
N
M
M
X
X
X
2` ;` ; 2` ; ` ; 2
N
i=1
i<j M
i=1
(2.2)
j` (C 0)j 2` ; (N ; M ):
N
PM
(2.3)
PN
H (P ) L(C ) < H (P ) + 2:
Proof: The left{hand side of the theorem is clearly true, because each x
{ free code is a prex code and for each prex code the left{hand side of
the theorem follows from the Noiseless Coding Theorem. It is also clear,
that this lower bound is reached for N = 2m (m 2 N ) and P (i) = 2;m for
all 1 i 2m .
The proof of the right{hand side of the Theorem is the same as the proof
for alphabetic codes, which can be found in 1]:
3 ON COMPLETE FIX{FREE{CODES
N
N
X
1
1:
1X
log(P (i))
2
=
P
(
i
)
=
2 i=1
2 i=1
2
i=1
By Lemma 2 there exists a x { free code C with the codeword lengths
`1 : : : `N .
The average length of this code is
XN 2;`
L(C ) =
i=1
i=1
= H (P ) + 2
PN P (i) = H (P ) + 2
i=1
where the logarithm is taken to the base 2. For an arbitrary alphabet the
proof follows the same lines.
3 On Complete Fix{Free{Codes
3.1 Auxiliary Results
g:
d , wmax
min
f
m
:w
:
:
:
w
2
C
|
{z
}
+
m
2
N
2X
m
(ii) There is only a nite number of nite complete x{free codes over X
with degree d.
3 ON COMPLETE FIX{FREE{CODES
(iii) If the length of the shortest codeword is d, then the length of every
codeword is d as well.
words which dier from c only in the rst and/or last components. Hence
the set of codewords of maximal length is a disjoint union of equivalent
classes each of cardinality a2 .
2
Lemma 6 For each binary complete x { free code C there is at most one
codeword of length 2 or all codewords have length 2.
bin;1(c0 0) and bin;1(0c) < 1 + 2bin;1 (c0 ) = bin;1 (c0 1) hold, since c is
the element of E with smallest bin;1 (c). Hence j k+1 (E ) j 2 j E j +1 if
j E j< 2k .
2
`2 : : : `N = k + 2. Then
3 ON COMPLETE FIX{FREE{CODES
Proof :
X 2;jcj
c2C2
>
=
X 2;jcj + X 2;jcj
c2 CnC 0+2
X 2;jcj + c2DX 2;jcj
c2 CnC 0+2
c2C 0+2
X
2;jcj = 1:
(
c2C
'$
&%
3 ON COMPLETE FIX{FREE{CODES
(1 1 1 1)
;u
;
;
@@u (1 1 1 0)
@
;
@@
;
;(1 0 1 1) u
@
u (1 1 0 1) @
;
;
@
;
@
; @@@ ;;; @
;
@
;
@
;
@@
; ((((((@h;u hhhhh @
;
(0 1 1 0)
hh@h@hhhh @
;(((((;(;((
;
h0) @(h@(hu (1 1 0 0)
;h(uh(h((0h 1h 0 1) ;u
@
u(1 0h
1 (
(
(
@@ hh@h@hhhh
(;(;(( ;;;
(
(
(
(1
0
0
1)
h
(
h
(
@
hhhu(((
@@
@@
; ; ;;
;
@
@@ ; @
;
@@
;
;
;
@
;
@
;
u
u
;
@
(0 1 0 0)
@ (0 0 1 0)
;
@@
;
@
;;
@@
;
u
u;(1 0 0 0)
(0 0 0 1)
@@
;;
@@;u ;
(0 1 1 1)
(0 0 1 1)
;;@@
'$
&%
(0 0 0 0)
A subset A V n is called independent, if no two vertices of A are connected, and we denote by I (Bn) the set of all independent subsets of the
deBruijn network. We note, that for all b 2 f0 1g, (b b : : : b) 62 A 2 I (Bn),
because (b b : : : b) is dependent itself. The independence number f (n) of
Bn is f (n) = maxn j A j.
A2I (B
3 ON COMPLETE FIX{FREE{CODES
10
theoretical problem:
For given m 2 N , nd a set S = f1 a1 < : : : < as < mg of maximal
cardinality, for which fai 2ai 2ai +1 ai + mg\faj 2aj 2aj +1 aj + mg =
holds for all 1 i < j j S j.
In the case m = 2n we have exactly the problem of nding a maximal
independent set with cardinality f (n) in the deBruijn network. Hence we
solve this problem (for m = 2n ) asymptotically.
Theorem 3
lim f2(nn) = 21 :
Proof : Let A 2 I (Bn) with j A j= f (n). Clearly f (n) < 2n;1 , because
for an xn 2 A:
n!1
1 bin;1 (xn ) < 2bin;1 (xn ) < 2bin;1 (xn )+1 < bin;1 (xn )+2n
2n+1 ; 1
8<
9=
2
2
X
X
S n = :xn 2 f0 1gn : x i > x i;
i
i
8<
9=
2
2
X
X
S n = :xn 2 f0 1gn : x i < x i;
:
i
i
n
and
=1
=1
=1
=1
4 COMPUTER RESULTS
11
n
2 n
X
:
=
=
n
i=0
jS0 j = 1 .
, and nlim
2
2n
2
!1
n
n
It is easely seen that S0 2 I (B ) and we set An = S0n .
Hence j S n j=
0
2n
n
2
4 Computer Results
4 COMPUTER RESULTS
Necessary d = 1, because in case d = 0,we have e = 0, for otherwise,
the codeword 01 would be sux. However, 00 is
excluded, because otherwise 000 or 100 would be sux.
c = 0, because for c = 1 we get 110 or 111 as sux.
b = 1, because for b = 0 we get 000 or 100 as prex.
Finally a 6= 0, because for a = 0 we get 01 as prex.
and a 6= 1, because for a = 1 we get 110 as prex.
2
This is a contradiction.
3.) We present an example of a complete binary x { free code for each
possible length{distribution L with j L j 29:
0 1
2: 2x1
01 00 10 11
4: 4x2
000 001 010 011 100 101 110 111
8: 8x3
01
000 100 110 111
0010 1010 0011 1011
9: 1 x 2 + 4 x 3 + 4 x 4
0000 1000 0100 1100 0010 1010 0110 1110
0001 1001 0101 1101 0011 1011 0111 1111
16 : 16 x 4
001
0000 1000 0100 1100 1010 0110 1110
0101 1101 1011 0111 1111 00010 10010 00011
10011
17 : 1 x 3 + 12 x 4 + 4 x 5
001
110
0000 1000 0100 1010 0101 1011
0111 1111 01100 11100 00010 10010 01101 11101
00011 10011
18 : 2 x 3 + 8 x 4 + 8 x 5
001
100
0000
1010 0110 1110 0101 1101
1011
0111
1111
01000 11000 00010 00011 010010
110010 010011 110011
19 : 2 x 3 + 9 x 4 + 4 x 5 + 4 x 6
001
100
101
0000
0110 1110 0111 1111
01000 11000 00010 01010 11010 00011 01011 11011
010010 110010 010011 110011
20 : 3 x 3 + 5 x 4 + 8 x 5 + 4 x 6
001
010
011
0000
1000
1100
1110
1101
1111
10100 10110 10101 10111 000100 100100 000110
100110 000101 100101 000111 100111
21 : 3 x 3 + 6 x 4 + 4 x 5 + 8 x 6
12
4 COMPUTER RESULTS
13
01
0000 1000
1100
1110
1111
00100 10100
00010 10010 11010 00110 10110 00011 10011 11011
00111 10111 001010 101010 001011 101011
22 : 1 x 2 + 5 x 4 + 12 x 5 + 4 x 6
001
100
110
0000
1010
0101
1011
0111
1111
01000 00010
01101
11101
00011
011000 111000
010010 010011 0110010 1110010 0110011 1110011
22 : 3 x 3 + 6 x 4 + 5 x 5 + 4 x 6 + 4 x 7
01
0000
1000
1100
1110
0011
1111
00100
10100 00010 10010 11010 10110 11011 10111 001010
101010 000110 100110 001011 101011 000111 100111
23 : 1 x 2 + 6 x 4 + 8 x 5 + 8 x 6
01
0000
1000
1100
0010
1110
1111
10100
11010 00110 10110 00011 10011
11011
00111
10111
000100 100100 101010 101011 0001010 1001010 0001011 1001011
24 : 1 x 2 + 6 x 4 + 9 x 5 + 4 x 6 + 4 x 7
001
100
110
101
0000
0111
1111
01000
00010 01010 00011 01011 011000 111000 010010 011010
111010 010011 011011 111011 0110010 1110010 0110011 1110011
24 : 4 x 3 + 3 x 4 + 5 x 5 + 8 x 6 + 4 x 7
01
0000
1000
1100
0010
1110
0011
1111
10100
11010 10110 11011 10111 000100 100100 101010
000110 100110 101011 000111 100111 0001010 1001010 0001011
1001011
25 : 1 x 2 + 7 x 4 + 5 x 5 + 8 x 6 + 4 x 7
01
100
0000
1110
1111
11000 00010
11010
00110
10110
00011 11011 00111 10111 001000 101000
110010 001010 101010 110011 001011 101011 0010010 1010010
0010011 1010011
26 : 1 x 2 + 1 x 3 + 3 x 4 + 9 x 5 + 8 x 6 + 4 x 7
10
0000
0100
0001
1101
0011
0111
1111
11000
01100
11100
11001
00101
01011
001000 001001
010101
011011
111011
0101000 0101001 0110101 1110101 01101000
11101000 01101001 11101001
27 : 1 x 2 + 7 x 4 + 6 x 5 + 5 x 6 + 4 x 7 + 4 x 8
10
001
0000
1101
0111
1111
01000
11000
01100
11100
00011
01011
000100 010100 000101 010101
010011 110011 011011 111011 0100100 1100100 0110100 1110100
0100101 1100101 0110101 1110101
28 : 1 x 2 + 1 x 3 + 4 x 4 + 6 x 5 + 8 x 6 + 8 x 7
REFERENCES
10
0000
0100
1100
0001
1101
1111
00101
01011
001000
011000 111000
111001
010101
011011
111011
0101000 0101001
01101000 11101000 01101001 11101001
28 : 1 x 2 + 8 x 4 + 2 x 5 + 9 x 6 + 4 x 7 + 4 x 8
10
001
0000
1100
0111
1111
11101
00011
01011
11011
011000
111000
110100 000101
010101
110101
010011
0100100
1110011 01100100 11100100 01100101 11100101
29 : 1 x 2 + 1 x 3 + 4 x 4 + 6 x 5 + 9 x 6 + 4 x 7 + 4 x 8
References
1] R. Ahlswede and I. Wegener, Suchprobleme,
Teubner, Stuttgart, 1979.
2] R.B. Ash, Information theory,
Interscience Tracts in Pure and Applied Mathematics 19,
Interscience, New York, 1965.
3] Jean Berstel and Dominique Perrin,
Theory of codes, Pure and Applied Mathematics, 1985.
4] David Gillman and Ronald L. Rivest,
Complete variable { length x { free { codes,
Designs, Codes and Cryptography, 5, 109{114, 1995.
1995 Kluwer Academic Publishers, Boston.
Manufactured in The Netherlands.
5] C.E. Shannon, Prediction and entropy of printed English,
Bell Systems Technical Journal 30, 50{64, 1951.
14
0011
0111
001001 011001
0110101 1110101
01000
01101
000100 010100
0100101 0110011