Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • \$\begingroup\$ @Sp3000 Added 2 examples for base 5 and base 10. Does that make any more sense? \$\endgroup\$ Commented Aug 10, 2015 at 6:36
  • \$\begingroup\$ @LivingInformation Suppose the program has read 110. Can the program terminate and return bit width 1? If not, what is the maximum base, so the program can actually terminate? \$\endgroup\$ Commented Aug 10, 2015 at 6:39
  • \$\begingroup\$ @isaacg oops, I forgot to give a range on the bit-widths! The width will always be between 3 and 16, sorry about that. \$\endgroup\$ Commented Aug 10, 2015 at 6:41
  • \$\begingroup\$ In nearly all modern contexts the byte refers to an octet of bits. Perhaps you could use a word that causes less confusion? (word, grouping, chunk, etc). \$\endgroup\$ Commented Aug 10, 2015 at 10:51
  • \$\begingroup\$ Also, I assume we have to read the stream bit by bit, and can not skip elements? \$\endgroup\$ Commented Aug 10, 2015 at 11:08