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
Complexity of matching problems - MaRDI portal

Complexity of matching problems (Q1099615)

From MaRDI portal





scientific article; zbMATH DE number 4041264
Language Label Description Also known as
English
Complexity of matching problems
scientific article; zbMATH DE number 4041264

    Statements

    Complexity of matching problems (English)
    0 references
    0 references
    0 references
    0 references
    1987
    0 references
    The associative-commutative matching problem is shown to be NP-complete; more precisely, the matching problem for terms in which some function symbols are uninterpreted and others are both associative and commutative, is NP-complete. It turns out that the similar problems of associative-matching and commutative-matching are also NP-complete. However, if every variable appears at most once in a term being matched, then the associative-commutative matching problem is shown to have an upper-bound of \(O(| s| *| t|^ 3)\), where \(| s|\) and \(| t|\) are, respectively, the sizes of the pattern s and the subject t.
    0 references
    associative-commutative matching
    0 references
    NP-complete
    0 references

    Identifiers