Skip to content

Commit 30dc766

Browse files
nabil-hfzadamant-pwn
authored andcommitted
Update aho_corasick.md
I have corrected a tiny mistake `a output` to `an output`
1 parent 29a2744 commit 30dc766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string/aho_corasick.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ More precisely, suppose we are in a state corresponding to a string $t$, and we
101101
If there is an edge labeled with this letter $c$, then we can simply go over this edge, and get the vertex corresponding to $t + c$.
102102
If there is no such edge, since we want to maintain the invariant that the current state is the longest partial match in the processed string, we must find the longest string in the trie that's a proper suffix of the string $t$, and try to perform a transition from there.
103103

104-
For example, let the trie be constructed by the strings $ab$ and $bc$, and we are currently at the vertex corresponding to $ab$, which is a $\text{output}$.
104+
For example, let the trie be constructed by the strings $ab$ and $bc$, and we are currently at the vertex corresponding to $ab$, which is an $\text{output}$.
105105
To transition with the letter $c$, we are forced to go to the state corresponding to the string $b$, and from there follow the edge with the letter $c$.
106106

107107
<center>

0 commit comments

Comments
 (0)