Rene_アルゴリズムとデータ構造

文字列照合 

1. 文字列照合の解説 (30分) 

https://www.slideshare.net/kazumamikami1/ss-16964389

https://tech.retrieva.jp/entry/2020/05/21/134735

Knuth-Morris-Pratt法の理解 

https://algoful.com/Archive/Algorithm/KMPSearch

https://www.atmarkit.co.jp/ait/articles/0902/04/news144_2.html

Boyer-Moore法の理解 

https://algoful.com/Archive/Algorithm/BMSearch

https://www.atmarkit.co.jp/ait/articles/0902/04/news144_3.html  

2. 文字列照合のプログラム (20分) 

KMP法を実行し確認 

https://engineeringnote.hateblo.jp/entry/python/algorithm-and-data-structures/kmp_algorithm (python練習)

https://yottagin.com/?p=7218 (python練習)

BM法を実行し確認 

https://engineeringnote.hateblo.jp/entry/python/algorithm-and-data-structures/bm_algorithm (python練習)

3. 様々な文字列照合 (20分) 

KMP法とBoyer-Moore法の違いを理解 

http://www-ikn.ist.hokudai.ac.jp/~kida/lecture/alg2018-ex1.pdf

https://ikatakos.com/pot/programming_algorithm/string_search

4. Pythonの標準モジュールの活用 (20分) † 

https://note.nkmk.me/python-str-search/


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS