算法2(動態規劃,背包问题,最長單調子序列,最長公共子序列 http://zh.wikipedia.org/zh-hk/%E5%8A%A8%E6%80%81%E8%A7%84%E5%88%92 * 最長單調子序列 * 最長公共子序列 * Floyd-Warshall算法 * Viterbi算法