Hacker News new | past | comments | ask | show | jobs | submit login

That reminds me of the Boyer-Moore string search algorithm. One way to implement B-M is with a bitmap of the characters in the query string, so that regions of the search space that can't possibly match the query will be skipped efficiently.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: