«« Next » « Previous
«« Next » « Previous

Link Details

Link 29803 thumbnail
User 111696 avatar

By bloid
via googleresearch.blogspot.com
Published: Jul 11 2007 / 12:16

I remember vividly Jon Bentley's first Algorithms lecture at CMU, where he asked all of us incoming Ph.D. students to write a binary search, and then dissected one of our implementations in front of the class. Of course it was broken, as were most of our implementations. This made a real impression on me
  • 14
  • 2
  • 1336
  • 600

Comments

Add your comment
User 1 avatar

rick replied ago:

1 votes Vote down Vote up Reply

Kinda old, but if you haven't seen it before it is a very good read.

User 235715 avatar

crowlogic replied ago:

1 votes Vote down Vote up Reply

The title should say "most naive implements" are slow, not the algorithms themselves. I spotted the bug instantly upon seeing it and most who study math rather than CS would probably do the same.

User 160542 avatar

Kirill Grouchnikov replied ago:

-1 votes Vote down Vote up Reply

This is so lame. Read the article - the implementation is broken on inputs having 2^30 or 2^31 entries.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.