Re:What real life bad habits has programming given you?
by oconnor0 on Wednesday January 28, 2009 @01:37PM
(#454187)
When I'm driving, I'll make the decision on passing someone or not depending on whether the resultant speedup is O(1) or O(n).
Re:What real life bad habits has programming given you?
by Hexstream on Wednesday January 28, 2009 @02:18PM
(#454262)
Walking would be O(n^2) for all but the shortest distances actually, I think. Unless you rested once in a while. Amortized linear time?
Re:What real life bad habits has programming given you?
by BeefingJection on Wednesday January 28, 2009 @03:34PM
(#454440)
How do you figure?
Re:What real life bad habits has programming given you?
by Hexstream on Wednesday January 28, 2009 @05:21PM
(#455298)
Does walking continuously for 1000km merely take 100 times longer/more effort than 10km?
Re:What real life bad habits has programming given you?
by paulgb on Wednesday January 28, 2009 @09:40PM
(#455669)
Good point, but you answered your own question: the "walk then rest" algorithm will do it in linear time.
Re:What real life bad habits has programming given you?
by tjpick on Wednesday January 28, 2009 @10:10PM
(#455718)
null pointer on your drink-bottle instance results in fatal runtime exception.
Eg. should I walk or drive? It doesn't matter, they're both O(n).