This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:discrete:fall2022:projects:rle1 [2022/10/03 19:20] – [VERIFICATION] hcordell | notes:discrete:fall2022:projects:rle1 [2022/10/06 15:38] (current) – Added info about compression ratio. bolsen1 | ||
---|---|---|---|
Line 77: | Line 77: | ||
=====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. The compression ratio can be calculated by the following equation: ' | ||
+ | |||
+ | Example: | ||
+ | Input File length: 100 | ||
+ | | ||
+ | | ||
=====VERIFICATION===== | =====VERIFICATION===== | ||
+ | |||
+ | **NOTE** Verification using ./check may not work. If this is the case, then run manual checks. To do this, run the sample and use the stride that is in the header of the sample output you are comparing to (Byte 10). The stride used is also in the file name. | ||
+ | |||
To run the check file provided to you when you grabbed the project, run ./check (linux-based system, may vary on different OS). | To run the check file provided to you when you grabbed the project, run ./check (linux-based system, may vary on different OS). | ||
You can also manually verify by encoding/ | You can also manually verify by encoding/ |