Ko-Aluru algorithm