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 Gym Simplification Error #9

Open
PandaButts opened this issue Mar 28, 2016 · 1 comment
Open

Regex Gym Simplification Error #9

PandaButts opened this issue Mar 28, 2016 · 1 comment

Comments

@PandaButts
Copy link

The Regex Gym won't simplify (a+ba*)* any further, but I believe it should simplify to just (a+b)*

@ibudiselic
Copy link
Collaborator

Thanks for getting in touch. I wouldn't say this is an error per se, it's
just that we don't have a rule that does this specific minimization.
Finding minimal length regular expressions is (I believe) PSPACE-hard so
what we do instead is implement a bunch of simplification rules that are
then applied. So we could add a rule like (A+BA_) => (A+B)_ for any
language pair A and B, but that still wouldn't minimize some other
"obviously non-minimal" regexes.

On Mon, Mar 28, 2016 at 10:45 AM, PandaButts [email protected]
wrote:

The Regex Gym won't simplify (a+ba_)_ any further, but I believe it
should simplify to just (a+b)*


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#9

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