Given a discrete source {Xiā}i=1āā with alphabet X and given a D-ary code alphabet B={0,1,āÆ,Dā1}, Dā„2 fixed integer, a D-ary n-th order variable-length code (VLC) for the source is a map f:XnāBāmapping source n-tuples to D-ary codewords of variable lengths, where Bā=\mboxsetofallfiniteālengthstringsfromBcāBāāŗāĀ lā„1\mboxs.t.cāBlāThe codebook C of the VLC is the set of all codewords C=f(Xn)={f(xn)āBā:xnāXn}