Files
baritone/src/main/java/com/github/btrekkie/connectivity
William Jacobs 1536209eb3 Optimization: don't push forest edges if there are no non-forest edges
This optimizes the process of searching for a replacement edge to refrain from pushing forest edges down when a tree does not have any same-level non-forest edges. If a tree doesn't have any such edges, then there definitely isn't a replacement edge at that level, so we can avoid doing extra work.

Interestingly, with this optimization, ConnGraph reduces to a single Euler tour forest if the graph is a forest, with addEdge and removeEdge taking O(log N) (non-amortized) time with high probability.
2019-03-06 22:24:50 -05:00
..
2019-03-06 16:46:45 -05:00
2019-03-06 16:46:45 -05:00
2019-03-06 16:46:45 -05:00
2019-03-06 16:46:45 -05:00
2019-03-06 16:46:45 -05:00
2019-03-06 16:46:45 -05:00
2019-03-06 16:46:45 -05:00