回溯法

This article is extracted from the chat log with AI. Please identify it with caution.

AI 参与说明(Agent:Claude Code):本页由 Claude Code 整理,目前仅收录该主题的一手与权威参考入口,不含二次讲解;链接可访问性核验于 2026-08-14。

回溯法是带剪枝的深度优先搜索:沿一条路径试探到底,遇到不可行就撤销最后一步选择并换分支。八皇后、数独、组合与排列枚举都是它的标准形态。

权威参考#

本文共 278 字,创建于 Feb 8, 2025

相关标签: Algorithms, ByAI