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

Optimize Curve Data answer check #552

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

Conversation

Seren-35
Copy link
Contributor

Resolves #71. I haven't read into the original code too deeply but it brings up Heap's algorithm so my guess is it runs in pessimistic n! time or so, with a number of heuristics in place to mitigate it for common inputs. My algorithm runs in O(n^2). It can be improved further by heuristics if need be, but my testing suggests it already checks any realistically humanly solvable grid in an instant.

Copy link

vercel bot commented Jul 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pzprjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 8:22pm

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

Successfully merging this pull request may close these issues.

Curve Data: Answer checking is currently slow
2 participants