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

feat(dfa): #43 add dfa minimization algorithm #44

Merged
merged 1 commit into from
Sep 8, 2024
Merged

Conversation

rohaquinlop
Copy link
Owner

  • Implement the minimize function for the DFA class. This funciton is used to reduce the number
    of redundant states in the DFA.
  • Add test cases for the minimize function.
  • Fix a bug in the accepts function of the DFA class where the empty string was being accepted
    by the DFA even when it was not in a final state.
  • Modify some existing functions to make them private and add type hints to the functions.
  • Modify the minimize function in the NFA class to use the minimize function of the DFA class
    when converting the NFA to a DFA.

- Implement the `minimize` function for the DFA
class. This funciton is used to reduce the number
of redundant states in the DFA.
- Add test cases for the `minimize` function.
- Fix a bug in the `accepts` function of the DFA
class where the empty string was being accepted
by the DFA even when it was not in a final state.
- Modify some existing functions to make them
private and add type hints to the functions.
- Modify the `minimize` function in the NFA class
to use the `minimize` function of the DFA class
when converting the NFA to a DFA.
Copy link

sonarqubecloud bot commented Sep 8, 2024

@rohaquinlop rohaquinlop merged commit afd8e3e into main Sep 8, 2024
3 checks passed
@rohaquinlop rohaquinlop deleted the issue-43 branch September 8, 2024 01:33
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

Successfully merging this pull request may close these issues.

1 participant