converted to a graph representation.
\section{Minimizing DAWGs}
-The first algorithm to generate DAG's was proposed by Hopcroft et
-al\cite{Hopcroft1971}. The algorithm they described wasn't incremental and had
-a complexity of $\mathcal{O}(N\log{N})$. \cite{Daciuk2000} et al. later
+As a representation of the patterns we use slightly altered DAWGs. Normally
+DAWGs have as edgelabels letters from an alphabet, in our case the DAWGs
+alphabet contains all letters, whitespace and punctuation but also the
+specified user markers. DAWGs are a graph but by using them as an automaton we
+can check if a word is accepted by the automaton, or in other words, if the
+word matches the specified pattern. The first algorithm to generate DAWGs from
+node-lists was proposed by Hopcroft et al\cite{Hopcroft1971}. It is an
+incremental approach in generating the graph. Meaning that entry by entry the
+graph was built. The only constraint that the algorithm has is that the entries
+must be sorted lexicographically. Later on Daciuk et al.\cite{Daciuk2000}
+improved on the original algorithm and their algorithm is the algorithm we used
+to minimize or optimize our DAWGs.
+
+Pseudocode for the algorithm can be found in Listing~\ref{pseudodawg}.
+
+
extended the algorithm and created an incremental one without increasing the
computational complexity. The non incremental algorithm from Daciuk et al. is
used to convert the nodelists to a graph.