Let C be a D-ary n-th order VLC f:Xnā{0,1,āÆ,Dā1}āfor a discrete source {Xiā}i=1āā with alphabet X and joint pmfs {pXnā} and let l(cxnā) denote the length of codeword cxnāā:=f(xn) associated with source n-tuple xnāXn. Then the average codeword length for C is given by l:=E[l(cXnā)]=xnāXnāāpXnā(xn)l(cxnā)and its average code rate is given by R:=nlā=n1āxnāXnāāpXnā(xn)l(cxnā)