Live data from Hacker News

Long division verified via Hoare logic

cofault.com

61–63 of 63 posts

Re: Long division verified via Hoare logic

#61

Not specific to this article, but it's tragic that computer science curricula, and discussions of these algorithms, virtually never highlight the tight connection between binary search and long division. Long division done in binary is exactly binary search for the correct quotient, with the number written above the line (plus some implicit zeros) being the best lower bound proven thus far. Similarly, division done i…

I realized this in school but it was beaten out of me because making a wrong guess in the process was unacceptable.

Re: Long division verified via Hoare logic

#62

Not specific to this article, but it's tragic that computer science curricula, and discussions of these algorithms, virtually never highlight the tight connection between binary search and long division. Long division done in binary is exactly binary search for the correct quotient, with the number written above the line (plus some implicit zeros) being the best lower bound proven thus far. Similarly, division done i…

Neat. Division being iterative makes me feel better about last week when I couldn't think up a good closed-form solution for something and I didn't feel like computing gradients so I just made a coordinate descent loop. It'll be funny if it's still in there when it ships

Re: Long division verified via Hoare logic

#63
post #53

Earlier quoted context omitted.

I studied "Mathematics and Computation" there in 89-92 because they seemed to think that "computation" was a fad that was probably going away, so you couldn't let people study just "Computation". There was a certain amount of formal methods, but only in a perfunctory manner, as if to satisfy an inconvenient requirement. Some functional programming, but in an extremely shallow way. Overall, I did not learn a single us…

Just a heads up. > I followed this up with Ph.D. in Computer Science somewhere else, which was also a complete waste of time. It has been shown this form of thinking results in depression.

Thanks, friend. I currently don't have depression, but I'll see if I can work towards that.
Post reply on HN