The optimal All-Partial-Sums algorithm in commutative semigroups and its applications for image thresholding segmentation

Xie Xie, Jiu-Lun Fan, Yin Zhu
2011 Theoretical Computer Science  
The design and analysis of multidimensional All-Partial-Sums (APS) algorithms are considered. We employ the sequence length as the performance measurement criterion for APS algorithms and corresponding thresholding methods, which is more sophisticated than asymptotic time complexity under the straight-line program computation model. With this criterion, we propose the piling algorithm to minimize the sequence length, then we show this algorithm is an optimal APS algorithm in commutative
more » ... ps in the worst case. The experimental results also show the algorithmic efficiency of the piling algorithm. Furthermore, the theoretical works of APS algorithm will help to construct the higher dimensional thresholding methods. 3 for P[1] = 0 to N 1 − 1 4 for P[2] = 0 to N 2 − 1 5 T (P[0], P[1], P[2]) = q(P[0], P[1], P[2]) 6 // The following nest-loops are the piling on the dimension P[2] 7 for P[0] = 0 to N 0 − 1 8 for P[1] = 0 to N 1 − 1 9 for P[2] = 0 to N 2 − 1 10 T (P[0], P[1], P[2]) += T (P[0], P[1], P[2] − 1) 11 // The following nest-loops are the piling on the dimension P[1] 12 for P[2] = 0 to N 2 − 1 13 for P[0] = 0 to N 0 − 1 14 for P[1] = 0 to N 1 − 1 15 T (P[0], P[1], P[2]) += T (P[0], P[1] − 1, P[2]) 16 // The following nest-loops are the piling on the dimension P[0] 17 for P[1] = 0 to N 1 − 1 18 for P[2] = 0 to N 2 − 1 19 for P[0] = 0 to N 0 − 1 20 T (P[0], P[1], P[2]) += T (P[0] − 1, P[1], P[2])
doi:10.1016/j.tcs.2010.11.039 fatcat:hpco5ic3njbmxh6izo625qjyym