算法導論(二)之分治策略

一、最大子數組 1. 僞代碼 FIND-MAXIMUM-SUBARRAY(A,low,high){ if high == low return (low,high,A[low]) else mid = (low + high) / 2 (left-low,left-high,left-sum) = FIND-MAXIMUM-SUBARRAY(A,low,mid) (right
相關文章
相關標籤/搜索