Main-LorentzãAlgorithm æ¦è¦ æååã®runãã§åæãããã¨ãã§ããã¢ã«ã´ãªãºã runã¯æååå ã«ç¾ããé¨åæååã®ç¹°ãè¿ãã®ãã¨ã§ãç¹ã«é·ãã極大ã§å¨æãæå°ã®ãã®ãæãã£ã½ã æ å ±ã¨ãã¦ã¯åºéã¨å¨æãæã¡ãå®éã«ä½¿ãã¨ãã¯(l, r, period)ã¨ãã¦s[l, r)ã®å¨æãperiodã¿ããã«æ㤠注æããã¹ããªã®ã¯ãç¹°ãè¿ãã¯ããã¿ãªã§ããå¿ è¦ã¯ãªãã¦(r - l) % period != 0ã§ããã ãã ãr - l >= 2*periodã§ãããã®ã®ã¿ãèãã ä¾ "mississippi" åºé: [1, 8), period: 3 é·ã3ã®"iss"ã7/3å¨æåãã s[0] != s[0+period(= 3)] ã㤠s[8] != s[8-period(= 5)]ã ãããã以ä¸ä¼¸ã°ããªãã¦é·ãã極大ã§ãã ãã¨ã¯å¨æ1ã§2å¨æåã®ãã¤ã3ã¤
{{#tags}}- {{label}}
{{/tags}}