結果 : beam search algorithm pseudocode