-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Faster random tree generator #33743
Milestone
Comments
Commit: |
This comment has been minimized.
This comment has been minimized.
New commits:
|
Branch: public/graphs/33743_random_tree |
Dependencies: #33579 |
Reviewer: Travis Scrimshaw |
comment:2
Just goes to show that using the right data structures is important. |
Changed branch from public/graphs/33743_random_tree to |
This was referenced May 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use a heap to replace a loop searching for the vertex with smallest index and count 0 with a pop operation. The change is safe as it does not modify the order in which vertices are considered. This way, the generator is no longer quadratic.
Before (with #33579)
After
Depends on #33579
CC: @tscrim
Component: graph theory
Author: David Coudert
Branch/Commit:
ada25e3
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/33743
The text was updated successfully, but these errors were encountered: