Talk:Rice coding

From Rosetta Code
Revision as of 12:03, 21 September 2023 by Rdm (talk | contribs)

No examples?

It's difficult to tell whether the current implementation here is correct.

Ricde coding is apparently a compression technique, but inspecting the encode implementation, I see ($n mod $d).polymod(2 xx $k - 1).reverse which probably means that the encoded number would have at least as many bits as the value of the number being encoded. --Rdm (talk) 12:03, 21 September 2023 (UTC)