algorithm power pb