کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
427162 686460 2013 5 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
A note on the complexity of matching patterns with variables
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
A note on the complexity of matching patterns with variables
چکیده انگلیسی


• The matching problem for patterns with variables is investigated.
• The NP-completeness for a strongly restricted version of this problem is shown.
• Classes of patterns are identified for which this problem can be solved efficiently.

A word matches a pattern with variables (i.e., a string that contains terminal symbols and variable symbols) if and only if it can be obtained from the pattern by substituting the variables by terminal words. To decide for a given word whether or not it matches a pattern with variables is an NP-complete problem, which has been independently discovered and investigated in different areas of theoretical computer science and which has applications in various contexts. In this work, we show that the problem of matching patterns with variables remains NP-complete even if every variable has at most two occurrences. In addition to this, we show that if patterns can be represented as special kinds of planar graphs, then they can be matched in polynomial time.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Information Processing Letters - Volume 113, Issues 19–21, September–October 2013, Pages 729–733
نویسندگان
,