Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 029813a

Browse files
✨feat: Add 675
1 parent de424e4 commit 029813a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎LeetCode/671-680/675. 为高尔夫比赛砍树(困难).md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Solution {
148148

149149
![image.png](https://pic.leetcode-cn.com/1653270722-gYnbgm-image.png)
150150

151-
如何设计这样带有优先级的搜索顺序,则是 AStar 算法「启发式函数」的设计过程,其本质是对应了对「最小步数」的估算,只有当我们确保「最小步数估算 >= 实际最小步数」,AStar 算法的正确性才得以保证。
151+
如何设计这样带有优先级的搜索顺序,则是 AStar 算法「启发式函数」的设计过程,其本质是对应了对「最小步数」的估算,只有当我们确保「最小步数估算 $\leq $ 实际最小步数」,AStar 算法的正确性才得以保证。
152152

153153
因此我们往往会直接使用「理论最小步数」来作为启发式函数的,对于本题,可直接使用「曼哈顿距离」作为「理论最小步数」。
154154

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /