| |
| | Lab 11: Loop invariants |
 | | When run-length encoding is used, the number of consecutive 0's is counted, then the number of consecutive 1's, then 0's, and so on. |
 | | In general, run-length encoding can offer considerable savings, and still be in ``human'' readable form. |
 | | For example, the bitmap image above of the < symbol begins with five 0's, then two 1's, then five 0's, then two 1's, etc. The entire file is represented in compressed form using run-length encoding by the following: |
| www.cs.duke.edu /courses/cps006/fall04/labs/lab11/lab.html (427 words) |
|