Deprecated: $wgMWOAuthSharedUserIDs=false is deprecated, set $wgMWOAuthSharedUserIDs=true, $wgMWOAuthSharedUserSource='local' instead [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/w/includes/HookContainer/HookContainer.php at line 135] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
An efficient algorithm for LCS problem between two arbitrary sequences - MaRDI portal

An efficient algorithm for LCS problem between two arbitrary sequences (Q1720875)

From MaRDI portal





scientific article; zbMATH DE number 7018926
Language Label Description Also known as
English
An efficient algorithm for LCS problem between two arbitrary sequences
scientific article; zbMATH DE number 7018926

    Statements

    An efficient algorithm for LCS problem between two arbitrary sequences (English)
    0 references
    0 references
    8 February 2019
    0 references
    Summary: The longest common subsequence (LCS) problem is a classic computer science problem. For the essential problem of computing LCS between two arbitrary sequences \(s 1\) and \(s 2\), this paper proposes an algorithm taking \(O(n + r)\) space and \(O(r + n^2)\) time, where \(r\) is the total number of elements in the set \(\left\{(i, j) \mid s 1 [i] = s 2 [j]\right\}\). The algorithm can be more efficient than relevant classical algorithms in specific ranges of \(r\).
    0 references

    Identifiers