é¨åå (Subsequence) ã¯ç³»åã®ããã¤ãã®è¦ç´ ãåãåºãã¦ã§ããç³»åã®ãã¨ã§ããäºã¤ã®ç³»åã®å ±éã®é¨ååãå ±éé¨åå (Common Subsecuence)ã¨è¨ãã¾ããå ±éé¨ååã®ãã¡ããã£ã¨ãé·ããã®ãæé·å ±éé¨åå (Longest Common Subsequence, LCS) ã¨è¨ãã¾ãã X = <A, B, C, B, D, A, B> Y = <B, D, C, A, B, A> ã¨ããäºã¤ã®ç³»åããå¾ããã LCS 㯠<B, C, B, A> ã§ããã®é·ã㯠4 ã§ããé·ã 2 ã®<B, D> ã®é·ã 3 ã® <A, B, A> ãªã©ãå ±éé¨ååã§ãããæé·ã§ã¯ãªãã®ã§ããã㯠LCS ã§ã¯ããã¾ãããã¾ããLCS ã¯æé·ã§ããã°ä½ç½®ã¯ã©ãã§ãè¯ãã®ã§ããã®å ´å <B, D, A, B> ã LCS ã§ãã LCS ã¯åçè¨ç»æ³ (Dynamic Prog
{{#tags}}- {{label}}
{{/tags}}