You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In LZ78Compressor.hpp and LZWCompressor.hpp, the root nodes defined via the API call add_rootnode seem not necessary. Calling add_rootnode(c) just adds the character c into the LZ78 trie and gives it the LZ node ID c. Both compressors query these added nodes with get_rootnode(c), but the call always returns c. So there is no need to pollute the LZ78 tries with these 'root nodes' as the compressors can take care of these by themselves.
The text was updated successfully, but these errors were encountered:
In
LZ78Compressor.hpp
andLZWCompressor.hpp
, the root nodes defined via the API calladd_rootnode
seem not necessary. Callingadd_rootnode(c)
just adds the characterc
into the LZ78 trie and gives it the LZ node IDc
. Both compressors query these added nodes withget_rootnode(c)
, but the call always returnsc
. So there is no need to pollute the LZ78 tries with these 'root nodes' as the compressors can take care of these by themselves.The text was updated successfully, but these errors were encountered: