- 5
- 0
- 约 37页
- 2016-09-20 发布于浙江
- 举报
* DP for Optimal BST Problem (cont.) After simplifications, we obtain the recurrence for C[i,j]: C[i,j] = min {C[i,k-1] + C[k+1,j]} + ∑ ps for 1 ≤ i ≤ j ≤ n C[i,i] = pi for 1 ≤ i ≤ j ≤ n Example: key A B C D probability 0.1 0.2 0.4 0.3 The tables below are filled diagonal by diagonal: the left one is filled using the recurrence C[i,j] = min {C[i,k-1] + C[k+1,j]} + ∑ ps , C[i,i] = pi ; the right one, for trees’ roots, records k’s values givin
您可能关注的文档
- 《Struts2与控制器Action》hibernate1.ppt
- 《Struts2与控制器Action》hibernate2.ppt
- 《Struts2与控制器Action》hibernate3.ppt
- 《Struts2与控制器Action》hibernate4.ppt
- 《Struts2与控制器Action》spring1.ppt
- 《Struts2与控制器Action》spring2.ppt
- 《Struts2与控制器Action》Spring-AOP.ppt
- 《Struts2与控制器Action》Spring-IOC.ppt
- 《Struts2与控制器Action》T9.ppt
- 《Struts2与控制器Action》T10.ppt
原创力文档

文档评论(0)