Range coding (source code)

= Range coding
{wiki=Range_coding}

Range coding is a form of entropy coding used in data compression, similar in purpose to arithmetic coding. It encodes a range of values based on the probabilities of the input symbols to create a more efficient representation of the data. The basic idea is to represent a sequence of symbols as a single number that falls within a specific range. \#\#\# How Range Coding Works: 1. **Probability Model**: Range coding relies on a probability model that assigns a probability to each symbol in the input data.