Why is KMP on the front page of HN? Not complaining, just confused. Is this related to some other news?
Knuth–Morris–Pratt algorithm
21–30 of 50 posts
Re: Knuth–Morris–Pratt algorithm
#22Earlier quoted context omitted.
I love to be surprised like that in interviews, let me tell you. Makes my decision much easier.
> Makes my decision much easier. You didn't say which way, I've worked with and for people who wouldn't hire someone smarter than them, the human psyche is a dark place.
Re: Knuth–Morris–Pratt algorithm
#23Why is KMP on the front page of HN? Not complaining, just confused. Is this related to some other news?
Re: Knuth–Morris–Pratt algorithm
#24Re: Knuth–Morris–Pratt algorithm
#25I've always liked the elegance of this algorithm, fun little example of how you can make things incredibly fast by thinking about your problem. And a related anecdote: I was interviewing at Apple for a systems development related role (graphics drivers, I think?) and one of the senior-level folks asked me to write strstr on the whiteboard. I started with a naive, working implementation, then he asked me how I'd optim…
Re: Knuth–Morris–Pratt algorithm
#26Why is KMP on the front page of HN? Not complaining, just confused. Is this related to some other news?
Re: Knuth–Morris–Pratt algorithm
#27Re: Knuth–Morris–Pratt algorithm
#28Why is KMP on the front page of HN? Not complaining, just confused. Is this related to some other news?
In terms is it being news, it's a bit of a feature story rather than on the scene reporting of a city council meeting or a cub's coverage of the police blotter or the Chamber of Commerce recent press release wrapped up as news.
If nothing else it's better than a blog post about the algorithm, and for me it's always helpful to be reminded what an amazing resource Wikipedia has become for computer science topics.