(Choose 1 answer)
Suppose you are using the LZW algorithm to encode the message AAABDACAADA contents of the dictionary at the beginning of encoding are:
(1) A (2) B (3)
C (4) D
What are the first 4 code words when encoding the above string?
Α. (1) (1) (1) (2)
Β. (1) (5) (6) (4)
C. (1) (5) (3) (2)
D. (1) (5) (2) (4)
Ε. (1) (5) (1) (4)