<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?action=history&amp;feed=atom&amp;title=Theoretical_Aspects_of_Lexical_Analysis%2FExercise_15</id>
	<title>Theoretical Aspects of Lexical Analysis/Exercise 15 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?action=history&amp;feed=atom&amp;title=Theoretical_Aspects_of_Lexical_Analysis%2FExercise_15"/>
	<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;action=history"/>
	<updated>2026-05-23T14:59:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.3</generator>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=17705&amp;oldid=prev</id>
		<title>Root at 18:50, 26 April 2026</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=17705&amp;oldid=prev"/>
		<updated>2026-04-26T18:50:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:50, 26 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following is the result of applying Thompson&amp;#039;s algorithm. State &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; recognizes the first expression (token &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039;); state &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T2&amp;#039;&amp;#039;&amp;#039;; and state &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following is the result of applying Thompson&amp;#039;s algorithm. State &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; recognizes the first expression (token &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039;); state &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T2&amp;#039;&amp;#039;&amp;#039;; and state &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki lang=&quot;graphviz&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph nfa {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph nfa {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DFA ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DFA ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l198&quot;&gt;Line 198:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 198:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Graphically, the DFA is represented as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Graphically, the DFA is represented as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki lang=&quot;graphviz&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l216&quot;&gt;Line 216:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 216:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The minimization tree is as follows. Note that before considering transition behavior, states are split according to the token they recognize.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The minimization tree is as follows. Note that before considering transition behavior, states are split according to the token they recognize.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki lang=&quot;graphviz&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph mintree {  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph mintree {  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   node [shape=none,fixedsize=true,width=0.3,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   node [shape=none,fixedsize=true,width=0.3,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l237&quot;&gt;Line 237:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 237:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Given the minimization tree, the final minimal DFA is as follows.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Given the minimization tree, the final minimal DFA is as follows.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki lang=&quot;graphviz&quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l258&quot;&gt;Line 258:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 258:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;kroki&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Input Analysis ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Input Analysis ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=11508&amp;oldid=prev</id>
		<title>Root at 10:30, 12 February 2019</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=11508&amp;oldid=prev"/>
		<updated>2019-02-12T10:30:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:30, 12 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following is the result of applying Thompson&amp;#039;s algorithm. State &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; recognizes the first expression (token &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039;); state &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T2&amp;#039;&amp;#039;&amp;#039;; and state &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The following is the result of applying Thompson&amp;#039;s algorithm. State &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; recognizes the first expression (token &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039;); state &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T2&amp;#039;&amp;#039;&amp;#039;; and state &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph nfa {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph nfa {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DFA ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== DFA ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l198&quot;&gt;Line 198:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 198:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Graphically, the DFA is represented as follows:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Graphically, the DFA is represented as follows:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l216&quot;&gt;Line 216:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 216:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The minimization tree is as follows. Note that before considering transition behavior, states are split according to the token they recognize.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The minimization tree is as follows. Note that before considering transition behavior, states are split according to the token they recognize.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph mintree {  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph mintree {  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   node [shape=none,fixedsize=true,width=0.3,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   node [shape=none,fixedsize=true,width=0.3,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l229&quot;&gt;Line 229:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 229:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{0, 1, 2, 3, 4, 5, 6} &amp;quot; -&amp;gt; &amp;quot;{6}&amp;quot; [label=&amp;quot;  T3&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{0, 1, 2, 3, 4, 5, 6} &amp;quot; -&amp;gt; &amp;quot;{6}&amp;quot; [label=&amp;quot;  T3&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{0, 1, 3, 4}&amp;quot; -&amp;gt; &amp;quot;{0, 1, 4}&amp;quot; [label=&amp;quot;  a&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{0, 1, 3, 4}&amp;quot; -&amp;gt; &amp;quot;{0, 1, 4}&amp;quot; [label=&amp;quot;  a&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &quot;{0, 1, 3, 4}&quot; -&amp;gt; &quot;{3}&quot; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//[label=&quot;  a&quot;,fontsize=10]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &quot;{0, 1, 3, 4}&quot; -&amp;gt; &quot;{3}&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{2, 5}&amp;quot; -&amp;gt; &amp;quot;{2}&amp;quot; [label=&amp;quot;  c&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{2, 5}&amp;quot; -&amp;gt; &amp;quot;{2}&amp;quot; [label=&amp;quot;  c&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &quot;{2, 5}&quot; -&amp;gt; &quot;{5}&quot; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//[label=&quot;  c&quot;,fontsize=10]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &quot;{2, 5}&quot; -&amp;gt; &quot;{5}&quot;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{0, 1, 4}&amp;quot; -&amp;gt; &amp;quot;{0}&amp;quot; [label=&amp;quot;  b&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{0, 1, 4}&amp;quot; -&amp;gt; &amp;quot;{0}&amp;quot; [label=&amp;quot;  b&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &quot;{0, 1, 4}&quot; -&amp;gt; &quot;{1, 4}&quot; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//[label=&quot;  b&quot;,fontsize=10]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &quot;{0, 1, 4}&quot; -&amp;gt; &quot;{1, 4}&quot;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{1, 4}&amp;quot; -&amp;gt; &amp;quot;{1, 4} &amp;quot; [label=&amp;quot;  a, b, c&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;{1, 4}&amp;quot; -&amp;gt; &amp;quot;{1, 4} &amp;quot; [label=&amp;quot;  a, b, c&amp;quot;,fontsize=10]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  //label=&quot;Minimization tree&quot;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Given the minimization tree, the final minimal DFA is as follows.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Given the minimization tree, the final minimal DFA is as follows.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;digraph dfa {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;      { node [shape=circle style=invis] s }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l259&quot;&gt;Line 259:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 258:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   fontsize=10&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;graph&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;dot-hack&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Input Analysis ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Input Analysis ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=6153&amp;oldid=prev</id>
		<title>Root at 14:37, 6 April 2015</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=6153&amp;oldid=prev"/>
		<updated>2015-04-06T14:37:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:37, 6 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l324&quot;&gt;Line 324:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 324:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The input string &amp;#039;&amp;#039;aaabcacc&amp;#039;&amp;#039; is, after 13 steps, split into five tokens: &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (corresponding to lexeme &amp;#039;&amp;#039;aaa&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;bc&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;a&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;c&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;c&amp;#039;&amp;#039;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The input string &amp;#039;&amp;#039;aaabcacc&amp;#039;&amp;#039; is, after 13 steps, split into five tokens: &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (corresponding to lexeme &amp;#039;&amp;#039;aaa&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;bc&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;a&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;c&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;c&amp;#039;&amp;#039;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Teaching&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Compiladores&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Compilers&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ensino&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[en:Theoretical Aspects of Lexical Analysis]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[en:Theoretical Aspects of Lexical Analysis]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=3820&amp;oldid=prev</id>
		<title>Root: /* DFA */</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=3820&amp;oldid=prev"/>
		<updated>2011-03-31T19:53:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;DFA&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:53, 31 March 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l167&quot;&gt;Line 167:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 167:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | b  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | b  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&quot;font-weight: normal; align: center; background: #ffffcc;&quot; | &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&quot;font-weight: normal; align: center; background: #ffffcc;&quot; | &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;14&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&quot;font-weight: normal; align: left;   background: #ffffcc;&quot; | &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5&lt;/del&gt;, &#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;8&lt;/del&gt;&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&quot;font-weight: normal; align: left;   background: #ffffcc;&quot; | &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;13&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;14&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;15&lt;/ins&gt;, &#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;16&lt;/ins&gt;&#039;&#039;&#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&quot;font-weight: normal; align: center; background: #ffffcc;&quot; | &#039;&#039;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;4&lt;/del&gt;&#039;&#039;&#039; (&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;T1&lt;/del&gt;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&quot;font-weight: normal; align: center; background: #ffffcc;&quot; | &#039;&#039;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;5&lt;/ins&gt;&#039;&#039;&#039; (&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;T2&lt;/ins&gt;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=3565&amp;oldid=prev</id>
		<title>Root: /* Input Analysis */</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=3565&amp;oldid=prev"/>
		<updated>2010-04-22T19:14:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Input Analysis&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:14, 22 April 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l322&quot;&gt;Line 322:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 322:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The input string &#039;&#039;aaabcacc&#039;&#039; is, after 13 steps, split into &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;three &lt;/del&gt;tokens: &#039;&#039;&#039;T1&#039;&#039;&#039; (corresponding to lexeme &#039;&#039;aaa&#039;&#039;), &#039;&#039;&#039;T3&#039;&#039;&#039; (&#039;&#039;bc&#039;&#039;), &#039;&#039;&#039;T1&#039;&#039;&#039; (&#039;&#039;c&#039;&#039;), &#039;&#039;&#039;T1&#039;&#039;&#039; (&#039;&#039;c&#039;&#039;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The input string &#039;&#039;aaabcacc&#039;&#039; is, after 13 steps, split into &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;five &lt;/ins&gt;tokens: &#039;&#039;&#039;T1&#039;&#039;&#039; (corresponding to lexeme &#039;&#039;aaa&#039;&#039;), &#039;&#039;&#039;T3&#039;&#039;&#039; (&#039;&#039;bc&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;), &#039;&#039;&#039;T1&#039;&#039;&#039; (&#039;&#039;a&lt;/ins&gt;&#039;&#039;), &#039;&#039;&#039;T1&#039;&#039;&#039; (&#039;&#039;c&#039;&#039;), &#039;&#039;&#039;T1&#039;&#039;&#039; (&#039;&#039;c&#039;&#039;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:Teaching]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:Teaching]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:Compilers]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:Compilers]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[en:Theoretical Aspects of Lexical Analysis]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[en:Theoretical Aspects of Lexical Analysis]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Root</name></author>
	</entry>
	<entry>
		<id>https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=3563&amp;oldid=prev</id>
		<title>Root: New page: __NOTOC__ Compute the non-deterministic finite automaton (NFA) by using Thompson&#039;s algorithm. Compute the minimal deterministic finite automaton (DFA).&lt;br/&gt;The alphabet is Σ = { a, b, c }...</title>
		<link rel="alternate" type="text/html" href="https://robots.hlt.inesc-id.pt/w/pt/index.php?title=Theoretical_Aspects_of_Lexical_Analysis/Exercise_15&amp;diff=3563&amp;oldid=prev"/>
		<updated>2010-04-22T18:32:32Z</updated>

		<summary type="html">&lt;p&gt;New page: __NOTOC__ Compute the non-deterministic finite automaton (NFA) by using Thompson&amp;#039;s algorithm. Compute the minimal deterministic finite automaton (DFA).&amp;lt;br/&amp;gt;The alphabet is Σ = { a, b, c }...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
