Skip to main content

One doc tagged with "暴力遍历"

View all tags

第26章 枚举算法

枚举算法(也叫穷举算法),核心思路是遍历问题所有合法候选解,逐个校验条件,筛选出符合要求的答案。依靠计算机高速循环遍历,逻辑简单易懂,适合解空间范围较小的题目。