Skip to content

Simplify MCMF#317

Open
Matistjati wants to merge 1 commit into
kth-competitive-programming:mainfrom
Matistjati:improve-mcmf
Open

Simplify MCMF#317
Matistjati wants to merge 1 commit into
kth-competitive-programming:mainfrom
Matistjati:improve-mcmf

Conversation

@Matistjati

Copy link
Copy Markdown
Contributor

I considered what would happen if we replace the pbds priority queue with a normal priority_queue, mostly because in my experience, the PBDS is usually slower. As it turns out, it's not that bad. Compare std pq vs pbds pq (current KACTL) here.

So overall, the tradeoff is ~10% slower performance to gain a more slightly more understandable and shorter implementation. I think I will merge this into my personal TRD, but if you don't feel the tradeoff is worth it, feel free to close this PR.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant