string-algorithm-matcher

Solid

Match string problems to appropriate algorithms

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
92
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# String Algorithm Matcher Skill ## Purpose Match string processing problems to the most appropriate algorithms based on requirements and constraints. ## Capabilities - Pattern matching algorithm selection (KMP, Z, Rabin-Karp) - Suffix structure selection (array vs tree vs automaton) - Palindrome detection algorithm selection - Rolling hash implementation guidance - String DP technique matching ## Target Processes - pattern-matching-algorithms - trie-suffix-structures - string-processing ## Algorithm Selection Guide ### Single Pattern Matching | Scenario | Algorithm | Complexity | |----------|-----------|------------| | Single pattern | KMP | O(n+m) | | Multiple patterns | Aho-Corasick | O(n+m+z) | | Approximate match | Rolling Hash | O(n*m) average | ### Suffix Structures | Need | Structure | Build Time | |------|-----------|------------| | Substring search | Suffix Array | O(n log n) | | Multiple queries | Suffix Tree | O(n) | | Subsequence counting | Suffix Automaton | O(n) | ### Palindromes | Problem | Algorithm | |---------|-----------| | Longest palindromic substring | Manacher | | Palindrome partitioning | DP + Manacher | | Palindrome queries | Hashing | ## Input Schema ```json { "type": "object", "properties": { "problemDescription": { "type": "string" }, "problemType": { "type": "string", "enum": ["patternMatch", "suffixQueries", "palindrome", "subsequence", "dp"] }, "constraints": { "type": "object" } }, "required": ["...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills