京都大学 情報学研究科 知能情報学専攻 2019年2月実施 専門科目 F1-1
标签:
Author
Description (English)
Q.1
Given two sequences of length , write pseudocode of an -time algorithm to find a longest common subsequence. Note that a subsequence does not necessarily have to be contiguous. For example, if and , the sequence is a common (but not longest) subsequence of and .
Q.2
Given a sequence of permuted integers from 1 to , write pseudocode of an -time algorithm to find the length of the longest monotonically increasing subsequence.