ãµã¨è¦ã¤ãããããªããä¸çªå¥½ããªã¢ã«ã´ãªãºã ãæãã¦ãã ãããã¾ãããã®çç±ãã©ããªç¹ã好ããªã®ããæãã¦ãã ããããèªãã§ãdiffã®ã¢ã«ã´ãªãºã ã調ã¹ã¦ã¿ãã2ã¤ã®ãã¡ã¤ã«ã®éããè¦ã¤ããã«ã¯ãå ±éããé¨åãæé·ã«ãªããã¢ãè¦ã¤ããã°ãããããã¯LCS (Longest Common Subsequence)åé¡ã¨å¼ã°ãããLCSåé¡ã®æé©è§£ã¯åçè¨ç»æ³ãç¨ãã¦æ±ãããã¨ãã§ããããè¨ç®æéãã¡ã¢ãªä½¿ç¨éã¨ãã«O(MN)ã«ãªã*1ãããããæ©ããã¾ãå°ã¡ã¢ãªã§å®è¡ã§ããããã«ãããããªã¢ã«ã´ãªãºã ãææ¡ããã¦ããã ããã¹ããæ¯è¼ããdiffã¨ããUnixç³»ã®ã³ãã³ããããã¾ãããããã¯å®ã¯é«åº¦ã«æ°å¦çãªã¨ãã£ããã°ã©ãã¨ããã¢ã«ã´ãªãºã ã使ããã¦ãã¾ãã [1] E.W.Myers, "An O(ND) difference algorithm and its variations"
{{#tags}}- {{label}}
{{/tags}}