4 \caption{Graph minimization algorithm
}
5 \begin{minted
}[mathescape=true,linenos=true
]{text
}
7 while there is another word
9 commonprefix = CommonPrefix(word)
10 laststate = delta_star(q0, commonprefix)
11 currentsuffix = word
[length(commonprefix)..length(word)
]
12 if has_children(laststate)
14 replace_or_register(last_state)
16 add_suffix(laststate, currentsuffix)
18 replace_or_register(q0)
20 function replace_or_register(state)
21 child = last_child(state)
22 if has_children(child)
23 replace_or_register(child)
25 if there is an equivalent state q
36 \subsection{scheme.xsd
}
39 \xmlcode[firstnumber=
51]{scheme2.xsd
}