字串 === ###### tags: `Algorithm` `Todo` ## 尋找子字串 * 雜湊函數 ``` (ran^N-1*C1 + ran^N-2*C2... + ran^N-10*C10...)%M ``` 計算字串的前綴雜湊函數  * 模反元素  ## 雜湊函數 用map值對應各個元素, ##  * KMP ## 字典樹    ## AC自動機   
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up