PA of Algorithms Q6