File tree 1 file changed +3
-3
lines changed
Contents/09.Algorithm-Base/04.Backtracking-Algorithm
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 33
33
34
34
对于上述决策过程,我们也可以用一棵决策树来表示:
35
35
36
- ![ ] ( https://qcdn.itcharge.cn/images/20220425102048.png )
36
+ ![ 全排列问题的决策树 ] ( https://qcdn.itcharge.cn/images/20220425102048.png )
37
37
38
38
从全排列的决策树中我们可以看出:
39
39
@@ -205,7 +205,7 @@ for i in range(len(nums)): # 枚举可选元素列表
205
205
206
206
1 . ** 明确所有选择** :根据数组中每个位置上的元素选与不选两种选择,画出决策树,如下图所示。
207
207
208
- - ![ ] ( https://qcdn.itcharge.cn/images/20220425210640.png )
208
+ - ![ 子集的决策树 ] ( https://qcdn.itcharge.cn/images/20220425210640.png )
209
209
210
210
2 . ** 明确终止条件** :
211
211
@@ -303,7 +303,7 @@ class Solution:
303
303
304
304
1 . ** 明确所有选择** :根据棋盘中当前行的所有列位置上是否选择放置皇后,画出决策树,如下图所示。
305
305
306
- - ![ ] ( https://qcdn.itcharge.cn/images/20220426095225.png )
306
+ - ![ n 皇后问题的决策树 ] ( https://qcdn.itcharge.cn/images/20220426095225.png )
307
307
308
308
2 . ** 明确终止条件** :
309
309
You can’t perform that action at this time.
0 commit comments