logoalt Hacker News

srcreighyesterday at 8:09 PM1 replyview on HN

ChatGPT also loves Aho-Corasick and seems to overuse it as an optimization fall back idea. ChatGPT has suggested the algorithm to me but the code ended up slowing down a lot.


Replies

sigbottletoday at 12:07 AM

ChatGPT was heavily RL'd on competitive programming in 2025, and aho-corasick is a traditional algorithm in the competitive programming space.