transition from partition to algorithms