A Minimizing Algorithm for Sum of Disjoint Products