ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Re: ID/IDREF makes XML generation NP-hard
by Rick Jelliffe other posts by this author
Apr 3 2003 3:36PM messages near this date
[xml-dev] ID/IDREF makes XML generation NP-hard | Re: [xml-dev] Re: ID/IDREF makes XML generation NP-hard
From: "MURATA Makoto" <murata@[...].jp> 
 
>  On 28 Mar 2003 21:59:11 +0000
>  ht@[...].uk (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


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Henry S. Thompson
Rick Jelliffe
Christian Nentwich
Murali Mani
Rick Jelliffe
Murali Mani
MURATA Makoto
Robert C. Lyons
Tim Bray
Murali Mani

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved