Skip to main content
Log in

On the complexity of nested-object matching

  • Published:
Journal of Automated Reasoning Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Beeri, C., Naqvi, S., Shmueli, O., and Tsur, S.: Set constructors in a logic database language,J. Logic Programming (1991).

  2. Benanav, D., Kapur, D., and Narendran, P.: Complexity of matching problems, inProc. 1st Internat. Conf. Rewrite Technique and Applications, 1985, pp. 416–429.

  3. Chandra, A. K. and Harel, D.: Structure and complexity of relational queries,J. Computer Systems and Sciences 25(1) (1982), 99–128.

    Google Scholar 

  4. Chen, W., Kifer, M., and Warren, D.: HiLog as a platform for database languages, inWorkshop on DBPL, 1989.

  5. Garey, M. and Johnson, D.:Computers and Intractability, A Guide to Theory of NP-Completeness, W. H. Freeman, 1979.

  6. Hull, R. and Su, J.: On the expressive power of database queries with intermediate types,J. Computer and System Sciences 43 (1991), 219–267.

    Google Scholar 

  7. Kapur, D. and Narendran, P.: NP-completeness of the set unification and matching problem, inProc. 8th Internat. Conf. Automated Deduction (CADE-8), 1986.

  8. Kapur, D. and Narendran, P.: Complexity of unification problems with associative-commutative operators,J. of Automated Reasoning 9 (1992), 261–288.

    Google Scholar 

  9. Kuper, G. M.: Logic programming with sets,JCSS 41(1) (1990).

  10. Paterson, M. S. and Wegman, M. N.: Linear unification,J. Computer and System Sciences 16(2) (1978), 158–167.

    Google Scholar 

  11. Siekmann, J.: Unification theory,J. Symbolic Computation 7 (1989) 207–274.

    Google Scholar 

  12. Vadaparty, K.: On the power of rule-based query languages for nested data models,J. Logic Programming 21 (1994) 155–175.

    Google Scholar 

  13. Vadaparty, K.: Querying database with non-deterministic information, PhD thesis, Rutgers University, Department of Computer Science, Rutgers University, New Brunswick, 1992.

    Google Scholar 

  14. Vardi, M.: The complexity of relational query languages, inProc. 14th STOC, 1982.

  15. Verma, R. M. and Ramakrishnan, I. V.: Tight complexity bounds,Information and Control 101(1) (1992), 33–69.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kumar V. Vadaparty.

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF00881860

Key words

Navigation