转载出处:http://blog.csdn.net/ffq5050139/article/details/7832991?
后边的数字是我统计时的A题人数,人数要比星号有意义的多
=============================以下是最小生成树+并查集======================================?
【HDU】?
1213 How Many Tables 基础并查集★?7737
1272 小希的迷宫 基础并查集★?9150
1325&&poj1308 Is It A Tree? 基础并查集★?3553
1856 More is better 基础并查集★?6073
1102 Constructing Roads 基础最小生成树★?5825
1232 畅通工程 基础并查集★17635?
1233 还是畅通工程 基础最小生成树★12673?
1863 畅通工程 基础最小生成树★?8014
1875 畅通工程再续 基础最小生成树★?5180
1879 继续畅通工程 基础最小生成树★?6602
3371 Connect the Cities 简单最小生成树★?3274
1301 Jungle Roads 基础最小生成树★?3471
1162 Eddy’s picture基础最小生成树★?3771
1198 Farm Irrigation 基础最小生成树★?2716
1598 find the most comfortable road 枚举+最小生成树★?1836
1811 Rank of Tetris 并查集+拓扑排序★★?1617
3926 Hand in Hand 同构图★?557
3938 Portal 离线+并查集★?495
2489 Minimal Ratio Tree dfs枚举组合情况+最小生成树★?839
4081 Qin Shi Huang’s National Road System最小生成树+DFS★????1450
4126 Genghis Khan the Conqueror 枚举+最小生成树+DFS(难)★★★★????482
1829&&poj2492 A Bug’sLife基础种类并查集★*?3227
1558 Segment set 计算几何+并查集★?1054
3461 Code Lock 并查集(有点难想到)★?481
3367 Pseudoforest 最大生成树★?727
2473 Junk-Mail Filter 并查集+设立虚父节点(马甲)★?2081
3172 Virtual Friends 带权并查集★?1594
3635 Dragon Balls 带权并查集★?1372
3047 Zjnu Stadium 带权并查集★?691
3038 How Many Answers Are Wrong 种类并查集★?1134
2818 Building Block 带权并查集★?1033
3234 Exclusive-OR 异或并查集(难)★?660
2121 Ice_cream’s world II最小树形图(要输出根有点恶心)★★?740
4009 Transfer water 最小树形图(模板题)★?1436
3311 Dig The Wells 斯坦纳树(状压DP)(模板题)★★?448
4085 Peach Blossom Spring 斯坦纳树(状压DP)(有可能是森林…)★★★?730
2586 How far away ? LCA★?2408
2874 Connections between cities LCA★?1517
3486 Interviewe RMQ★?1353
2888 Check Corners 二维RMQ★?706
3183 A Magic Lamp RMQ(有点难想到,有点难联系到RMQ)★★?738
【POJ】?
1258 最经典的MST★?17284
1789 Truck History 最小生成树★?7624
1287 Networking 简单★?3555
2349 Arctic Network 简单★?3666
1611 The Suspects 并查集★?11760
2377 kruskal★?4646
2524 Ubiquitous Religions 并查集★?12795
2236 Wireless Network 并查集+计算几何★?7327
2560 Kruskal 并查集★?3525
1861 Kruskal ★?5511
3625 prim★?2726
1679 - The Unique MST(基础)判断MST是否唯一★?7693
3522 - Slim Span(基础)求一颗生成树,让最大边最小边差值最小★?3553
2485 Highways MST中的最长边★?10808
2395 最小生成树的最长边★?4589
1751 Highways 求出方案★?2709
POJ-1182 食物链 种类并查集★?14080
POJ 1456 Supermarket 贪心+区间合并★?4110
POJ-1703 种类并查集★?10330
POJ-1988 种类并查集★?7050
POJ-1733 Parity game 种类并查集,先要离散化一下,不影响结果★?2585
POJ-1417 True Liars(难)并查集+DP种类并查集★★?633
POJ-2912 Rochambeau(难) baidu的题,很不错…是食物链的加强版.判断裁判比较难想.★★★?711
POJ 2728 Desert King(中等)最优比率生成树★?6005
POJ 1639 Picnic Planning(较难)顶点度数有限制的最小生成树★★?3385
POJ 3164 Command Network(难)最小树形图★★?3976
poj3723 好题!!!最大生成树★?2934
poj3228 好好题!!!网络流/并查集★1072
【ZOJ】?
ZOJ-3261 逆向并查集 ★★
===============================以下是最短路系列====================================?
【HDU】?
1548 A strange lift 基础最短路(或bfs)★?5074
2544 最短路 基础最短路★15642?
3790 最短路径问题 基础最短路★4464?
2066 一个人的旅行 基础最短路(多源多汇,可以建立超级源点和终点)★7355?
2112 HDU Today 基础最短路★3906?
1874 畅通工程续 基础最短路★11584?
1217 Arbitrage 货币交换 Floyd (或者 Bellman-Ford判环)★?2287
1245 Saving James Bond 计算几何+最短路★?447
1317 XYZZY Bellman-Ford判环,有负权★?825
1535 Invitation Cards 有向图的来回最短路,(反向建图)★?1125
1546 Idiomatic Phrases Game 最短路★?732
2680 Choose the best route 最短路★?2655
2923 Einbahnstrasse 最短路★?692
3339 In Action 最短路+背包★?1403
2224 The shortest path 双调旅行商问题★★450?
2807 The Shortest Path 矩阵运算+最短路(floyd)★?827
1595 find the longest of the shortest枚举+最短路(删掉任意一条边的最长最短路)★?713
3986 Harry Potter and the Final Battle枚举+最短路(删掉任意一条边的最长最短路)★?755
1599 find the mincost route floyd求最小环★?1122
1839 Delay Constrained… 二分下限+最短路(带限制最短路)★?388
3631 Shortest Path Floyd插点法★?1001
4114 Disney’s FastPass最短路+三维维状压DP(难)★★★?532
3832 Earth Hour 三点连通(斯坦纳树)★?655
3873 Invade the Mars Dij变体(好题!,带限制最短路)★★?440
4063 Aircraft 几何构图+最短路★★★★?276
4179 Difficult Routes dis[][]开二维状态的最短路(带限制最短路)★★★?150
1869 六度分离 Floyd最短路★?2009
1385 Minimum Transport Cost 最短路+输出路径(输出字典序最小路径,有点恶心)★?2075
1224 free DIY Tour 最短路+输出路径★?1419
1142 A Walk Through the Forest 最短路+记忆搜索★?2268
1596 find the safest road 乘积最小的最短路★?2701
1598 find the most comfortable road 二分速度差+最短路(带限制最短路)★?1835
2722 Here We Go(relians) Again 最短路★★?377
2962 Trucking 二分+最短路(带限制最短路)★★?671
1690 Bus System 最短路★?1835
2433 Travel 删边+最短路之和(预处理桥边)★★?608
2363 Cycling 二分+最短路(带限制最短路)★★?357
2377 Bus Pass 最短路(寻找一个点的最长最短路最小)★★★?293
2833 WuKong 最短路+记忆化搜索(求两条最短路的最多公共点)★★?503
1688 Sightseeing 最短次短路条数★★★?280
3191 How Many Paths Are There 次短路条数★★?391
2482 Transit search 最短路★★★?287
3768 Shopping 最短路+dfs(或最短路+状压DP)★★★?188
3035 War 平面图最小割(建图麻烦)★★?330
3870 Catch the Theves 平面图最小割(建图麻烦)★★?450
3860 Circuit Board 平面图最小割(建图麻烦)★★★?108
【POJ】?
1062 昂贵的聘礼 竟然可以和最短路联系起来★?11139
1094 Sorting It All Out Floyd判环+拓扑排序★?9952
1125 Stockbroker Grapevine Floyd★?15637
1135 Domino Effect 最短路,比较有意思★★?2313
1161 Walls 最短路(图太恶心了)★★?3678
1502 MPI Maelstrom Floyd★?3625
1511 Invitation Cards 来回最短路★?6688
1556 The Doors 计算几何+最短路★★?2640
1724 ROADS 带限制的最短路,dis[][]开二维来记录信息(或广搜)★★?4156
1734 Sightseeing trip floyd最小环路径★?1941
1797 Heavy Transportation 二分枚举+最短路★?5749
1847 Tram 简单最短路★?3905
1860 Currency Exchange 货币兑换★?7650
1949 Chores 反向建边,求最长路★★?2487
2139 Six Degrees of Cowvin Bacon Floyd★?1512
2240 Arbitrage 货币兑换★?6979
2253 Frogger 二分+最短路★?8930
2312 坦克大战 spfa最短路本质变形–>广搜★?2395
2387 Til the Cows Come Home 基础最短路★?10749
2394 Checking an Alibi 最短路★?2297
2449 Remmarguts’ Date A*求第K短路★★?6024
2457 Part Acquisition 最短路 (输出路径)★★?1634
2472 106 miles to Chicago 乘积最短路(log一下,乘变加)★★?1925
2502 Subway?2161
2570 Fiber Network floyd?1454
3013 圣诞树?4589
3037 Skiing?1113
3072 Robot?562
3114 Countries in War 强联通+最短路?801
3160 Father Christmas flymouse 强联通+最长路?916
3255 Roadblock?2986
3259 Wormholes (寻找负权回路)?11999
3268 Silver Cow Part?6071
3311 Hie with the Pie floyd+状压?2674
3328 Cliff Climbing?706
3439 Server Relocation?869
3463 Sightseeing 次短路条数?2621
3159?6464 spfa用queue会tle
3521 Geometric Map 计算几何+最短路?140
3549 GSM phone 计算几何+最短路?49
3594 Escort of Dr. Who How?546
3613 Cow Relays 经过N条边的最短路// floyd +二分矩阵?2206
3615 Cow Hurdles?2768
3621 最优比率环?2703
3635 full tank??2168
3660 传递闭包?4073
3662 Telephone Lines?1838
============================以下是差分约束系列============================?
【HDU】?
1384 Intervals?1122
1529 Cashier Employment?385
1531 King?513
1534 Schedule Problem?601
3440 House Man?850
3592 World Exhibition?632
3666 THE MATRIX PROBLEM?1852
【POJ】?
1201?8446
1275?2663
1364?3879
1716?5460
2949?1546
2983?3614
3159?6468
3169?3715
3687?3246
============================以下是二分匹配系列============================?
普通匹配,多重匹配?
【HDU】?
1068 Girls andBoys★3703
1150 Machine Schedule★3173
1151 Air Raid★2373
1179 Ollivanders: Makers of Fine Wands since 382BC.★★562
1281 棋盘游戏★1557
1498 50 years,50 colors★51
1507 Uncle Tom's Inherited Land*★849
1528 Card Game Cheater★731
1845 Jimmy’s Assignment★★431
2063 过山车★5502
2119 Matrix★932
2444 The Accomodation of Students★1369
2768 Cat vs. Dog★633
3081 MarriageMatch II★810
3360 National Treasures★★385
1045 也可搜索★3974
1350 最小路径覆盖★385
3118 类似二分匹配★437
3729★711
2389★911
1054★2484
2819 完全匹配★★105
1668 二分+多重匹配★★★50
3605 多重匹配+读入优化★1402
3861 强连通+二分匹配★★665
2236 无题II★★520
3468★385
4185 奇偶匹配★466
【POJ】?
1087 A Plug for UNIX?4756
1274 The Perfect Stall?8815
1469 COURSES?7227
1486 Sorting Slides 二分图的必须边?1377
1548 Robots?1802
1698 Alice’s Chance?2382
1719 Shooting Contest?1453
1904 King’s Quest求二分图所有可能的匹配边?2751
2060 Taxi Cab Scheme 最小路径覆盖?2498
2112 Optimal Milking 二分+多重匹配?4691
2226 Muddy Fields 行列的覆盖?3167
2239 Selecting Courses?3946
2289 Jamie’s Contact Groups二分+多重匹配?2161
2446 Chessboard?4444
2536 Gopher II?2861
2584 T-Shirt Gumbo?1295
2594 Treasure Exploration 可相交最小路径覆盖?2836
2672 Hotkeys?286
2724 Purifying Machine?1269
3020 Antenna Placement?3463
3041 Asteroids 简单行列匹配?8800
3189 Steady Cow Assignment 二分+多重匹配?1919
3207 Ikki’s Story IV - Panda’s Trick?3061
3216 Repairing Company?1728
3343 Against Mammoths?559
3692 Kindergarten?2670
2771 最大独立集?2137
============================以下是KM算法系列============================?
【HDU】?
2255 奔小康赚大钱★1896
1533 Going Home★1578
1853 Cyclic Tour★901
3488 Tour★1041
3435 A new Graph Game★756
2426 Interesting Housing Problem★939
2853 Assignment★★526
3718 Similarity★★610
3722 Card Game★★584
3395 Special Fish★★652
2282 Chocolate★★★242
2813 One fihgt one★749
2448 Mining Station on the Sea★716
3315 My Brute★★★346
3523 Image copy detection★★★195
【POJ】?
2195 Going Home 最小权值匹配?9521
2400 Supervisor, Supervisee 输出所有最小权匹配?690
2516 Minimum Cost 最小权值匹配或最小费用流?4837
3565 Ants?1418
3686 The Windy’s最小权值匹配1814
============================以下是最大团&稳定婚姻系列============================?
【HDU】?
1530 Maximum Clique?1556
1435 Stable Match?121
3585 maximum shortest distance 二分+最大团?365
1522 Marriage is Stable?370
1914 The Stable Marriage Problem?246
【POJ】?
1129 四色定理 着色问题?6555
1419 最大独立集?1970
2989 极大团?580
3487 The Stable Marriage Problem 稳定婚姻?1056
============================以下是强双联通系列============================?
【HDU】?
强连通:?
1269 迷宫城堡 判断是否是一个强连通?3777
2767 Proving Equivalences 至少加几条边让整个图变成强连通?1291
3836 Equivalent Sets 至少加几条边让整个图变成强连通?1091
1827 Summer Holiday 传递的最小费用?844
3072 Intelligence System 传递的最小费用?681
3861 The King’s Problem强连通+二分匹配?665
3639 Hawk-and-Chicken 强连通缩点 +树形dp(累加子节点的总权值)?597
3594 Cactus 仙人掌图?659
双连通:?
2242 考研路茫茫——空调教室 双联通缩点+树形DP?666
2460 Network 边双连通?190
3849 By Recognizing These Guys, We Find SocialNetworks Useful双连通求桥?659
3896 Greatest TC 双连通?166
4005 The war 边双连通?478
LCA:?
2586 How far away ??2446
2874 Connections between cities?1530
3078 Network LCA+排序?207
3830 Checkers 二分+LCA?227
【POJ】?
强连通:?
1236 Network of Schools?4767
2553 The Bottom of a Graph 好题! 找出度为0的集合?3795
2186 Popular Cows 好题! 找出度为0的,其他分量都指向它的集合?10014
2375 Cow Ski Area 强连通?705
2762 Going from u to v or from v to u?缩点+拓扑排序?3959
3160 Father Christmas flymouse 强连通+最短路?920
3180 The Cow Prom 判断有几个环, 分量中元素大于1的个数?798
3114 Countries in War 强连通+最短路?830
3592 Instantaneous Transference 强连通分量+最长路?1304
1904 King’s Quest强连通+并查集2755
双连通:?
3694 Network 边双连通 (同hdu2460)?2551
3177 Redundant Paths 构造边双连通?4251
3352 Road Construction 构造边双连通?4638
2942 Knights of the Round Table (点双连通经典题)?3396
1515 Street Directions (无向图改有向图)?393
1438 One-way Traffic (混合图改有向图)?253
LCA:?
1330 Nearest Common Ancestors?10602
1470 Closest Common Ancestors?5226
1986 Distance Queries?3458
3417 Network?1156
3728 The merchant LCA+并查集,更新询问?1128
2763 Housewife Wind LCA+树状数组?1682
============================以下是2-SAT系列============================?
【HDU】?
3062 Party?1509
1824 Let’s go home?601
3622 Bomb Game?1439
3715 Go Deeper?755
1815 Building roads?246
2723 Get Luffy Out?80
1816 Get Luffy Out *?231
1814 Peaceful Commission?641
4115 Eliminate the Conflict797
【POJ】?
2296 Map Labeler?572
2723 Get Luffy Out?2953
2749 Building roads?2204
3207 Ikki’s Story IV - Panda’s Trick?3064
3648 Wedding?2604
3678 Katu Puzzle?2994
3683 Priest John’s Busiest Day?2882
3905 Perfect Election?414
============================以下是欧拉回路系列============================?
【HDU】?
1878 欧拉回路 判断?3660
3018 Ant Trip 一笔画问题?690
1116?1975
2894 兹鼓欧拉回路?338
1956?139
3472 混合欧拉?382
【POJ】?
2513 欧拉路?8374
1041 John’s trip欧拉回路?2510
1386 Play on Words 单词接龙?3490
2230 Watchcow 欧拉回路?2693
2513 Colored Sticks 无向图欧拉路?8374
2337 Catenyms 欧拉路径?2611
1392 Ouroboros Snake 兹鼓欧拉回路?500
1780 code?789
1637 混合欧拉?3357
【zoj】?
1992?
============================以下是拓扑排序系列============================?
【HDU】?
1285 确定比赛名次?5614
2094 产生冠军?4731
2647 Reward?1388
3342 Legal or Not?2293
1811 Rank of Tetris 拓扑+并查集?1622
3231 三维拓扑?380
【POJ】?
1094 Sorting It All Out Floyd+拓扑?9965
2367 Genealogical tree?2155
3660 Cow Contest?4113
3687 Labeling Balls 神奇的拓扑?3253
1128 Frame Stacking DFS版拓扑?1483
1270 Following Orders 拓扑+回溯?1588
1420 Spreadsheet 模拟拓扑?285
2762 Going from u to v or from v to u?强连通+拓扑?3959
3553 Task schedule?191
============================以下是竞赛图系列============================?
竞赛图下的哈密顿问题?
Strange Country II ZOJ-3332?
Task Sequences POJ-1776?
The book SGU-122?
Tour Route POJ-3780?
Tour Route HDOJ-3414?
============================以下是网络流系列============================?
【HDU】
1532 Drainage Ditches(基础) [最大流]?4915★
3549 Flow Problem(基础) [最大流]?4243★
3572 Task Schedule [最大流]任务分配,判断满流?1463★
2732 Leapin’ Lizards(难) [最大流]?568★★
3338 Kakuro Extension [最大流][数和]神奇最大流行进列出?364★★
2883 kebab [最大流]判断满流?434★★
3605 Escape [最大流](多重匹配?1400★
3081 Marriage Match II [二分最大流]+并查集?807★
3277 Marriage Match III [二分最大流]同上,多了拆点?444★
3416 Marriage Match IV [最大流]最短路+最大流?672★
2485 Destroying the bus stations [最大流]最短路+最大流?725★
3468 Treasure Hunting?最大流+最短路?384★★
3551 Hard Problem [最大流]?144★★
3998 Sequence(难) [DP+最大流]最长上升子序列?578★
3917 Road constructions [最大权闭包]?463★★
3879 Base Station [最大权闭包]?821★
3061 Battle [最大权闭包]?453★★
3996 Gold Mine [最大权闭包]?492★★
3472 HS BDC [混合欧拉]381★★
hdu4183 来回走不重复点的网络流.244★★
1533 Going Home(基础) [费用流]?1569★
3488 Tour [费用流]圈?1013★
3435 A new Graph Game [费用流]圈?755★
1853 Cyclic Tour [费用流]圈?900★
2686 Matrix [费用流]?978★
3376 Matrix Again [费用流]?907★
3667 Transportation [费用流]拆边?935★
3315 My Brute?费用流?345★★
3395 Special Fish?费用流?647★
2448 Mining Station on the Sea?费用流?748★
4067 Random Maze(难) [费用流]?496★★
3947 River Problem(难) [费用流]神奇费用流,流量不等式建图?205★★
3046 Pleasant sheep and big big wolf [最小割]?957★
1565 方格取数(1) [最小割]?2297★
1569 方格取数(2) [最小割]?1578★
3820 Golden Eggs [最小割]方格加强?255★★
3491 Thieves [最小割]最小点割集?625★
3657 Game [最小割]最大点权独立集?423★★
3313 Key Vertex [最小割]?290★★
3251 Being a Hero [最小割]?366★★
3157 Crazy Circuits [上下流]?298★★
3002 King of Destruction [全局最小割]?420★★
3691 Nubulsa Expo [全局最小割]?379★★
【POJ】?
1087 A Plug for UNIX?最大流? 4756
1274 The Perfect Stall?最大流?8815
1325 Machine Schedule?最大流?5238
1698 Alice’s Chance?最大流?2381
2239 Selecting Courses?最大流?3942
2446 Chessboard?最大流?好题啊?4443
2536 Gopher II?最大流?2861
2771 Guardian of Decency [最大流]二分匹配最大独立集?2137
3041 Asteroids?最大流?8800
2584 T-Shirt Gumbo?最大流?1295
3189 Steady Cow Assignment(中等)?二分最大流?1919
1149 PIGS [最大流]绝对经典的构图题?7866
1273 Drainage Ditches?最大流?22672
1459 Power Network(基础) [最大流]?12520
3281 Dining [最大流]?4659
2112 Optimal Milking(基础) [二分最大流]?4691
2289 Jamie’s Contact Groups [二分最大流]?2161
2391 Ombrophobic Bovines(中等) [二分最大流]?3434
2455 Secret Milking Machine(基础) [二分最大流]?2991
3228 Gold Transportation?二分最大流?1072
2699 The Maximum Number of Strong Kings(较难) [枚举人数 +最大流]?790
3498 March of the Penguins(中等) [最大流]枚举汇点,满足点容量限制的网络流?1969
2987 Firing(较难) [最大权闭包]?2589
1637 Sightseeing tour(Crazy) [混合欧拉]?3346
2135 Farm Tour [费用流] (来回最短路)?3158
2175 Evacuation Plan(中等) [费用流]消圈?970
2195 Going Home [费用流]?9521
2516 Minimum Cost [费用流]?4837
3422 Kaka’s Matrix Travels(中等) [费用流]拆点?3312
3680 Intervals(较难) [费用流]经典,费用流+离散化?2791
3686 The Windy’s?费用流?1814
3762 The Bonus Salary! [费用流]?635
1815 Friendship(中等) [最小割]最小点割集?2644
1966 Cable TV Network(中等) [最小割]最小点割集?1889
2125 Destroying The Graph(难) [最小割]最小点权覆盖?2370
3084 Panic Room(中等,好题) [最小割]边连通度?991
3204 Ikki’s Story I - Road Reconstruction(基础) [最小割]求关键边?2034
3308 Paratroopers(较难) [最小割]乘积取对数,最小点权覆盖?2281
3436 ACM Computer Factory [最小割]收集流,残留搜集找边?1910
3469 Dual Core CPU(中等) [最小割]收集流?8598
3921 Destroying the bus stations [最小割]点连通?613
2396 Budget(中等) [有源汇的上下界可行流]?2362
3155 Hard Life(很挑战一题) [最大密度子图]?2097
2914 Minimum Cut [无向图最小割]?3361
============================以下是dancing links系列============================?
【ZOJ】
ZOJ-3209 Treasure Map?
ZOJ-3038Triangle War II ?
【POJ】
POJ-1084 Square Destroyer ?1431
POJ-2676 Sudoku ?7584
POJ-3074 Sudoku ?3177
POJ-3076 Sudoku ?2221
POJ-3740 Easy Finding ?4635
POJ-3435 Sudoku Checker?772
【HDU】
HDOJ-4069 Squiggly Sudoku ?646
HDOJ-3498 whosyourdaddy ?746
HDOJ-2295 Radar ?1110
HDOJ-3529 Bomberman - Just Search! ?351
HDOJ-3656 Fire station ?491
HDOJ-3663 Power Stations ?552
HDOJ-2828 Lamp ?275
HDOJ-3156 Repair Depots ?155
HDOJ-2518 Dominoes ?60
HDOJ-3957 Street Fighter ?464
HDOJ-1426 Sudoku Killer ?94
HDOJ-2780 Su-Su-Sudoku ?237
HDOJ-3111 Sudoku ?266
HDOJ-3909 Sudoku ?229
HDOJ-1603 A Puzzling Problem ?91
hust1017 精确覆盖。?
fzu1686,nuaa1507 重复覆盖。?
hit2199,2882,2959 精确覆盖(数独)。?
SPOJ1771 精确覆盖(N皇后问题)。?