è¦ç´ ããªã(RollingHash)ã®Modã$2^{61}-1$ã«ããã¨å®å ¨ã§çéã«ãªã£ã¦ãã¡ããã¡ã幸ãã«ãªãã¾ãã åæç¥è bitæ¼ç®ã«é¢ããåºç¤çãªç¥èãè¦æ±ãã¾ãã ã¾ããRollingHashã«ã¤ãã¦ã¯ä»¥ä¸ã§è§£èª¬ãã¾ãããåãããªãå ´åã¯å¥ã®è¨äºãèªãã ã»ããããããããã¾ããã RollingHashã¨ã¯? éã ãæååãä¸ã¤ã®å¤§ããªæ´æ°ã¨ãã¦è¦ããã¨ããã®ãRollingHashã®ã¢ã¤ãã¢ã§ãã ã¾ãã0-9ã®ã¿ã®æ°åãå«ãã æåås = "1234567890"ãèãã¦ã¿ã¾ãã ããã§ããã®æååã®Hashå¤ãæååã10é²æ°ã¨è§£éããã¨ãã®æ°å¤ã¨å®ç¾©ãã¾ãã ã¾ãã$s$ã®$a$æåç®ãã$b$æåç®ã®åã¾ã§ã®é¨åæååã$s[a..b]$ã¨æ¸ããã¨ã«ãã¾ãã ä¾ãã°ãs = "1234567890"ã«ã¤ãã¦ã$s[1..3]$ã¯1æåç®ãã3æåç®ã®åã¾ã§ã®é¨å
{{#tags}}- {{label}}
{{/tags}}