docstring: specify what algorithm is used for CP