We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for this great open source resource! I think I may have noticed a potential bug, however. In the Decoder, the user provides:
input_file, n = argv[1:] maximum_table_size = pow(2,int(n))
But, they're not used anywhere in the following code. I believe the following change is in order:
if not(len(string) == 0): dictionary[next_code] = string + (dictionary[code][0]) next_code += 1 string = dictionary[code]
Should be:
if not(len(phrase) == 0): if(len(dictionary) <= maximum_table_size): dictionary[next_code] = phrase + (dictionary[code][0]) next_code += 1 phrase = dictionary[code]
I ran the code with this change and it continued to work. Thoughts?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Thanks for this great open source resource! I think I may have noticed a potential bug, however. In the Decoder, the user provides:
But, they're not used anywhere in the following code. I believe the following change is in order:
Should be:
I ran the code with this change and it continued to work. Thoughts?
The text was updated successfully, but these errors were encountered: