結果 : forward backward sweep algorithm