Skip to content
This repository was archived by the owner on Feb 17, 2026. It is now read-only.

making quasilinear complexity implementation linear#3605

Open
utsabsingharoy wants to merge 1 commit intomicrosoft:masterfrom
utsabsingharoy:master
Open

making quasilinear complexity implementation linear#3605
utsabsingharoy wants to merge 1 commit intomicrosoft:masterfrom
utsabsingharoy:master

Conversation

@utsabsingharoy
Copy link

Current implementation of StrongComponentsImpl and PostOrderTraversalImpl uses std::map, std::set making their complexity O(VlogV + E). Converting them to unordered containters effectively makes the amortised complexity O(V +E) which is expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant