Consider a source with alphabet X={a1ā,āÆ,aMā} and symbol probabilities p1ā,āÆ,pMā such that p1āā„āÆā„pMā>0Consider the reduced source with alphabet Y obtained from X by combining the two least likely source symbols aMā1ā and aMā into an equivalent symbol aMā1,Mā with probability pMā1,Mā: Y={a1ā,āÆ,aMā2ā,aMā1,Mā}Let C2ā, given by f2ā:Yā{0,1}ā, be an optimal prefix code for the reduced source Y. Now, construct a code C1ā,Ā f1ā:Xā{0,1}ā, for the original source X as follows: - The codewords for symbols a1ā,āÆ,aMā2ā are exactly the same as the corresponding codewords in C2ā:f1ā(aiā)=f2ā(aiā),Ā i=1,āÆ,Mā2 - The codewords for symbols aMā1ā and aMā are formed by appending a ā0ā and a ā1ā, respectively, to the codeword f2ā(aMā1,Mā)āC2ā for symbol aMā1,Mā:f1ā(aMā1ā)f1ā(aMā)ā=f2ā(aMā1,Mā)0=f2ā(aMā1,Mā)1āThen C1ā is an optimal prefix code for the original source X.