DFS:从一个状态开始,不断移动状态,直到无法移动,然后退回到上一状态,继续转移其他状态,不断重复,直到找到最终解。递归函数
BFS:从一个状态开始,不断移动状态,总是搜索距离初始状态距离近的状特殊状态的枚举:生成可解空间多数采用DFS,但是状态空间较为特殊时可通过全排列解决。
剪枝:当深度遍历,明确的知道从当前状态无论如何转移也不会存在解,这种情况下不再继续,而是直接跳过。硬币问题:给出一个数值,求出组合出该数的最小硬币数 字典序最小问题:POJ3617
GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — GitHub - Jiacch/Algorithm_Python_Demo: fundamental algorithm demo by Python Folders and filesRepository files navigation
Aboutfundamental algorithm demo by Python TopicsResourcesReleasesPackagesContributorsLanguages |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |