Timeline for Given suffix array and a pattern, search if given pattern exists
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 3, 2014 at 11:19 | comment | added | rolfl | @mjolka - Oh, you're right. I have not heard of the concept of a "suffix array" before. I see it is a well-defined structure. This is a clear indication that the question does not contain enough detail about the problem being solved. I don't think I will delete my answer, it makes it clear that naming is a problem in the code. | |
Jul 3, 2014 at 7:13 | comment | added | mjolka |
It's checking if the pattern is a prefix of any element in the suffix array. p is a substring of s if and only if p is a prefix of a suffix of s .
|
|
Jul 3, 2014 at 5:10 | history | answered | rolfl | CC BY-SA 3.0 |