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

O(n^3) time worst-case #1

Open
noughtmare opened this issue Jun 12, 2023 · 0 comments
Open

O(n^3) time worst-case #1

noughtmare opened this issue Jun 12, 2023 · 0 comments
Labels

Comments

@noughtmare
Copy link
Owner

noughtmare commented Jun 12, 2023

I think it is possible to make the algorithm have O(n^3) worst-case time complexity.

This is not a priority for me, because it probably requires O(n^3) space as well and both those time and space complexity is not really acceptable.

But it might still be interesting to see if it is possible.

Also, it is probably impossible to do this for arbitrary monadic parsers, but I think there is a subset of monadic parsers that can run in O(n^3) time in the worst case. That subset may be the parsers that only use the monadically bound variables to determine whether to fail or proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant