Definition (VLC)
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∈BlThe codebook C of the VLC is the set of all codewords C=f(Xn)={f(xn)∈B∗:xn∈Xn}