I am currently studying compressions algorithms and I came across with Adaptative Huffman. Unlike "usual" Huffman, in this one we don't know the frequency of each symbol a priori. I came across with an exercise that I just can't figure it out.
Given the alphabet A = {1,2,3,4,5,6,7,8} and assuming an adaptive huffman encoder was used, determine the message corresponding to the bitstream 0110010000011010
I don't understand if I have to build the Huffman tree or if there is another way around without building the tree, because I tried to assign binary codes to each symbol of the alphabet: 1 for 000, 2 for 001, 3 for 010, 4 for 011,...(based on 2^e + r = 8, with an e = 3 and r = 0), but doesn't match with the correct awser.
Thank you for your time