What is Run-length encoding?
A lossless compression method that shrinks data by replacing each stretch of the same value (a run) with a pair of that value and the length of the run. For example, the black-and-white pixel sequence 0000000011110000 can be written as "eight 0s, four 1s, four 0s". It works well on data in which the same value continues for a long time, such as drawings on a mostly white background, fax images and images with large areas of a single color. On data whose values change finely, the runs are short and the result can even be larger than the original. Also called RLE.
Japanese name: ランレングス符号化
Run-length encoding appears in 2 practice questions across 1 topic, including Information Theory and Coding Basics.