跳到正文

算法·理论

我的心在撼动,像火焰一般熊熊燃烧

GY程袁浩约 5 分钟
原文
文章信息与版本

文章信息

发布
2025年10月20日
收录
2025年12月12日
更新
2026年11月20日
篇幅
约 5 分钟

版本

  1. v2当前
  2. v1
  1. 性质挖掘(OI 中的体现大多为计数、贪心或 DP),同时贪心和 DP 也拥有自己的技巧。计数基础则为套路的积累。

  2. DP

  3. 贪心(最优化)

  4. 计数,式子的变换

  5. 数据结构

  6. 数学

  7. 字符串

  8. 图论

  9. 代码

  10. 分类讨论

性质挖掘

生成树的性质, https://www.luogu.com.cn/article/yxvdm2km, https://www.luogu.com.cn/problem/AT_abc251_f

树的直径的性质, https://www.luogu.com.cn/article/pvpbmir4

DP

换维 DP,https://www.luogu.com.cn/article/pl2wbumj

DP 多维状态的分步优化,https://www.cnblogs.com/A-Quark/p/16448270.html

换根 DP 的常用处理方式,https://www.cnblogs.com/cpchenpi/p/-/Rerooting , https://www.luogu.com.cn/article/8kxbicj4

覆盖后效性的时间倒流处理,https://www.luogu.com.cn/article/dmcvkf7e

贪心优化决策,原地转移的转化,https://www.luogu.com.cn/article/lsru6nau

跳过一般转移状态,去除不影响转移代价的状态https://www.luogu.com.cn/article/z559hxtd ,

DP 转数据结构,转移询问与修改值复杂度平衡化,https://www.luogu.com.cn/article/pyto63jk ,https://www.luogu.com.cn/article/lsru6nau , https://www.cnblogs.com/PMpro/p/19036633

更换枚举顺序, https://www.luogu.com.cn/article/3q3adang , https://www.luogu.com.cn/article/rvt0py05 , https://www.luogu.com.cn/article/imctc500

统计最后去重, https://www.luogu.com.cn/article/rvt0py05

后效性处理, https://www.luogu.com.cn/article/imctc500 (字符串)

题目性质推式子减少状态,https://www.luogu.com.cn/article/fx3wg2fx , https://www.luogu.com.cn/article/d3g099wf , https://www.luogu.com.cn/article/totijkb1

延迟贡献, https://www.luogu.com.cn/article/d3g099wf

状态与转移枚举独立化, https://www.luogu.com.cn/article/1l6i0y2d

容斥转移, https://www.luogu.com.cn/article/xblx3kam

贪心(最优化)

Exchange argument,https://www.luogu.com.cn/article/clb6bp7j

观察方案的组成, https://www.luogu.com.cn/article/bfih6s9k, https://www.luogu.com.cn/article/d3g099wf

特殊化, https://www.luogu.com.cn/article/d3g099wf

类 Dijkstra 扩展,https://www.luogu.com.cn/article/dgpd1a0s

kk 优解,https://www.luogu.com.cn/article/dgpd1a0s

计数

组合数变换,https://www.luogu.com.cn/article/pl1sudj9

全方案乘特定方案期望, https://www.luogu.com.cn/article/ckm1u9it

期望移项, https://www.luogu.com.cn/article/cozcirre

二项式反演, https://www.luogu.com.cn/article/8y79rvos

分类讨论

https://www.luogu.com.cn/article/szli0h3y

构造

归纳/递归, https://www.luogu.com.cn/article/rkthaq3y

图论建模

按值域拆点,https://www.luogu.com.cn/article/j0zow5gh

交互

最坏平均分配, https://www.luogu.com.cn/article/87iwmg4j/edit

数据结构

点亮点, https://www.luogu.com.cn/article/xblx3kam

bitset, https://www.luogu.com.cn/article/jeqviv2b

双指针, https://www.luogu.com.cn/article/jeqviv2b

区间转差分变单点, https://www.luogu.com.cn/article/1l6i0y2d

离线转在线+可持久化, https://www.luogu.com.cn/article/fiu6d7c6

根号分治

更换枚举顺序优化复杂度/证明复杂度, https://www.luogu.com.cn/article/5jii0qhk

分块

定期重构/修改无效化, https://www.luogu.com.cn/article/jeqviv2b

数学

多项式

分开维护优化卷积,https://www.luogu.com.cn/article/a2lqevdp

博弈论

状态偏序证明,https://www.luogu.com.cn/article/76zev4fe

巴巴博弈。

原文