Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex => NFA => DFA: Don't create states twice #24

Open
leissa opened this issue Sep 20, 2021 · 1 comment
Open

Regex => NFA => DFA: Don't create states twice #24

leissa opened this issue Sep 20, 2021 · 1 comment

Comments

@leissa
Copy link

leissa commented Sep 20, 2021

With this regex a(a|0)* the NFA to DFA implementation will create the state {2,3,5,6,7,8} twice but it should only construct it once:

{2,3,5,6,7,8} | C | accept | C | D
{2,3,4,5,7,8} | D | accept | C | D
@Akaame
Copy link

Akaame commented Dec 17, 2021

Hello,

Min-DFA probably gives what you wanted.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants