enow.com Web Search

Search results

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

    en.wikipedia.org/wiki/Substring

    If is a substring of , it is also a subsequence, which is a more general concept. The occurrences of a given pattern in a given string can be found with a string searching algorithm. Finding the longest string which is equal to a substring of two or more strings is known as the longest common substring problem.

  3. Comparison of programming languages (string functions)

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

    For function that manipulate strings, modern object-oriented languages, like C# and Java have immutable strings and return a copy (in newly allocated dynamic memory), while others, like C manipulate the original string unless the programmer copies data to a new string.

  4. Longest repeated substring problem - Wikipedia

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

    In computer science, the longest repeated substring problem is the problem of finding the longest substring of a string that occurs at least twice. This problem can be solved in linear time and space Θ ( n ) {\displaystyle \Theta (n)} by building a suffix tree for the string (with a special end-of-string symbol like '$' appended), and finding ...

  5. Longest common substring - Wikipedia

    en.wikipedia.org/wiki/Longest_common_substring

    The longest common substrings of a set of strings can be found by building a generalized suffix tree for the strings, and then finding the deepest internal nodes which have leaf nodes from all the strings in the subtree below it. The figure on the right is the suffix tree for the strings "ABAB", "BABA" and "ABBA", padded with unique string ...

  6. Longest palindromic substring - Wikipedia

    en.wikipedia.org/wiki/Longest_palindromic_substring

    A description of Manacher’s algorithm for finding the longest palindromic substring in linear time. Akalin, Fred (2007-11-28), Finding the longest palindromic substring in linear time. An explanation and Python implementation of Manacher's linear-time algorithm. Jeuring, Johan (2007–2010), Palindromes. Haskell implementation of Jeuring's ...

  7. Suffix tree - Wikipedia

    en.wikipedia.org/wiki/Suffix_tree

    The total length of all the strings on all of the edges in the tree is (), but each edge can be stored as the position and length of a substring of S, giving a total space usage of () computer words. The worst-case space usage of a suffix tree is seen with a fibonacci word , giving the full 2 n {\displaystyle 2n} nodes.

  8. Boyer–Moore string-search algorithm - Wikipedia

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

    Like the bad-character rule, it also exploits the algorithm's feature of comparisons beginning at the end of the pattern and proceeding towards the pattern's start. It can be described as follows: [5] Suppose for a given alignment of P and T, a substring t of T matches a suffix of P and suppose t is the largest such substring for the given ...

  9. Trimming (computer programming) - Wikipedia

    en.wikipedia.org/wiki/Trimming_(computer...

    The most popular variants of the trim function strip only the beginning or end of the string. Typically named ltrim and rtrim respectively, or in the case of Python: lstrip and rstrip. C# uses TrimStart and TrimEnd, and Common Lisp string-left-trim and string-right-trim.