Skip to main content
17 events
when toggle format what by license comment
Sep 3 at 0:11 answer added RARE Kpop Manifesto timeline score: 0
S Jan 13, 2016 at 11:39 history suggested greybeard CC BY-SA 3.0
exercise in block comment and LaTeX
Jan 13, 2016 at 8:52 review Suggested edits
S Jan 13, 2016 at 11:39
Jan 13, 2016 at 8:43 comment added Rui F Ribeiro I added the Cisco academy algorithm as a curiosity. It is mostly subtractions once you know the powers of two by heart.
Jan 13, 2016 at 8:36 answer added Rui F Ribeiro timeline score: 1
Jan 13, 2016 at 8:10 comment added Ravi @Raphael I have re-typed the algorithm in a readable form. Sorry for the inconvenience. Henceforth I will take care of this.
Jan 13, 2016 at 8:09 history edited Ravi CC BY-SA 3.0
edited for clarity
Jan 13, 2016 at 8:03 vote accept Ravi
Jan 13, 2016 at 8:02 answer added hengxin timeline score: 5
Jan 13, 2016 at 8:01 comment added Ravi @RuiFRibeiro thanks for your reply and assistance. I got the solution. hengxin has commented on this Q. He has mentioned that it should be log. So that is a mistake in the material. "log" is what fits the algorithm perfectly.
Jan 13, 2016 at 7:55 comment added Rui F Ribeiro Hi Ravi. The algorithm you posted is too complicated. Binary numbers are powers of two, like having only two digits, divisions/multiplications by 2 should be more than enough for a beginner. I got this page for you. interactivepython.org/runestone/static/pythonds/BasicDS/… For dealing with short number, we also have a simpler strategy.
Jan 13, 2016 at 7:53 comment added Ravi @hengxin Yes your formula is what is fitting the algorithm completely. So that is a mistake in that material. It mentions square root but it is log. Great! I thank you very much for your valuable assistance.
Jan 13, 2016 at 7:46 comment added hengxin $7 = \text{int} (\log_{2} 236)$. Generally, $p = \text{int} (\log_{B} V)$.
Jan 13, 2016 at 7:41 comment added Raphael Please spend some effort to re-type the algorithm in a readable form. Relying on external sources (which may change or go away at any point) is no good for SE. Also, have you checked out other base conversion algorithms? This one seems ... needlessly convoluted.
Jan 13, 2016 at 7:40 history edited Raphael
edited tags
Jan 13, 2016 at 7:14 review First posts
Jan 13, 2016 at 10:03
Jan 13, 2016 at 7:10 history asked Ravi CC BY-SA 3.0