I know hw4 is done and over with, but I had to ask the following since the problem disappeared after I rescanned my Huffman.java and apparently must have changed 1 minor detail, though it made the code fully correct:
Note: all official course staff have rl access to my files @
both /afs/andrew.cmu.edu/usr11/richardc/211hw/hw4/ (Note: this is 1 level above the ~/211hw/hw4/hw4/ most other people have) and /afs/andrew.cmu.edu/course/15/211/handin/richardc/hw4/1/ so they/you can compare my output result accuracy as follows:
% diff ~richardc/211hw/hw4/textfiles/pi.txt ~richardc/211hw/hw4/pi.output.txt
Warning: missing newline at end of file textfiles/pi.txt
Warning: missing newline at end of file 3
1c1 [and what does this "1c1" mean, btw?]
<
141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342118
---
>
141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117
The difference is in the last char position of the line "diff" gives (> "...8" vs. <"...7"), but when I view the 2 files in emacs, I simply cannot find that same difference (via C-s [search string] so I don't rely only on my eyes).
Questions:
- Does the difference actually exist or is it merely a newline difference (probably not since the > "...8" and <"...7" are different);
- Where does the error lie? My code works for all other input files except this one (textfiles/pi.txt) and though I don't believe I changed anything, I must have during the last time I rescanned my code.