Live data from Hacker News

Iterated Log Coding

adamscherlis.github.io

1–10 of 40 posts

Re: Iterated Log Coding

#8
post #4

Given an integer n, what is the number of bits required to represent every integer in the range -n..n ?

> Given an integer n, what is the number of bits required to represent every integer in the range -n..n ?

(log n) + 1

Re: Iterated Log Coding

#9
post #8
post #4

Given an integer n, what is the number of bits required to represent every integer in the range -n..n ?

> Given an integer n, what is the number of bits required to represent every integer in the range -n..n ? (log n) + 1

That's true for normal binary encoding of integers, but I think we should understand the question in context of the post: What's the number of bits required in iterated log coding?
Post reply on HN