A q-ary alphabet is just a finite set A={a1,a2,…,ai} with q elements, which are called symbols or letters.