Skip to content

Conversation

axross
Copy link
Owner

@axross axross commented Oct 8, 2019

Recurrence relation:

f(si, pi) = { { true  IF isOnlyOptionalPatternLeft(si, pi) 
                false OTHERWISE                                                        } IF si == s.length
              { isHeadMatch(si, pi) AND f(si + 1, pi) OR f(si, pi + 2) IF p[pi] == "*" 
                isHeadMatch(si, pi) AND f(si + 1, pi + 1)              OTHERWISE       } IF pi != p.length
              false                                                                      OTHERWISE         }

@axross axross merged commit 20e9f8a into master Oct 8, 2019
@axross axross deleted the 10 branch October 8, 2019 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant