Abstract
Query languages for “object-oriented data models” involvematching ofnested-objects or nested-terms. Nested-objects are extended first-order terms: with sets and tuples as the only constructors (no function symbols). This paper studies the complexity of nested-term matching. The main result is the following complete characterization. Letset-nesting index (tuples-nesting index) denote the “level” of set nesting (tuple nesting) of a nested-term; letS i,j denote the set of all nested-terms with set-indexi and tuple-indexj. Then,the matching problem for a given class S i,j is NP-Complete if either i⩾2,or i>0and j>0;otherwise, the complexity of the matching problem for S i,j is in PTIME. We compare our work with the related work on set-matching, and show that our results yield an alternative proof, using fewer interpreted symbols, for the NP-completeness of the set-matching problem.
Similar content being viewed by others
References
Beeri, C., Naqvi, S., Shmueli, O., and Tsur, S.: Set constructors in a logic database language,J. Logic Programming (1991).
Benanav, D., Kapur, D., and Narendran, P.: Complexity of matching problems, inProc. 1st Internat. Conf. Rewrite Technique and Applications, 1985, pp. 416–429.
Chandra, A. K. and Harel, D.: Structure and complexity of relational queries,J. Computer Systems and Sciences 25(1) (1982), 99–128.
Chen, W., Kifer, M., and Warren, D.: HiLog as a platform for database languages, inWorkshop on DBPL, 1989.
Garey, M. and Johnson, D.:Computers and Intractability, A Guide to Theory of NP-Completeness, W. H. Freeman, 1979.
Hull, R. and Su, J.: On the expressive power of database queries with intermediate types,J. Computer and System Sciences 43 (1991), 219–267.
Kapur, D. and Narendran, P.: NP-completeness of the set unification and matching problem, inProc. 8th Internat. Conf. Automated Deduction (CADE-8), 1986.
Kapur, D. and Narendran, P.: Complexity of unification problems with associative-commutative operators,J. of Automated Reasoning 9 (1992), 261–288.
Kuper, G. M.: Logic programming with sets,JCSS 41(1) (1990).
Paterson, M. S. and Wegman, M. N.: Linear unification,J. Computer and System Sciences 16(2) (1978), 158–167.
Siekmann, J.: Unification theory,J. Symbolic Computation 7 (1989) 207–274.
Vadaparty, K.: On the power of rule-based query languages for nested data models,J. Logic Programming 21 (1994) 155–175.
Vadaparty, K.: Querying database with non-deterministic information, PhD thesis, Rutgers University, Department of Computer Science, Rutgers University, New Brunswick, 1992.
Vardi, M.: The complexity of relational query languages, inProc. 14th STOC, 1982.
Verma, R. M. and Ramakrishnan, I. V.: Tight complexity bounds,Information and Control 101(1) (1992), 33–69.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Vadaparty, K.V. On the complexity of nested-object matching. J Autom Reasoning 14, 317–323 (1995). https://doi.org/10.1007/BF00881860
Received:
Issue Date:
DOI: https://doi.org/10.1007/BF00881860