[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: ID/IDREF makes XML generation NP-hard


id idref
From: "MURATA Makoto" <murata@h...>
 
> On 28 Mar 2003 21:59:11 +0000
> ht@c... (Henry S. Thompson) wrote:
> 
> > Somewhat surprisingly, it turns out that answering the question, for an
> > arbitrary XML DTD, "Are there any valid instances of the document type
> > defined by this DTD?", is an NP-hard problem.
> 
> A similar result was shown by:
> 
> On XML Integrity Constraints in the Presence of DTDs
> Journal of the ACM (JACM), Volume 49 , Issue 3, pp 368 - 406, May 2002.
> Wenfei Fan and Leonid Libkin
> 
> http://www.bell-labs.com/user/wenfei/papers/jacm.pdf

That article should be read with care: it talks of DTDs but it means grammars
in general, and it talks of integrity constraints, but these are not ID/IDREF.

Thus it seems that they share the same proviso as with Henry's analysis: 
Henry's analysis seems to apply to DTDs with fixed IDs or fixed IDREFs, 
and this paper applies to where there is an outside fixed set of constraints 
such as keys and foreign keys.  

Cheers
Rick Jelliffe


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.