Function ADS::ppmEncode

Function Documentation

inline std::vector<std::uint8_t> ADS::ppmEncode(std::string_view s, int K)

the code of the bytes of s by PPM of order K

Pre:

K >= 0

Post:

ppmDecode( result , s.size() , K ) == s (an audit)