提高图论大全

1.无向图的DFS树

[CF962F] Simple Cycles Edges

[BZOJ4238] 电压

Sabotage

2.欧拉路

[POJ1386] Play on Words

4.最小生成树

[JSOI2008] 最小生成树计数

[USACO08OCT] 打井

[BZOJ3714] Kuglarz

[CF437D] The Child and Zoo

[BZOJ2395] [Balkan2011] Time is Money

$(\sum_{e\in T}t_e)(\sum_{e\in T}c_e)$

$n\leq 200, m\leq 10000$

$最大化\; (x-x_1,y-y_1)\times (x-x_2,y-y_2)\\ =(x-x_1)(y_2-y_1)-(y-y_1)(x_2-x_1)\\ =xy_2-xy_1-x_1y_2+x_1y_1-yx_2+yx_1+y_1x_2-y_1x\\ 将与x,y无关的部分去掉，=y(x_1-x_2)+x(y_2-y_1)$

6.最短路

[POJ3613] Cow Relays

[POJ1734] Sightseeing Trip

[POJ1860] Currency Exchange

[BZOJ2118] 墨墨的等式

$\sum_{i=1}^n a_ix_i=B\;\;\;\;\;n\leq 12\;\;\;a_i\leq 5\times 10^5\;\;\; 1\leq B\leq 10^{12}$

[经典构图] 区间覆盖

[ZJU1508] Interval

[POJ1275] Cashier Employment

$s_i\geq s_{i-1}\geq s_i-num_i\\ s_i-s_{16+i}+s_{24}\geq R_i\;(i\leq 8)\\ s_i-s_{i-8}\geq R_i\;(i\geq 9)$

7.Tarjan

[HNOI2012] 矿场搭建

[POJ3177] Redundant Paths

[HDU4612] Warm Up

2-sat 模板：[POJ3678] Katu Puzzle

[ZJOI2007] 矩阵游戏

[SCOI2010] 游戏

[BZOJ2150] 部落战争

9.结语

posted @ 2020-07-26 15:42  lindongli2004  阅读(120)  评论(0编辑  收藏  举报