λ¬Έμμ΄ μκ³ λ¦¬μ¦Advanced
보μ΄μ΄-λ¬΄μ΄ λ¬Έμμ΄ λ§€μΉ
λμ λ¬Έμμ μ’μ μ λ―Έμ¬ ν΄λ¦¬μ€ν±μ μ¬μ©νλ ν¨μ¨μ μΈ λ¬Έμμ΄ κ²μ μκ³ λ¦¬μ¦μ λλ€. ν¨ν΄μ μ€λ₯Έμͺ½μμ μΌμͺ½μΌλ‘ λΉκ΅νμ¬ λΆμΌμΉ μ ν° μ νλ₯Ό νμ©ν©λλ€. μ€μ λ‘ μ€μ ν μκ°μ λ¬μ±νμ¬ κ°μ₯ λΉ λ₯Έ λ¬Έμμ΄ λ§€μΉ μκ³ λ¦¬μ¦ μ€ νλμ λλ€.
#string#pattern-matching#heuristic#text-search
Complexity Analysis
Time (Average)
O(n)Expected case performance
Space
O(m + Ο)Memory requirements
Time (Best)
O(n/m)Best case performance
Time (Worst)
O(n Γ m)Worst case performance
π CLRS Reference
Introduction to Algorithmsβ’Chapter 32β’Section 32.5
Step: 1 / 0
500ms
SlowFast
Keyboard Shortcuts
Space Play/Pauseβ β StepR Reset1-4 Speed
Real-time Statistics
Algorithm Performance Metrics
Progress0%
Comparisons
0
Swaps
0
Array Accesses
0
Steps
1/ 0
Algorithm Visualization
Step 1 of 0
Initialize array to begin
Default
Comparing
Swapped
Sorted
Code Execution
Currently executing
Previously executed
Implementation