OI is Rui National DAY2: On thematic map
dfs / examples
Determining whether or not there is at least three points to simple paths between disjoint FIG.
One idea is the maximum flow (later said to do, but the practice is polynomial time
Next GavinZheng immortal talking about minimum spanning tree
Chen said that practice is the main dfs
In the first two points in two-point components in China Unicom
- By double ring is simple, only two, absent
- There is speculation that three other cases
Dual component resolution Unicom
Output of the tree can be judged dfs, discuss the non-tree edge coverage
- Contained within
- Below the bifurcation attached to the top
- intersect
Output points to
BFS / examples
BFS tree did not jump edge
Counting / dynamic programming it useful
Bfs sequence like a tree can judge the distance?
Right side is 0/1 deque BFS
Shortest
Sometimes you can use buckets instead of dijkstra heap (note range)
Example: codeforces 575 g of
Minimum spanning tree
- Minimum bottleneck road
- The second smallest Spanning Tree
- Spanning count / Matrix tree
Cut Point / Bridge
The cut point by double circle adjacent relationship forming side tree
Double bridge formation side edge Shuangshugou
Example: codeforces700C
All bridge request to the S T of a path: 1 answers
The answer is 2: enumerate each side of the path, find all the bridges
Other knowledge
- Euler
- 2-SAT
Do network flow problem
Miscellaneous questions
AGC 038D (+ Analysis of the communication block configured to bridge)
2016 meter garlic road map of Baidu real-time traffic (the shortcomings shortest)
sums GYM100753M
Get modulus, built \ (\ min (a) * n \) edges calculated shortest scheme
Can optimize, optimize the right side into 0-1
bitset Acceleration: obtaining fast bit <10 ^ 5> a [10 ^ 5]
Transitive Closure bitset +
Chen also said that the main graph theory, network flows are generally ~