Hello i have trouble using the Ziv-Lempel data compression algorithm, i only need to understand the algorithm. For example, what code sequence and code table should i get when i compress the following sequence assuming i have only three letter alphabet a,b and c

a b a b a b a c c c c a b a b a b

Can somebody explain me briefly.

Thanks from now!