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

Add residual reduction algorithm #406

Merged
merged 5 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions include/mata/nfa/nfa.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <unordered_set>
#include <utility>
#include <vector>
#include <queue>

#include "mata/alphabet.hh"
#include "mata/parser/parser.hh"
Expand Down Expand Up @@ -535,11 +536,14 @@ Nfa determinize(const Nfa& aut, std::unordered_map<StateSet, State> *subset_map
* @param[in] aut Automaton to reduce.
* @param[out] state_renaming Mapping of original states to reduced states.
* @param[in] params Optional parameters to control the reduction algorithm:
* - "algorithm": "simulation".
* - "algorithm": "simulation", "residual",
* and options to parametrize residual reduction, not utilized in simulation
* - "type": "after", "with",
* - "direction": "forward", "backward".
* @return Reduced automaton.
*/
Nfa reduce(const Nfa &aut, StateRenaming *state_renaming = nullptr,
const ParameterMap& params = {{ "algorithm", "simulation" } });
const ParameterMap& params = {{ "algorithm", "simulation" }, { "type", "after" }, { "direction", "forward" } });

/**
* @brief Checks inclusion of languages of two NFAs: @p smaller and @p bigger (smaller <= bigger).
Expand Down
Loading
Loading