logoalt Hacker News

jvanderbotyesterday at 9:00 PM2 repliesview on HN

I'm fond of this brain-expander, in spirit of TFA: "Did you know travelling salesperson is O(N) on a large class of graphs?"

Another insight: I regularly find that clever O(logn) solutions are just obliterated by a few mostly-branch-free O(N) pre-passes followed by a problem that computers enjoy, like contiguous memory access and vector operations.


Replies

hahahaayesterday at 9:58 PM

Yeah why is "the algorithm" the thing we do in our head to mimick a 1970s computer and not what really happens on hardware.

show 1 reply
momojoyesterday at 9:31 PM

Do you have any examples of the second class?

show 3 replies