Difference between revisions of "Theoretical Aspects of Lexical Analysis/Exercise 24"

From Wiki**3

< Theoretical Aspects of Lexical Analysis
(Created page with "__NOTOC__ Compute the non-deterministic finite automaton (NFA) by using Thompson's algorithm. Compute the minimal deterministic finite automaton (DFA). The alphabet is Σ = {...")
 
(Solução)
 
Line 8: Line 8:
 
[[image:solution-co-ex24-nfa-dfa.jpg]]
 
[[image:solution-co-ex24-nfa-dfa.jpg]]
 
[[image:solution-co-ex24-dfa-graph-min-tree-graph.jpg]]
 
[[image:solution-co-ex24-dfa-graph-min-tree-graph.jpg]]
[[image:solution-co-ex24-input.jpg|300px]]
+
[[image:solution-co-ex24-input.jpg]]
 
}}
 
}}
  

Latest revision as of 19:41, 19 April 2018

Compute the non-deterministic finite automaton (NFA) by using Thompson's algorithm. Compute the minimal deterministic finite automaton (DFA). The alphabet is Σ = { a, b, c }. Indicate the number of processing steps for the given input string.

  • G = { a|b*, bc*, a|c* }, input string = abbcac

Solução

Solução completa

Solution-co-ex24-nfa-dfa.jpg Solution-co-ex24-dfa-graph-min-tree-graph.jpg Solution-co-ex24-input.jpg