MHB Convert a non-deterministic finite automata to a regular expression.

Click For Summary
SUMMARY

The discussion centers on converting a non-deterministic finite automaton (NFA) to a regular expression. The user initially proposed the expression a*ab(baUb)*b but questioned its correctness. Key steps in the conversion process include preprocessing the NFA to ensure it has a single final state, no incoming arrows to the initial state, and no outgoing arrows from the final state. The user ultimately resolved their query after further analysis.

PREREQUISITES
  • Understanding of non-deterministic finite automata (NFA)
  • Familiarity with regular expressions
  • Knowledge of state transition diagrams
  • Basic concepts of automata theory
NEXT STEPS
  • Study the conversion algorithms for NFAs to regular expressions
  • Explore the preprocessing steps for NFAs in detail
  • Review lecture notes or textbooks on automata theory
  • Practice converting various NFAs to regular expressions
USEFUL FOR

This discussion is beneficial for computer science students, automata theorists, and software engineers involved in formal language processing and compiler design.

JamesBwoii
Messages
71
Reaction score
0
Physics news on Phys.org
Hi, and welcome to the forum!

In the first image, you have an arrow labeled just be $b$ from the second state to the accepting state, but in the first automata in the second image, this arrow is labeled by $a,b$.

Also, which book or source describes the conversion procedure you are using?
 
Sorry, the first image is the correct one and the one I have drawn at the top of the page is a mistake.

As for the procedure it is a method that has been taught to us in lectures, although I could be misunderstanding it, here is how I take it:

Firstly, the NFA must be preprocessed such that:
1. Has a single final state.
2. Initial state does not have any incoming arrows.
3. Final state has no out going arrows.

As for the conversion algorithm, I will post a photo of my lecture notes as I feel that will represent it best - http://i.imgur.com/kbbVD1w.png

EDIT: I've managed to solve it now.
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
14K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 19 ·
Replies
19
Views
8K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 140 ·
5
Replies
140
Views
12K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K