Блог пользователя FlintoFF

Автор FlintoFF, история, 6 лет назад, По-английски

I saw this problem on the article about aho corasick algorithm, and they have given its solution like this. I didn't understand that how is it working as we will be having directed cycles in the automata?

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +11 Проголосовать: не нравится

What prevents you from writing a bfs for a graph with cycles?