PCT-algorithm