일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 30. Substring with Concatenation of All Words
- Python Code
- 315. Count of Smaller Numbers After Self
- Regular Expression
- kaggle
- 시바견
- 밴픽
- 운영체제
- Class
- iterator
- Generator
- 715. Range Module
- Python Implementation
- data science
- 프로그래머스
- Convert Sorted List to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- attribute
- Decorator
- t1
- Substring with Concatenation of All Words
- DWG
- shiba
- 파이썬
- Protocol
- 43. Multiply Strings
- LeetCode
- Python
- concurrency
- 컴퓨터의 구조
Archives
- Today
- Total
목록RabinKarp (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