Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:39:21+00:00 2026-06-17T05:39:21+00:00

I am studying for tomorrows exam and I have checked many tutorials telling how

  • 0

I am studying for tomorrows exam and I have checked many tutorials telling how to convert NFA to Regex but I can’t seem to confirm my answers. Following the tutorials, I solved that NFA

enter image description here

My solution was:

aba

Am I correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:39:22+00:00Added an answer on June 17, 2026 at 5:39 am

    How to convert NFA to Regular Expression?

    Your answer a*ba* is Correct. I can drive your answer from NFA in given image as follows:

    • There is a self loop on start state q0 with label a. So there can be any number of as are possible at initial (prefix) including null ^ in RE. So Regular Expression(RE) start with a*.

    • You need only one b to reach to final state. Actually for an accepting string; there must be at-least one b in string of a and b. So RE a*b to reach to either q1 or q2. Both are final states.

    • Once you reach to a final state (q1 or q2). No other b is possible in string (there is no outgoing edge for b from q1 and q2).

    • Only symbol is a can be possible at q1 and q2. Also for, a at q1 or at q2 move switch between q1 , q2 and both are final. So after symbol b any number of as can be in suffix. (So string ends with a* ).

    And RE is a*ba*.

    Also, its DFA is as follows:

     DFA: 
    ======
    
        a-          a-  
        ||          ||
        ▼|          ▼|
    --►(q0)---b---►((q1))      
    
        a*    b      a*    :RE  
                           ==== 
    
    • Any number of as at q0 that is: a*

    • once you get b you can switch to final state q1: b

    • at final state any number of a is possible: a*

    And its a Minimized DFA!

    Here is some more interesting answer by me on FAs and REs, I believe will be useful to you:

    1. HOW TO WRITE REGULAR EXPRESSION FOR A DFA
    2. RE TO DFA
    3. Regular Expression to DFA
    4. Constructing an equivalent Regular Grammar from a Regular Expression
    5. How to Eliminate Left recursion in Context-Free-Grammar
    6. Is a* the same as (a*)*?
    7. IN CONTEXT OF REGULAR EXPRESSION: is (AB)* = A*B*?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Studying STL I have tried to negate a functor with not2 but encontered problems.
While studying for the 70-433 exam I noticed you can create a covering index
Currently studying bitwise arithmetic. It's really easy, because I have some CS background. But
Studying Java, I've thought about a, to me, rather confusing property of many tutorials.
Our company is studying the adoption of a new SaaS, but we'll have to
I'm studying about Linux kernel and I have a problem. I see many Linux
I am studying patterns and anti-patterns. I have a clear idea about patterns, but
I have been studying c++ for an exam and I thought that i had
I have just started studying Python . I am referring to the tutorials at
im studying for my programming final exam. I have to write a program which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.