Overview
Sunday Quick Search compares the current text window with the pattern, then uses the character immediately following the window to choose the next shift.
Searches for a pattern by shifting according to the character just after the current window.
Compact metadata for implementation and discovery.
Sunday Quick Search compares the current text window with the pattern, then uses the character immediately following the window to choose the next shift.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n + m)
Worst
O(n + m)
Space
O(n + m)
Show shifting based on the character immediately after the current window on a small exact string matching example.
Sunday Quick Search is simple and often fast, but it is still an exact matching method with ordinary worst-case caveats.
What each reference supports for this entry.
Original reference for Quick Search shifts and right-context character lookups.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Pattern Matching · Core
Sunday Quick Search and Shift-And Algorithm solve related exact string matching problems with different assumptions and tradeoffs.
Compare with thisSunday Quick Search and Bit-Parallel Levenshtein solve related exact string matching problems with different assumptions and tradeoffs.
Sunday Quick Search and Shift-And Algorithm solve related exact string matching problems with different assumptions and tradeoffs.
Sunday Quick Search and Shift-Or Algorithm solve related exact string matching problems with different assumptions and tradeoffs.