This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:discrete:fall2022:projects:rle0 [2022/09/07 18:58] – [PROGRAM] decoder specifications and 2nd argument hcordell | notes:discrete:fall2022:projects:rle0 [2022/09/07 22:57] (current) – [PROGRAM] abarbcal | ||
---|---|---|---|
Line 18: | Line 18: | ||
The RLE algorithm will encode this data by replacing the repeated characters with a count number and a single value. | The RLE algorithm will encode this data by replacing the repeated characters with a count number and a single value. | ||
- | < | + | < |
There are 4 a's (0x61), 2 b' | There are 4 a's (0x61), 2 b' | ||
Line 109: | Line 109: | ||
| | ||
- | ./decode sample0.txt.rle | + | ./decode sample0.txt.rle |
</ | </ | ||
The decoder should be able to read the header and find out the filename if a second argument is not given. If a second argument is given it will use the second argument instead of taking the filename from the header. | The decoder should be able to read the header and find out the filename if a second argument is not given. If a second argument is given it will use the second argument instead of taking the filename from the header. |