일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- Class
- Protocol
- Python Implementation
- 30. Substring with Concatenation of All Words
- 43. Multiply Strings
- LeetCode
- DWG
- 파이썬
- Convert Sorted List to Binary Search Tree
- 시바견
- kaggle
- 315. Count of Smaller Numbers After Self
- iterator
- 프로그래머스
- 109. Convert Sorted List to Binary Search Tree
- Substring with Concatenation of All Words
- concurrency
- data science
- Python
- attribute
- Python Code
- 운영체제
- 컴퓨터의 구조
- t1
- 715. Range Module
- Decorator
- shiba
- 밴픽
- Regular Expression
- Generator
Archives
- Today
- Total
목록Rabin-Karp (1)
Scribbling
Rabin-Karp Algorithm
Rabin-Karp Algorithm is an efficient algorithm to search a string pattern in a given sentence. The core of the idea is to use hash function to compare strings. Time complexity is O(n), where n is length of the string. However, this is true only when there is no hash collision. Time complexity is O(n * m) if hash function is poorly selected (producing many hash collisions), where m is length of t..
Computer Science/Algorithms & Data Structures
2022. 11. 9. 03:41