Skip to content

Commit 7ff83c0

Browse files
authored
Update README.md
1 parent 9d08e50 commit 7ff83c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ and
1717
w(i,j)=sum(pk)+sum(ql) i<=k<=j,i-1<=l<=j
1818

1919
e[i,j] means the expected search cost of key[i] to key[j]
20+
21+
w[i,j] comes when a subproblem yields, and the depth of each keys in the subproblem will be +1, so add the sum of all the relative probabilities with the left child's e[i,r-1] and the right child's e[r+1,j], we can get the e[i,j].

0 commit comments

Comments
 (0)