图和最短路

· · 个人记录

普及组 DFS、BFS 与图的遍历

模板 / 例题真题

  1. P2661 [NOIP2015 提高组] 信息传递 https://www.luogu.com.cn/problem/P2661
  2. P5022 [NOIP2018 提高组] 旅行 https://www.luogu.com.cn/problem/P5022
  3. P2296 [NOIP2014 提高组] 寻找道路 https://www.luogu.com.cn/problem/P2296
  4. P5663 [CSP‑J 2019 T4] 加工零件 https://www.luogu.com.cn/problem/P5663
  5. P3956 [NOIP2017 普及组T3] 棋盘 https://www.luogu.com.cn/problem/P3956
  6. P11228 [CSP‑J 2024 T2] 地图探险 https://www.luogu.com.cn/problem/P11228
  7. P1434 [SHOI2002] 滑雪 https://www.luogu.com.cn/problem/P1434
  8. P5018 [NOIP2018 普及组T4] 对称二叉树 https://www.luogu.com.cn/problem/P5018
  9. P1074 [NOIP2009 提高组] 靶形数独 https://www.luogu.com.cn/problem/P1074
  10. P1092 [NOIP2004 提高组] 虫食算 https://www.luogu.com.cn/problem/P1092
  11. P1032 [NOIP2002 提高组] 字串变换 https://www.luogu.com.cn/problem/P1032
  12. P1030 [NOIP2001 普及组] 求先序排列 https://www.luogu.com.cn/problem/P1030
  13. P1101 [NOIP2004 普及组] FBI树 https://www.luogu.com.cn/problem/P1101
  14. P1983 [NOIP2013 普及组T4] 车站分级 https://www.luogu.com.cn/problem/P1983
  15. P7113 [NOIP2020 T1] 排水系统 https://www.luogu.com.cn/problem/P7113
  16. P7771 【模板】欧拉路径 https://www.luogu.com.cn/problem/P7771
  17. P1525 [NOIP2010 提高组] 关押罪犯 https://www.luogu.com.cn/problem/P1525
  18. P10927 Sightseeing Trip(最小简单环) https://www.luogu.com.cn/problem/P10927

练习清单

第一级·必做

  1. P5318 查找文献 https://www.luogu.com.cn/problem/P5318
  2. P3916 图的遍历 https://www.luogu.com.cn/problem/P3916
  3. P1443 马的遍历 https://www.luogu.com.cn/problem/P1443
  4. P1596 Lake Counting https://www.luogu.com.cn/problem/P1596
  5. P1101 单词方阵 https://www.luogu.com.cn/problem/P1101
  6. P1141 01迷宫 https://www.luogu.com.cn/problem/P1141
  7. P11228 [CSP‑J 2024 T2] 地图探险 https://www.luogu.com.cn/problem/P11228
  8. P1030 [NOIP2001 普及组] 求先序排列 https://www.luogu.com.cn/problem/P1030
  9. P1101 [NOIP2004 普及组] FBI树 https://www.luogu.com.cn/problem/P1101
  10. P1434 [SHOI2002] 滑雪 https://www.luogu.com.cn/problem/P1434

第二级·进阶:真题与常见模型

  1. P2296 [NOIP2014 提高组] 寻找道路 https://www.luogu.com.cn/problem/P2296
  2. P5663 [CSP‑J 2019 T4] 加工零件 https://www.luogu.com.cn/problem/P5663
  3. P3956 [NOIP2017 普及组T3] 棋盘 https://www.luogu.com.cn/problem/P3956
  4. P2661 [NOIP2015 提高组] 信息传递 https://www.luogu.com.cn/problem/P2661
  5. P5018 [NOIP2018 普及组T4] 对称二叉树 https://www.luogu.com.cn/problem/P5018
  6. P1219 八皇后 https://www.luogu.com.cn/problem/P1219
  7. P1983 [NOIP2013 普及组T4] 车站分级 https://www.luogu.com.cn/problem/P1983
  8. P2661 [NOIP2003 提高组] 神经网络 https://www.luogu.com.cn/problem/P2661
  9. P7113 [NOIP2020 T1] 排水系统 https://www.luogu.com.cn/problem/P7113

第三级·选做挑战

  1. P5022 [NOIP2018 提高组] 旅行 https://www.luogu.com.cn/problem/P5022
  2. P1074 [NOIP2009 提高组] 靶形数独 https://www.luogu.com.cn/problem/P1074
  3. P1092 [NOIP2004 提高组] 虫食算 https://www.luogu.com.cn/problem/P1092
  4. P1032 [NOIP2002 提高组] 字串变换 https://www.luogu.com.cn/problem/P1032
  5. P1099 [NOIP2007 提高组] 树网的核 https://www.luogu.com.cn/problem/P1099
  6. P1525 [NOIP2010 提高组] 关押罪犯 https://www.luogu.com.cn/problem/P1525
  7. P7074 [CSP‑J 2020 T4] 方格取数 https://www.luogu.com.cn/problem/P7074

提高组 最短路

模板题

  1. LOJ 119 Bellman‑Ford模板 https://loj.ac/p/119
  2. P3371 【模板】单源最短路径(弱化版)SPFA https://www.luogu.com.cn/problem/P3371
  3. P3385 【模板】负环 https://www.luogu.com.cn/problem/P3385
  4. P4779 【模板】单源最短路径(标准版)Dijkstra https://www.luogu.com.cn/problem/P4779
  5. P5960 【模板】差分约束算法 https://www.luogu.com.cn/problem/P5960
  6. P5905 【模板】Johnson 全源最短路 https://www.luogu.com.cn/problem/P5905

例题

  1. P4568 [JLOI2011] 飞行路线(分层图Dijkstra,最多忽略k条边) https://www.luogu.com.cn/problem/P4568
  2. CF1473E Minimum Path https://codeforces.com/problemset/problem/1473/E
  3. P6880 [JOI2020] 奥运公交 https://www.luogu.com.cn/problem/P6880
  4. P10927 Sightseeing Trip(最小简单环,Floyd) https://www.luogu.com.cn/problem/P10927
  5. P5590 赛车游戏(差分约束构造边权) https://www.luogu.com.cn/problem/P5590