Algorithm(26)