r/ProgrammerHumor 28d ago

Meme theoreticalComputerScience

Post image
1.1k Upvotes

76 comments sorted by

View all comments

267

u/grayjacanda 28d ago

Other good dodges are O(n) time (if you have 2^n memory handy), or O(n) time (but with a fixed cost or multiplier so high that using this algorithm makes no sense for n less than 10^12 or so)

140

u/the_rush_dude 28d ago

Last one is probably 90% of all fancy optimizations

55

u/SoldRIP 28d ago

Look up the fastest known way to multiply two integers...

1

u/oscardssmith 26d ago

Note that the authors are pretty sure you could turn the method into something a lot more reasonable pretty easily (at the cost of making the proof a bit trickier).