阿摩線上測驗 登入

申論題資訊

試卷:110年 - 110 國立清華大學_碩士班招生考試_資訊工程學系:基礎計算機科學#105771
科目:清大◆資工◆基礎計算機科學
年份:110年
排序:0

申論題內容

8. (8 points) Given a sequence of n integers A = (a1, a2,..., an), the longest increasing subsequence problem is to find a longest subsequence61e106084df0f.jpgalk For example, (1,2,5,8) is a longest increasing subsequence of (4,1,7,5,2,5,8,4). Please use the dynamic programming technique to design an O(n2) time algorithm for solving the longest increasing subsequence problem. Please also justify your algorithm and its time complexity.