This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:discrete:fall2022:projects:rle1 [2022/10/04 20:57] – [VERIFICATION] gsuber | notes:discrete:fall2022:projects:rle1 [2022/10/06 15:38] (current) – Added info about compression ratio. bolsen1 | ||
---|---|---|---|
Line 78: | Line 78: | ||
=====OUTPUT SPECIFICATIONS===== | =====OUTPUT SPECIFICATIONS===== | ||
- | Just like what we did in rle0, the rle1's encoder should output the original file's length, the encoded file length, followed by the compression ratio. The output is not strict, as long as you have the correct input file length, output file length, and compression ratio. | + | Just like what we did in rle0, the rle1's encoder should output the original file's length, the encoded file length, followed by the compression ratio. The output is not strict, as long as you have the correct input file length, output file length, and compression ratio. The compression ratio can be calculated by the following equation: ' |
Example: | Example: |