Input: D = {d1, ..., dk}, dn>0. Output:  P = {p1, ..., pm}, {|pi − pj|: 1 ≤ i < j ≤ m, pn>0} ⊆ D i m, where m is maximized.