Skip to content

Make the compiler produce minimal DFAs #91

Description

@V0ldek

Is your feature request related to a problem? Please describe.
After #7 the compiler no longer necessarily outputs a minimal DFA. It's still a correct DFA, just not minimal.

Describe the solution you'd like
The algorithm in query::automaton::minimizer needs to be rewritten to minimize the automaton.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Example query that produces a non-minimal automaton: $..a.*.*..b.*.*. In the resulting automaton below states 3 and 4 are equivalent.

garph

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions