enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. Comparison of programming languages (string functions)

    en.wikipedia.org/wiki/Comparison_of_programming...

    string.find(string, substring) (string):find(substring) Lua: returns nil string indexOfSubCollection: substring startingAt: startpos ifAbsent: aBlock string findString: substring startingAt: startpos: Smalltalk (Squeak, Pharo) evaluate aBlock which is a block closure (or any object understanding value) returns 0

  3. Longest common substring - Wikipedia

    en.wikipedia.org/wiki/Longest_common_substring

    One can find the lengths and starting positions of the longest common substrings of and in (+) time with the help of a generalized suffix tree.A faster algorithm can be achieved in the word RAM model of computation if the size of the input alphabet is in (⁡ (+)).

  4. Approximate string matching - Wikipedia

    en.wikipedia.org/wiki/Approximate_string_matching

    After computing E(i, j) for all i and j, we can easily find a solution to the original problem: it is the substring for which E(m, j) is minimal (m being the length of the pattern P.) Computing E ( m , j ) is very similar to computing the edit distance between two strings.

  5. Substring - Wikipedia

    en.wikipedia.org/wiki/Substring

    A string is a substring (or factor) [1] of a string if there exists two strings and such that =.In particular, the empty string is a substring of every string. Example: The string = ana is equal to substrings (and subsequences) of = banana at two different offsets:

  6. LCP array - Wikipedia

    en.wikipedia.org/wiki/LCP_array

    The longest repeated substring problem for a string of length can be solved in () time using both the suffix array and the LCP array. It is sufficient to perform a linear scan through the LCP array in order to find its maximum value v m a x {\displaystyle v_{max}} and the corresponding index i {\displaystyle i} where v m a x {\displaystyle v ...

  7. Palindrome tree - Wikipedia

    en.wikipedia.org/wiki/Palindrome_Tree

    In computer science a palindrome tree, also called an EerTree, [1] is a type of search tree, that allows for fast access to all palindromes contained in a string.They can be used to solve the longest palindromic substring, the k-factorization problem [2] (can a given string be divided into exactly k palindromes), palindromic length of a string [3] (what is the minimum number of palindromes ...

  8. 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 ...

  9. Suffix tree - Wikipedia

    en.wikipedia.org/wiki/Suffix_tree

    String search, in O(m) complexity, where m is the length of the sub-string (but with initial O(n) time required to build the suffix tree for the string) Finding the longest repeated substring Finding the longest common substring