-
Notifications
You must be signed in to change notification settings - Fork 5
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
Constrain sequence optimizer DFS to buffer size #4
Comments
I have a branch ready to PR for this change. It's based off of the branch in PR #6 though, so I'd like to settle that PR before opening this one. |
(See PR #9) |
Cool! I took a peek at your PR and it looks like it moves the result filtering to the sequence optimizer. Sorry for the lack of context in this issue - the possible optimization here was to backtrack the depth-first search in I suspect that this could be done by filtering cyberpunk2077-hacking-solver/lib/sequence-optimizer.ts Lines 54 to 57 in 1e72476
|
If it helps, here's a description I wrote to somebody about the general outlines of the solver's algorithm:
If you take a look at the linked graph, you can see how the leaf nodes of the tree have some very large lengths, and their amount increases...I don't know, polynomially? Compared to sequence count. So for a smaller buffer size with the sequences from the graph, we could easily cut out a majority of the combinations. Then again, even if there's a few thousand results, it's still fast enough to not notice. |
I'm still puzzling over this one a bit, working through the code to see how everything hangs together. I have some tests written around this, but I'm not certain yet the best way to optimize. I feel like I'm learning a lot, though. Thanks for all the info, and for letting me be a part of the project! |
No description provided.
The text was updated successfully, but these errors were encountered: