PERC Algorithm