Compute the non-deterministic finite automaton (NFA) by using Thompson&amp;#039;s algorithm. Compute the minimal deterministic finite automaton (DFA).&amp;lt;br/&amp;gt;The alphabet is Σ = { a, b, c }. Indicate the number of processing steps for the given input string. &lt;br /&gt;
* &amp;lt;nowiki&amp;gt;G = { a*|c, a|b*, bc*  }&amp;lt;/nowiki&amp;gt;, input string = aaabcacc&lt;br /&gt;
&lt;br /&gt;
== NFA ==&lt;br /&gt;
&lt;br /&gt;
The following is the result of applying Thompson&amp;#039;s algorithm. State &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039; recognizes the first expression (token &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039;); state &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T2&amp;#039;&amp;#039;&amp;#039;; and state &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039; recognizes token &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;graph&amp;gt;&lt;br /&gt;
digraph nfa {&lt;br /&gt;
     { node [shape=circle style=invis] s }&lt;br /&gt;
  rankdir=LR; ratio=0.5&lt;br /&gt;
  node [shape=doublecircle,fixedsize=true,width=0.2,fontsize=10]; 8 16 21&lt;br /&gt;
  node [shape=circle,fixedsize=true,width=0.2,fontsize=10];&lt;br /&gt;
&lt;br /&gt;
  s -&amp;gt; 0&lt;br /&gt;
&lt;br /&gt;
  0 -&amp;gt; 1 &lt;br /&gt;
  1 -&amp;gt; 2&lt;br /&gt;
  1 -&amp;gt; 6&lt;br /&gt;
  2 -&amp;gt; 3&lt;br /&gt;
  2 -&amp;gt; 5&lt;br /&gt;
  3 -&amp;gt; 4 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  4 -&amp;gt; 3&lt;br /&gt;
  4 -&amp;gt; 5&lt;br /&gt;
  6 -&amp;gt; 7 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  7 -&amp;gt; 8&lt;br /&gt;
  5 -&amp;gt; 8&lt;br /&gt;
&lt;br /&gt;
  0 -&amp;gt; 9 &lt;br /&gt;
  9 -&amp;gt; 10&lt;br /&gt;
  9 -&amp;gt; 12&lt;br /&gt;
  10 -&amp;gt; 11 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  12 -&amp;gt; 13&lt;br /&gt;
  12 -&amp;gt; 15&lt;br /&gt;
  13 -&amp;gt; 14 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  14 -&amp;gt; 13&lt;br /&gt;
  14 -&amp;gt; 15&lt;br /&gt;
  15 -&amp;gt; 16&lt;br /&gt;
  11 -&amp;gt; 16&lt;br /&gt;
&lt;br /&gt;
  0 -&amp;gt; 17 &lt;br /&gt;
  17 -&amp;gt; 18 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  18 -&amp;gt; 19&lt;br /&gt;
  18 -&amp;gt; 21&lt;br /&gt;
  19 -&amp;gt; 20 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  20 -&amp;gt; 19&lt;br /&gt;
  20 -&amp;gt; 21&lt;br /&gt;
&lt;br /&gt;
  fontsize=10&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/graph&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== DFA ==&lt;br /&gt;
&lt;br /&gt;
Determination table for the above NFA:&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | I&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | α∈Σ&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | move(I&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;, α)&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | ε-closure(move(I&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;, α))&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | I&amp;lt;sub&amp;gt;n+1&amp;lt;/sub&amp;gt; = ε-closure(move(I&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;, α))&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | - &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | - &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | 0, 1, 2, 3, 5, 6, &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;, 9, 10, 12, 13, 15, &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039;, 17&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039; (T1)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | a &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 4, 11&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 3, 4, 5, &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;, 11, &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039; (T1)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | b &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 14, 18&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 13, 14, 15, &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039;, 18, 19, &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039; (T2)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 7&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 7, &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039; (T1)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 1&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | a &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | 3, 4, 5, &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; (T1)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 1 &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | b &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 1 &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 2&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | a&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 2&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | b &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 14&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 13, 14, 15, &amp;#039;&amp;#039;&amp;#039;16&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;5&amp;#039;&amp;#039;&amp;#039; (T2)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 2&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 20&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 19, 20, &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039; (T3)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 3&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | a&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 3&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | b &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 3&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | a&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 3, 4, 5, &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; (T1)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | b&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | a&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | b &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 4&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | 3, 4, 5, &amp;#039;&amp;#039;&amp;#039;8&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;4&amp;#039;&amp;#039;&amp;#039; (T1)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 5&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #ffffcc;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 6&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | a&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 6&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | b&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | -&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 6&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | c &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 20&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: left;   background: #e6e6e6;&amp;quot; | 19, 20, &amp;#039;&amp;#039;&amp;#039;21&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039; (T3)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Graphically, the DFA is represented as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;graph&amp;gt;&lt;br /&gt;
digraph dfa {&lt;br /&gt;
     { node [shape=circle style=invis] s }&lt;br /&gt;
  rankdir=LR; ratio=0.5&lt;br /&gt;
  node [shape=doublecircle,fixedsize=true,width=0.2,fontsize=10]; 0 1 2 3 4 5 6&lt;br /&gt;
  node [shape=circle,fixedsize=true,width=0.2,fontsize=10];&lt;br /&gt;
  s -&amp;gt; 0&lt;br /&gt;
  0 -&amp;gt; 1 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  0 -&amp;gt; 2 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  0 -&amp;gt; 3 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  1 -&amp;gt; 4 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  2 -&amp;gt; 5 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  2 -&amp;gt; 6 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  4 -&amp;gt; 4 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  5 -&amp;gt; 5 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  6 -&amp;gt; 6 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  fontsize=10&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/graph&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The minimization tree is as follows. Note that before considering transition behavior, states are split according to the token they recognize.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;graph&amp;gt;&lt;br /&gt;
digraph mintree { &lt;br /&gt;
  node [shape=none,fixedsize=true,width=0.3,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 2, 3, 4, 5, 6}&amp;quot; -&amp;gt; &amp;quot;{}       &amp;quot; [label=&amp;quot;NF&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 2, 3, 4, 5, 6}&amp;quot; -&amp;gt; &amp;quot;{0, 1, 2, 3, 4, 5, 6} &amp;quot; [label=&amp;quot;  F&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 2, 3, 4, 5, 6} &amp;quot; -&amp;gt; &amp;quot;{0, 1, 3, 4}&amp;quot; [label=&amp;quot;  T1&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 2, 3, 4, 5, 6} &amp;quot; -&amp;gt; &amp;quot;{2, 5}&amp;quot; [label=&amp;quot;  T2&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 2, 3, 4, 5, 6} &amp;quot; -&amp;gt; &amp;quot;{6}&amp;quot; [label=&amp;quot;  T3&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 3, 4}&amp;quot; -&amp;gt; &amp;quot;{0, 1, 4}&amp;quot; [label=&amp;quot;  a&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 3, 4}&amp;quot; -&amp;gt; &amp;quot;{3}&amp;quot; //[label=&amp;quot;  a&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{2, 5}&amp;quot; -&amp;gt; &amp;quot;{2}&amp;quot; [label=&amp;quot;  c&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{2, 5}&amp;quot; -&amp;gt; &amp;quot;{5}&amp;quot; //[label=&amp;quot;  c&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 4}&amp;quot; -&amp;gt; &amp;quot;{0}&amp;quot; [label=&amp;quot;  b&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{0, 1, 4}&amp;quot; -&amp;gt; &amp;quot;{1, 4}&amp;quot; //[label=&amp;quot;  b&amp;quot;,fontsize=10]&lt;br /&gt;
  &amp;quot;{1, 4}&amp;quot; -&amp;gt; &amp;quot;{1, 4} &amp;quot; [label=&amp;quot;  a, b, c&amp;quot;,fontsize=10]&lt;br /&gt;
  fontsize=10&lt;br /&gt;
  //label=&amp;quot;Minimization tree&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/graph&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Given the minimization tree, the final minimal DFA is as follows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;graph&amp;gt;&lt;br /&gt;
digraph dfa {&lt;br /&gt;
     { node [shape=circle style=invis] s }&lt;br /&gt;
  rankdir=LR; ratio=0.5&lt;br /&gt;
  node [shape=doublecircle,fixedsize=true,width=0.2,fontsize=10]; 0 14 2 3 5 6&lt;br /&gt;
  node [shape=circle,fixedsize=true,width=0.2,fontsize=10];&lt;br /&gt;
  s -&amp;gt; 0&lt;br /&gt;
  0 -&amp;gt; 14 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  0 -&amp;gt; 2 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  0 -&amp;gt; 3 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  14 -&amp;gt; 14 [label=&amp;quot;a&amp;quot;,fontsize=10]&lt;br /&gt;
  2 -&amp;gt; 5 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  2 -&amp;gt; 6 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  5 -&amp;gt; 5 [label=&amp;quot;b&amp;quot;,fontsize=10]&lt;br /&gt;
  6 -&amp;gt; 6 [label=&amp;quot;c&amp;quot;,fontsize=10]&lt;br /&gt;
  fontsize=10&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/graph&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Input Analysis ==&lt;br /&gt;
&lt;br /&gt;
{| cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | I&amp;lt;sub&amp;gt;n&amp;lt;/sub&amp;gt;&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | Input&lt;br /&gt;
! style=&amp;quot;padding-left: 20px; padding-right: 20px; background: wheat;&amp;quot; | I&amp;lt;sub&amp;gt;n+1&amp;lt;/sub&amp;gt; / Token&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;aaabcacc$&amp;lt;/tt&amp;gt; &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;aabcacc$&amp;lt;/tt&amp;gt; &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;abcacc$&amp;lt;/tt&amp;gt; &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;bcacc$&amp;lt;/tt&amp;gt; &lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (aaa)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #e6e6e6;&amp;quot; | &amp;lt;tt&amp;gt;bcacc$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 2&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 2&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #e6e6e6;&amp;quot; | &amp;lt;tt&amp;gt;cacc$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 6&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 6&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #e6e6e6;&amp;quot; | &amp;lt;tt&amp;gt;acc$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039; (bc)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;acc$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 14&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;cc$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (a)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #e6e6e6;&amp;quot; | &amp;lt;tt&amp;gt;cc$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 3&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | 3&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #e6e6e6;&amp;quot; | &amp;lt;tt&amp;gt;c$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #e6e6e6;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (c)&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;c$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 3&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | 3&lt;br /&gt;
! style=&amp;quot;font-weight: normal; text-align: right; background: #ffffcc;&amp;quot; | &amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt;&lt;br /&gt;
! style=&amp;quot;font-weight: normal; align: center; background: #ffffcc;&amp;quot; | &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (c)&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The input string &amp;#039;&amp;#039;aaabcacc&amp;#039;&amp;#039; is, after 13 steps, split into three tokens: &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (corresponding to lexeme &amp;#039;&amp;#039;aaa&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T3&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;bc&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;c&amp;#039;&amp;#039;), &amp;#039;&amp;#039;&amp;#039;T1&amp;#039;&amp;#039;&amp;#039; (&amp;#039;&amp;#039;c&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
[[category:Teaching]]&lt;br /&gt;
[[category:Compilers]]&lt;br /&gt;
[[en:Theoretical Aspects of Lexical Analysis]]&lt;/div&gt;</summary>
		<author><name>Root</name></author>
	</entry>
</feed>