algorithm_set with python and c++. Only For self test.