enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. LCP array - Wikipedia

    en.wikipedia.org/wiki/LCP_array

    In order to find the number of occurrences of a given string (length ) in a text (length ), [3] We use binary search against the suffix array of to find the starting and end position of all occurrences of .

  3. Longest repeated substring problem - Wikipedia

    en.wikipedia.org/wiki/Longest_repeated_substring...

    The string spelled by the edges from the root to such a node is a longest repeated substring. The problem of finding the longest substring with at least k {\displaystyle k} occurrences can be solved by first preprocessing the tree to count the number of leaf descendants for each internal node, and then finding the deepest node with at least k ...

  4. Boyer–Moore string-search algorithm - Wikipedia

    en.wikipedia.org/wiki/Boyer–Moore_string-search...

    The Boyer–Moore algorithm searches for occurrences of P in T by performing explicit character comparisons at different alignments. Instead of a brute-force search of all alignments (of which there are ⁠ n − m + 1 {\displaystyle n-m+1} ⁠ ), Boyer–Moore uses information gained by preprocessing P to skip as many alignments as possible.

  5. String-searching algorithm - Wikipedia

    en.wikipedia.org/wiki/String-searching_algorithm

    A string-searching algorithm, sometimes called string-matching algorithm, is an algorithm that searches a body of text for portions that match by pattern. A basic example of string searching is when the pattern and the searched text are arrays of elements of an alphabet ( finite set ) Σ.

  6. Generalized suffix array - Wikipedia

    en.wikipedia.org/wiki/Generalized_suffix_array

    Generalized suffix arrays can be used to solve the pattern matching problem: [5]. Given a pattern and a text , find all occurrences of in .; Using the generalized suffix array of , then first, the suffixes that have as a prefix need to be found.

  7. Generalized suffix tree - Wikipedia

    en.wikipedia.org/wiki/Generalized_suffix_tree

    An alternative to building a generalized suffix tree is to concatenate the strings, and build a regular suffix tree or suffix array for the resulting string. When hits are evaluated after a search, global positions are mapped into documents and local positions with some algorithm and/or data structure, such as a binary search in the starting ...

  8. Apostolico–Giancarlo algorithm - Wikipedia

    en.wikipedia.org/wiki/Apostolico–Giancarlo...

    As with other comparison-based string searches, this is done by aligning to a certain index of and checking whether a match occurs at that index. P {\displaystyle P} is then shifted relative to T {\displaystyle T} according to the rules of the Boyer–Moore algorithm, and the process repeats until the end of T {\displaystyle T} has been reached.

  9. Rabin–Karp algorithm - Wikipedia

    en.wikipedia.org/wiki/Rabin–Karp_algorithm

    A naive string matching algorithm compares the given pattern against all positions in the given text. Each comparison takes time proportional to the length of the pattern, and the number of positions is proportional to the length of the text. Therefore, the worst-case time for such a method is proportional to the product of the two lengths.