顯示具有 AC自動機 標籤的文章。 顯示所有文章
顯示具有 AC自動機 標籤的文章。 顯示所有文章

2012年9月23日 星期日

Ural 1002 Phone Numbers

I figure out that pasting a code here isn't that useful.

More importantly, we must understand the outline of what we're suppose to code

as soon as we figure out the algorithm to solve it.

So I will put a diagram here to show the process instead.

I use Aho_Corasick Algorithm to solve this.

============================================================