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

Optimized Graph::from_nfa #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MasWag
Copy link
Collaborator

@MasWag MasWag commented Jul 6, 2023

I optimized powerset construction by the following:

  • using boost::unordered_map instead of std::map
  • using std::vector, std::sort, std::unique, and std::erase instead of std::set
  • checking if visited by a function instead of having a dedicated set

@MasWag MasWag requested a review from ushitora-anqou July 6, 2023 12:03
@MasWag MasWag self-assigned this Jul 6, 2023
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.

2 participants