[go: nahoru, domu]

Skip to content

Commit

Permalink
Update 01.Backtracking-Algorithm.md
Browse files Browse the repository at this point in the history
  • Loading branch information
itcharge committed May 13, 2024
1 parent 9172ad1 commit 922939d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

对于上述决策过程,我们也可以用一棵决策树来表示:

![](https://qcdn.itcharge.cn/images/20220425102048.png)
![全排列问题的决策树](https://qcdn.itcharge.cn/images/20220425102048.png)

从全排列的决策树中我们可以看出:

Expand Down Expand Up @@ -205,7 +205,7 @@ for i in range(len(nums)): # 枚举可选元素列表

1. **明确所有选择**:根据数组中每个位置上的元素选与不选两种选择,画出决策树,如下图所示。

- ![](https://qcdn.itcharge.cn/images/20220425210640.png)
- ![子集的决策树](https://qcdn.itcharge.cn/images/20220425210640.png)

2. **明确终止条件**

Expand Down Expand Up @@ -303,7 +303,7 @@ class Solution:

1. **明确所有选择**:根据棋盘中当前行的所有列位置上是否选择放置皇后,画出决策树,如下图所示。

- ![](https://qcdn.itcharge.cn/images/20220426095225.png)
- ![n 皇后问题的决策树](https://qcdn.itcharge.cn/images/20220426095225.png)

2. **明确终止条件**

Expand Down

0 comments on commit 922939d

Please sign in to comment.