Towards Schema-Guided XML Query Induction

Size: px
Start display at page:

Download "Towards Schema-Guided XML Query Induction"

Transcription

1 Towards Schema-Guided XML Query Induction Jérôme Champavère Rémi Gilleron Aurélien Lemay Joachim Niehren Université de Lille INRIA, France ICML-2007 Workshop on Challenges and Applications of Grammar Induction June 24, 2007 J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 1/36

2 Query on XML Documents Introduction J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 2/36

3 Query on XML Documents Introduction The query is to extract the name-function pair list of this web page. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 2/36

4 Query on XML Documents Introduction Name Function L. Pauling Chemist M. Groening Cartoonist The query is to extract the name-function pair list of this web page. The result can be put in a regular database. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 2/36

5 Tree View for Queries Introduction TABLE TH TH TD TD TD TD Name Function L. Pauling Chemist M. Groening Cartoonist J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 3/36

6 Tree View for Queries Introduction TABLE TH TH TD TD TD TD Name Function L. Pauling Chemist M. Groening Cartoonist J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 3/36

7 Tree View for Queries Introduction TABLE TH TH TD TD TD TD Name Function L. Pauling Chemist M. Groening Cartoonist J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 3/36

8 Introduction Query Induction Representation of Queries Programs: C, Perl,... Ad hoc formalisms: XPath, XQuery,... Other formalisms: relational algebra, MSO formula,... Conception of Queries Hand-made: hard, error-prone, need for expert With visual tools: like Lixto [Gottolb, Koch 2000], still not easy Automatically induced: users just give some examples of wanted information J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 4/36

9 Introduction Query Induction Representation of Queries Programs: C, Perl,... Ad hoc formalisms: XPath, XQuery,... Other formalisms: relational algebra, MSO formula,... Conception of Queries Hand-made: hard, error-prone, need for expert With visual tools: like Lixto [Gottolb, Koch 2000], still not easy Automatically induced: users just give some examples of wanted information Our approach: Queries are represented by tree automata, and inferred by an RPNI-like algorithm. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 4/36

10 Introduction Schema-guided Induction The learning task faces some challenges. Very few examples obtained from users All available information has to be used The schema is such information (DTD, XML Schema, Relax NG,...) We investigate here how this information can be used for query induction. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 5/36

11 Introduction 1 Queries over XML Documents 2 Schema-guided Learning 3 Efficient Inclusion Checking 4 Learning from Partially Annotated Examples J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 6/36

12 Outline Queries over XML Documents 1 Queries over XML Documents 2 Schema-guided Learning 3 Efficient Inclusion Checking 4 Learning from Partially Annotated Examples J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 7/36

13 Queries over XML Documents Query as Tree Language Consider the monadic query extracting names. Two equivalent views: Function from trees to annotated trees Language of correctly annotated trees TABLE TABLE TH TH TD TD TH TH TD TD TD TD TABLE TABLE TH TH TD TD TD TD TD TD TH TH TH TD TD TD This language is functional. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 8/36

14 Queries over XML Documents Node Selecting Tree Transducers (NSTTs) Queries represented by tree automata (regular queries). 4 TABLE TH 3 TD TD+ 2 1 Represented here as string automata In fact, classical tree automata operating on Curried encoding J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 9/36

15 Queries over XML Documents Node Selecting Tree Transducers (NSTTs) Queries represented by tree automata (regular queries). 4 TABLE TABLE TH 3 TD TD+ 2 TH TH TD+ TD TD+ TD 1 Represented here as string automata In fact, classical tree automata operating on Curried encoding J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 9/36

16 Queries over XML Documents Node Selecting Tree Transducers (NSTTs) Queries represented by tree automata (regular queries). 4 TABLE TABLE 5 TH TD TD+ 2 TH 3 TH 3 TD+2 TD 1 TD+2 TD 1 1 Represented here as string automata In fact, classical tree automata operating on Curried encoding J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 9/36

17 Queries over XML Documents Answering Queries Find the proper boolean annotation At most one possible annotation (functionality of queries) TABLE TH TH TD TD TD TD J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 10/36

18 Queries over XML Documents Answering Queries Find the proper boolean annotation At most one possible annotation (functionality of queries) TABLE TH TH TD+ TD TD+ TD Query answering: O( t A ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 10/36

19 Queries over XML Documents How To Learn Queries NSTTs are tree automata Can be learned using RPNI [Oncina & García, 1993] One difference: no negative examples, use of functionality instead J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 11/36

20 Query Induction Issues Queries over XML Documents Theoretical results Theoretical characteristic sample: more than 1000 trees Availability: about 3 trees In practice Works on monadic queries with heuristics More complicated for n-ary queries Main difficulty: very few examples, leads to wrong generalizations Generalizations out of the domain Use of domain knowledge allows to avoid them J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 12/36

21 Outline Schema-guided Learning 1 Queries over XML Documents 2 Schema-guided Learning 3 Efficient Inclusion Checking 4 Learning from Partially Annotated Examples J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 13/36

22 Schema-guided Learning Schema: A Domain for Queries Schemas: languages describing valid documents For XML: DTD, XSD, Relax NG HTML has a DTD Subclasses of regular tree languages J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 14/36

23 Schema-guided Learning Schema: A Domain for Queries Schemas: languages describing valid documents For XML: DTD, XSD, Relax NG HTML has a DTD Subclasses of regular tree languages Queries can be encompassed by schemas represented by tree automata. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 14/36

24 Schema-guided Learning Origin of Schemas Schemas can be either given or inferred: Given: DTD of HTML typically Inferred: DTD inference algorithm Advantage: more precise than the DTD of HTML But more difficult to obtain J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 15/36

25 Schema-guided Learning Using Schema Typing bias [Coste et al., 2004] States are typed according to a typing automaton from the domain Only states of the same type are merged Goal: constrain the structure of inferred automata For us, the form of the automaton doesn t matter, whereas language does. Inclusion We use inclusion into schema to prevent wrong generalizations. Inferred automata should satisfy the DTD at each step Domain bias [Coste et al., 2004] Use of complement as negative examples Promising experimental results J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 16/36

26 Schema-guided Learning Learning with Inclusion Checking Schema-guided RPNI Input: Sample and schema Run RPNI as usual and test inclusion at each step Output: NSTT J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 17/36

27 Schema-guided Learning Learning with Inclusion Checking Schema-guided RPNI Input: Sample and schema Run RPNI as usual and test inclusion at each step Output: NSTT Need for an efficient inclusion test. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 17/36

28 Outline Efficient Inclusion Checking 1 Queries over XML Documents 2 Schema-guided Learning 3 Efficient Inclusion Checking 4 Learning from Partially Annotated Examples J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 18/36

29 Inclusion Test Principle Efficient Inclusion Checking Deterministic DTD over Σ Linear transformation into deterministic tree automaton D [Brüggemann-Klein & Wood, 1998] c <!ELEMENT TABLE ( ) > <!ELEMENT (TH,TH TD,TD)> <!ELEMENT TH (#PCDATA)> <!ELEMENT TD (#PCDATA)> TABLE Current hypothesis NSTT over Σ Bool (i.e. annotated) Projection onto Σ: tree automaton A L(A) L(D) t L(A) L(D) C TH TD d b a b a b a c J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 19/36

30 Efficient Inclusion Checking Classical Method Complete D Compute D C Compute A D C Check that A D C has no accessible final state. L(A) L(D) L(A D C ) = J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 20/36

31 Efficient Inclusion Checking Classical Method Complete D Compute D C Compute A D C Check that A D C has no accessible final state. L(A) L(D) L(A D C ) = Time complexity in O( A Σ D 2 ) because of complement of D computation, which needs D to be complete. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 20/36

32 Efficient Inclusion Checking Our Approach for Testing Inclusion Avoid the complement of D computation Accessibility in A D instead of A D C Detection of one inclusion failure: Failure 1: problem with initial rules Failure 2: problem with internal rules Failure 3: problem with final states Proposition: Inclusion L(A) L(D) fails if and only if one of the tree failure conditions occurs. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 21/36

33 Failure 1 Efficient Inclusion Checking No TH in the DTD: automaton A has a rule TH 3 whereas automaton D has no state q such that TH q. 4 TABLE TH TABLE c d b b c TD TD 2 TD b 1 Time complexity in O( states(a) states(d) ). J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 22/36

34 Failure 3 Efficient Inclusion Checking Trees evaluated in (5, d) by A D with 5 final in A but d not final in D. 4 TABLE TH TD TD TABLE TD TH c d b a b a b a c 1 Time complexity in O( A D ), i.e. time to compute accessible states of A D. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 23/36

35 Failure 2 Efficient Inclusion Checking Accessible states (3,c) and (2,a) Rule in A No rule c a X in D (4,X) TD(2,b) TH(1,a) TH TD 2 1 1,2 1,2 3 4 We look for such configurations during computation of accessible states of A D, without enumerating all states of A D. TH TD b a b a c b a d J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 24/36

36 Efficient Inclusion Checking Complexity Considerations Failure 2 Naive approach in O( A 2 D 2 ) Algorithmic trick leads to O( A D ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 25/36

37 Efficient Inclusion Checking Complexity Considerations Failure 2 Naive approach in O( A 2 D 2 ) Algorithmic trick leads to O( A D ) Theorem: Inclusion L(A) L(D) can be computed in O( A D ) when D is deterministic. Corollary: Runtime of schema-guided RPNI is O( S 3 D ) where S is a sample of positive examples and D a schema. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 25/36

38 Outline Learning from Partially Annotated Examples 1 Queries over XML Documents 2 Schema-guided Learning 3 Efficient Inclusion Checking 4 Learning from Partially Annotated Examples J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 26/36

39 Learning from Partially Annotated Examples Limitations of Completely Annotated Examples Until now, input: completely annotated documents. Two main problems: Time consuming J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 27/36

40 Learning from Partially Annotated Examples Limitations of Completely Annotated Examples Until now, input: completely annotated documents. Two main problems: Time consuming J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 27/36

41 Learning from Partially Annotated Examples Limitations of Completely Annotated Examples Until now, input: completely annotated documents. Two main problems: Time consuming Whole document considered J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 27/36

42 Learning from Partially Annotated Examples Limitations of Completely Annotated Examples Until now, input: completely annotated documents. Two main problems: Time consuming Whole document considered Solution: pruning trees [Carme et al., 2007] J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 27/36

43 Principle of Pruning Learning from Partially Annotated Examples Input: set of partially annotated trees. TABLE TH TH TD TD TD+ TD TD TD J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 28/36

44 Learning from Partially Annotated Examples Principle of Pruning Input: set of partially annotated trees. Our strategy: We prune subtrees not on a path of selected nodes as they are irrelevant or unannotated. TABLE TD+ J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 28/36

45 Learning from Partially Annotated Examples Principle of Pruning Input: set of partially annotated trees. Our strategy: We prune subtrees not on a path of selected nodes as they are irrelevant or unannotated and annotate negatively the rest. TABLE TD+ J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 28/36

46 Learning from Partially Annotated Examples Principle of Pruning Input: set of partially annotated trees. Our strategy: We prune subtrees not on a path of selected nodes as they are irrelevant or unannotated and annotate negatively the rest. TABLE TD+ We obtain completely annotated pruned trees. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 28/36

47 Learning from Partially Annotated Examples Learning with Pruning Using RPNI: First we prune, then we learn No functionality anymore, but cut-functionality Output: NSTT recognizing completely annotated pruned tree languages J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 29/36

48 Learning from Partially Annotated Examples Answering Queries Using Pruned NSTT TABLE TABLE TD+ TD+ 2 1 TH TH TABLE TD TD TD TD TD TD Find consistent pruned trees can be replaced by any subtree Answer in O( t A ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 30/36

49 Learning from Partially Annotated Examples Answering Queries Using Pruned NSTT TABLE TABLE TD+ TD+ 2 1 TH TH TABLE TD TD TD+ TD TD TD Find consistent pruned trees can be replaced by any subtree Answer in O( t A ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 30/36

50 Learning from Partially Annotated Examples Answering Queries Using Pruned NSTT TABLE TABLE TD+ TD+ 2 1 TH TH TABLE TD TD TD+ TD TD+ TD Find consistent pruned trees can be replaced by any subtree Answer in O( t A ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 30/36

51 Learning from Partially Annotated Examples Answering Queries Using Pruned NSTT TABLE TABLE TD+ TD+ 2 1 TH TH TABLE TD+ TD TD+ TD TD+ TD Find consistent pruned trees can be replaced by any subtree Answer in O( t A ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 30/36

52 Learning from Partially Annotated Examples Answering Queries Using Pruned NSTT TABLE TABLE TD+ TD+ 2 1 TH TH TABLE TD+ TD TD+ TD TD+ TD Find consistent pruned trees can be replaced by any subtree Answer in O( t A ) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 30/36

53 Learning from Partially Annotated Examples Flaws of Pruned NSTT The previous pruning technique cannot be used with schema inclusion This tree for instance can be annotated: TABLE TABLE TH TH TH TD TD TD TD TD TD+ J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 31/36

54 Learning from Partially Annotated Examples Flaws of Pruned NSTT The previous pruning technique cannot be used with schema inclusion This tree for instance can be annotated: TABLE TABLE TH TH TH TD TD TD TD+ TD TD+ J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 31/36

55 Learning from Partially Annotated Examples Flaws of Pruned NSTT The previous pruning technique cannot be used with schema inclusion This tree for instance can be annotated: TABLE TABLE TH TH TH TD TD TD TD+ TD TD+ But it doesn t satisfy the DTD! J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 31/36

56 Schema-guided Pruning Learning from Partially Annotated Examples Trees are pruned using states of the DTD instead of. c TABLE TD d b b a b a c TH a TABLE TH TH TD TD TD+ TD TD TD J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 32/36

57 Schema-guided Pruning Learning from Partially Annotated Examples Trees are pruned using states of the DTD instead of. c TABLE TD d b b a b a c TH a TABLEd c c c c THa THa TDb TDb TD+b TDb TDb TDb J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 32/36

58 Schema-guided Pruning Learning from Partially Annotated Examples Trees are pruned using states of the DTD instead of. c TABLE TD d b b a b a c TH a TABLE c c TD+ a c J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 32/36

59 Schema-guided Pruning Learning from Partially Annotated Examples Trees are pruned using states of the DTD instead of. c TABLE TD d b b a b a c TH a TABLE c c c TD+ a J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 32/36

60 Query Answering with Schema-guided Pruning Learning from Partially Annotated Examples Same as before, except that states are replaced by consistent subtrees. TABLE TABLE c c c TD+ b TH TH TD TD TD+ Match. TD TD TD TABLE TH TH TH TD TD TD TD TD Do not match. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 33/36

61 Learning from Partially Annotated Examples Schema-guided Learning with Pruning Schema-guided RPNI with Pruning Input: Set of partially annotated trees and schema Prune the trees w.r.t. the schema Run RPNI with inclusion test Output: NSTT operating on trees pruned w.r.t. the schema J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 34/36

62 Learning from Partially Annotated Examples Conclusion Summary Use of inclusion test in query induction New efficient inclusion checking algorithm Schema-guided pruning Work in Progress Experiments Adaptation to n-ary queries (especially pruning) J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 35/36

63 References Learning from Partially Annotated Examples Brüggemann-Klein, A., & Wood, D. (1998). One-unambiguous regular languages. Information and Computation, 142, Carme, J., Gilleron, R., Lemay, A., & Niehren, J. (2007). Interactive learning of node selecting tree transducers. Machine Learning, 66, Coste, F., Fredouille, D., Kermovant, C., & de la Higuera, C. (2004). Introducing domain and typing bias in automata inference. Proceedings of the 7th ICGI (pp ). Springer Verlag. Oncina, J., & García, P. (1993). Inference of recognizable tree sets (Technical Report). Departamento de Sistemas Informáticos y Computación, Universidad de Alicante. DSIC-II/47/93. J. Champavère, R. Gilleron, A. Lemay, J. Niehren Towards Schema-Guided XML Query Induction CAGI07 36/36

Schema-Guided Query Induction

Schema-Guided Query Induction Schema-Guided Query Induction Jérôme Champavère Ph.D. Defense September 10, 2010 Supervisors: Joachim Niehren and Rémi Gilleron Advisor: Aurélien Lemay Introduction Big Picture XML: Standard language for

More information

J. Carme, R. Gilleron, A. Lemay, J. Niehren. INRIA FUTURS, University of Lille 3

J. Carme, R. Gilleron, A. Lemay, J. Niehren. INRIA FUTURS, University of Lille 3 Interactive Learning o Node Selection Queries in Web Documents J. Carme, R. Gilleron, A. Lemay, J. Niehren INRIA FUTURS, University o Lille 3 Web Inormation Extraction Data organisation is : adapted to

More information

Interactive Learning of Node Selecting Tree Transducers

Interactive Learning of Node Selecting Tree Transducers Interactive Learning of Node Selecting Tree Transducers Julien Carme, Rémi Gilleron, Aurélien Lemay, Joachim Niehren To cite this version: Julien Carme, Rémi Gilleron, Aurélien Lemay, Joachim Niehren.

More information

Learning Queries for Relational, Semi-structured, and Graph Databases

Learning Queries for Relational, Semi-structured, and Graph Databases Learning Queries for Relational, Semi-structured, and Graph Databases Radu Ciucanu University of Lille & INRIA, France Supervised by Angela Bonifati & S lawek Staworko SIGMOD 13 PhD Symposium June 23,

More information

XML Research for Formal Language Theorists

XML Research for Formal Language Theorists XML Research for Formal Language Theorists Wim Martens TU Dortmund Wim Martens (TU Dortmund) XML for Formal Language Theorists May 14, 2008 1 / 65 Goal of this talk XML Research vs Formal Languages Wim

More information

An Analysis of Approaches to XML Schema Inference

An Analysis of Approaches to XML Schema Inference An Analysis of Approaches to XML Schema Inference Irena Mlynkova irena.mlynkova@mff.cuni.cz Charles University Faculty of Mathematics and Physics Department of Software Engineering Prague, Czech Republic

More information

Interactive Learning of HTML Wrappers Using Attribute Classification

Interactive Learning of HTML Wrappers Using Attribute Classification Interactive Learning of HTML Wrappers Using Attribute Classification Michal Ceresna DBAI, TU Wien, Vienna, Austria ceresna@dbai.tuwien.ac.at Abstract. Reviewing the current HTML wrapping systems, it is

More information

Learning Path Queries on Graph Databases

Learning Path Queries on Graph Databases Learning Path Queries on Graph Databases Radu Ciucanu joint work with Angela Bonifati and Aurélien Lemay University of Lille, France INRIA Lille Nord Europe Links Project EDBT 15 March 24, 2015 Radu Ciucanu

More information

XPath with transitive closure

XPath with transitive closure XPath with transitive closure Logic and Databases Feb 2006 1 XPath with transitive closure Logic and Databases Feb 2006 2 Navigating XML trees XPath with transitive closure Newton Institute: Logic and

More information

Identifying a reduced DTD from marked up documents

Identifying a reduced DTD from marked up documents Identifying a reduced DTD from marked up documents Alejandro Bia, Rafael C. Carrasco and Mikel L. Forcada Miguel de Cervantes Digital Library. Universidad de Alicante. Spain Dept. de Lenguajes y Sistemas

More information

Evolution of XML Applications

Evolution of XML Applications Evolution of XML Applications University of Technology Sydney, Australia Irena Mlynkova 9.11. 2011 XML and Web Engineering Research Group Department of Software Engineering Faculty of Mathematics and Physics

More information

Logic as a Query Language: from Frege to XML. Victor Vianu U.C. San Diego

Logic as a Query Language: from Frege to XML. Victor Vianu U.C. San Diego Logic as a Query Language: from Frege to XML Victor Vianu U.C. San Diego Logic and Databases: a success story FO lies at the core of modern database systems Relational query languages are based on FO:

More information

Principles of AI Planning. Principles of AI Planning. 7.1 How to obtain a heuristic. 7.2 Relaxed planning tasks. 7.1 How to obtain a heuristic

Principles of AI Planning. Principles of AI Planning. 7.1 How to obtain a heuristic. 7.2 Relaxed planning tasks. 7.1 How to obtain a heuristic Principles of AI Planning June 8th, 2010 7. Planning as search: relaxed planning tasks Principles of AI Planning 7. Planning as search: relaxed planning tasks Malte Helmert and Bernhard Nebel 7.1 How to

More information

Schema-based Scheduling of Event Processors and Buffer Minimization for Queries on Structured Data Streams

Schema-based Scheduling of Event Processors and Buffer Minimization for Queries on Structured Data Streams Schema-based Scheduling of Event Processors and Buffer Minimization for Queries on Structured Data Streams Christoph Koch, Stefanie Scherzinger, Nicole Schweikardt, Bernhard Stegmaier Presented by Cătălin

More information

XML and Databases. Lecture 9 Properties of XPath. Sebastian Maneth NICTA and UNSW

XML and Databases. Lecture 9 Properties of XPath. Sebastian Maneth NICTA and UNSW XML and Databases Lecture 9 Properties of XPath Sebastian Maneth NICTA and UNSW CSE@UNSW -- Semester 1, 2009 Outline 1. XPath Equivalence 2. No Looking Back: How to Remove Backward Axes 3. Containment

More information

Automata for XML A survey

Automata for XML A survey Journal of Computer and System Sciences 73 (2007) 289 315 www.elsevier.com/locate/jcss Automata for XML A survey Thomas Schwentick University of Dortmund, Department of Computer Science, 44221 Dortmund,

More information

A new generation of tools for SGML

A new generation of tools for SGML Article A new generation of tools for SGML R. W. Matzen Oklahoma State University Department of Computer Science EMAIL rmatzen@acm.org Exceptions are used in many standard DTDs, including HTML, because

More information

Nested Words. A model of linear and hierarchical structure in data. Examples of such data

Nested Words. A model of linear and hierarchical structure in data. Examples of such data Nested Words A model of linear and hierarchical structure in data. s o m e w o r d Examples of such data Executions of procedural programs Marked-up languages such as XML Annotated linguistic data Example:

More information

Type Based XML Projection

Type Based XML Projection 1/90, Type Based XML Projection VLDB 2006, Seoul, Korea Véronique Benzaken Dario Colazzo Giuseppe Castagna Kim Nguy ên : Équipe Bases de Données, LRI, Université Paris-Sud 11, Orsay, France : Équipe Langage,

More information

Recognizing regular tree languages with static information

Recognizing regular tree languages with static information Recognizing regular tree languages with static information Alain Frisch (ENS Paris) PLAN-X 2004 p.1/22 Motivation Efficient compilation of patterns in XDuce/CDuce/... E.g.: type A = [ A* ] type B =

More information

Formal Methods for XML: Algorithms & Complexity

Formal Methods for XML: Algorithms & Complexity Formal Methods for XML: Algorithms & Complexity S. Margherita di Pula September 2004 Thomas Schwentick Schwentick XML: Algorithms & Complexity Introduction 1 Disclaimer About this talk It will be Theory

More information

To illustrate what is intended the following are three write ups by students. Diagonalization

To illustrate what is intended the following are three write ups by students. Diagonalization General guidelines: You may work with other people, as long as you write up your solution in your own words and understand everything you turn in. Make sure to justify your answers they should be clear

More information

Trees, Automata and XML

Trees, Automata and XML A Mini Course on Trees, Automata and XML Paris June 2004 Thomas Schwentick PODS 2004 Thomas Schwentick Trees, Automata & XML 1 Intro Three Questions Question 1 Why XML? Answer Have a look into the 20 XML

More information

Finding Optimal Probabilistic Generators for XML Collections Serge Abiteboul, Yael Amsterdamer, Daniel Deutch, Tova Milo, Pierre Senellart

Finding Optimal Probabilistic Generators for XML Collections Serge Abiteboul, Yael Amsterdamer, Daniel Deutch, Tova Milo, Pierre Senellart Finding Optimal Probabilistic Generators for XML Collections Serge Abiteboul, Yael Amsterdamer, Daniel Deutch, Tova Milo, Pierre Senellart To appear in BDA 2011 Motivation Adding probabilities to an XML

More information

Complementing deterministic tree-walking automata

Complementing deterministic tree-walking automata Complementing deterministic tree-walking automata Anca Muscholl LIAFA & CNRS, Université Paris 7, France Luc Segoufin INRIA & Université Paris 11, France September 12, 2005 Mathias Samuelides LIAFA and

More information

XML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9

XML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9 XML databases Jan Chomicki University at Buffalo Jan Chomicki (University at Buffalo) XML databases 1 / 9 Outline 1 XML data model 2 XPath 3 XQuery Jan Chomicki (University at Buffalo) XML databases 2

More information

Automated verification of termination certificates

Automated verification of termination certificates Automated verification of termination certificates Frédéric Blanqui and Kim Quyen Ly Frédéric Blanqui and Kim Quyen Ly Automated verification of termination certificates 1 / 22 Outline 1 Software certification

More information

Some Interdefinability Results for Syntactic Constraint Classes

Some Interdefinability Results for Syntactic Constraint Classes Some Interdefinability Results for Syntactic Constraint Classes Thomas Graf tgraf@ucla.edu tgraf.bol.ucla.edu University of California, Los Angeles Mathematics of Language 11 Bielefeld, Germany 1 The Linguistic

More information

Graph Query Verification using Monadic 2 nd -Order Logic

Graph Query Verification using Monadic 2 nd -Order Logic 1 Graph Query Verification using Monadic 2 nd -Order Logic Graph Kazuhiro Inaba ( 稲葉一浩 ) kinaba@nii.ac.jp Oct 10, 2010 1 st PKU-NII International Joint Workshop on Advanced Software Engineering 2 Goal

More information

Logik für Informatiker Logic for computer scientists

Logik für Informatiker Logic for computer scientists Logik für Informatiker for computer scientists WiSe 2011/12 Overview Motivation Why is logic needed in computer science? The LPL book and software Scheinkriterien Why is logic needed in computer science?

More information

Overview. Discrete Event Systems - Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for?

Overview. Discrete Event Systems - Verification of Finite Automata. What can finite automata be used for? What can finite automata be used for? Computer Engineering and Networks Overview Discrete Event Systems - Verification of Finite Automata Lothar Thiele Introduction Binary Decision Diagrams Representation of Boolean Functions Comparing two

More information

Grammar vs. Rules. Diagnostics in XML Document Validation. Petr Nálevka

Grammar vs. Rules. Diagnostics in XML Document Validation. Petr Nálevka Grammar vs. Rules Diagnostics in XML Document Validation Petr Nálevka University of Economics, Prague Dept. of Information and Knowledge Engineering petr@nalevka.com http://nalevka.com This presentation

More information

Extended Finite-State Machine Induction using SAT-Solver

Extended Finite-State Machine Induction using SAT-Solver Extended Finite-State Machine Induction using SAT-Solver Vladimir Ulyantsev, Fedor Tsarev ulyantsev@rain.ifmo.ru, tsarev@rain.ifmo.ru St. Petersburg National Research University of IT, Mechanics and Optics

More information

Query Relaxation for XML

Query Relaxation for XML 1 Query Relaxation for XML Dongwon Lee U C L A Outline 2 Introduction XML Review Main Work XML Relaxation Framework Relaxed Query Selectivity Issue Data Conversion Issue Future Work Summary HTML vs. XML

More information

REGULAR TREE LANGUAGE RECOGNITION WITH STATIC INFORMATION

REGULAR TREE LANGUAGE RECOGNITION WITH STATIC INFORMATION REGULAR TREE LANGUAGE RECOGNITION WITH STATIC INFORMATION Alain Frisch École Normale Supérieure Alain.Frisch@ens.fr Abstract This paper presents our compilation strategy to produce efficient code for pattern

More information

Semantic Subtyping. Alain Frisch (ENS Paris) Giuseppe Castagna (ENS Paris) Véronique Benzaken (LRI U Paris Sud)

Semantic Subtyping.  Alain Frisch (ENS Paris) Giuseppe Castagna (ENS Paris) Véronique Benzaken (LRI U Paris Sud) Semantic Subtyping Alain Frisch (ENS Paris) Giuseppe Castagna (ENS Paris) Véronique Benzaken (LRI U Paris Sud) http://www.cduce.org/ Semantic Subtyping - Groupe de travail BD LRI p.1/28 CDuce A functional

More information

Fine-grained Compatibility and Replaceability Analysis of Timed Web Service Protocols

Fine-grained Compatibility and Replaceability Analysis of Timed Web Service Protocols Fine-grained Compatibility and Replaceability Analysis of Timed Web Service Protocols Julien Ponge 1,2, Boualem Benatallah 2, Fabio Casati 3 and Farouk Toumani 1 (1) Université Blaise Pascal, Clermont-Ferrand,

More information

Regular Expressions for Data Words

Regular Expressions for Data Words Regular Expressions for Data Words Leonid Libkin and Domagoj Vrgoč School of Informatics, University of Edinburgh Abstract. In data words, each position carries not only a letter form a finite alphabet,

More information

.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar..

.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar.. .. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar.. XML in a Nutshell XML, extended Markup Language is a collection of rules for universal markup of data. Brief History

More information

Rational subsets in HNN-extensions

Rational subsets in HNN-extensions Rational subsets in HNN-extensions G. Sénizergues joint work with M. Lohrey ROUPE DE TRAVAIL-LGL-28/02/06 1 0- PLAN 0 INTRODUCTION 0.1 Problems 0.2 Motivations 0.3 Results 0.4 Tools 1- HNN EXTENSIONS 1.1

More information

Expressiveness of Minmax Automata

Expressiveness of Minmax Automata Expressiveness of Minmax Automata Amaldev Manuel LIAFA, Université Paris Diderot!! joint work with! Thomas Colcombet Stefan Göller Minmax Automata Finite state automaton equipped with +ve-integer registers

More information

An update on XML types

An update on XML types An update on XML types Alain Frisch INRIA Rocquencourt (Cristal project) Links Meeting - Apr. 2005 Plan XML types 1 XML types 2 3 2/24 Plan XML types 1 XML types 2 3 3/24 Claim It is worth studying new

More information

Structured Learning. Jun Zhu

Structured Learning. Jun Zhu Structured Learning Jun Zhu Supervised learning Given a set of I.I.D. training samples Learn a prediction function b r a c e Supervised learning (cont d) Many different choices Logistic Regression Maximum

More information

Formal languages and computation models

Formal languages and computation models Formal languages and computation models Guy Perrier Bibliography John E. Hopcroft, Rajeev Motwani, Jeffrey D. Ullman - Introduction to Automata Theory, Languages, and Computation - Addison Wesley, 2006.

More information

XML Data Exchange. Marcelo Arenas P. Universidad Católica de Chile. Joint work with Leonid Libkin (U. of Toronto)

XML Data Exchange. Marcelo Arenas P. Universidad Católica de Chile. Joint work with Leonid Libkin (U. of Toronto) XML Data Exchange Marcelo Arenas P. Universidad Católica de Chile Joint work with Leonid Libkin (U. of Toronto) Data Exchange in Relational Databases Data exchange has been extensively studied in the relational

More information

Debugging Standard Document Formats

Debugging Standard Document Formats Debugging Standard Document Formats Nabil Layaïda, Pierre Genevès To cite this version: Nabil Layaïda, Pierre Genevès. Debugging Standard Document Formats. Michael Rappa, Paul Jones, Juliana Freire, Soumen

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1 Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.

More information

On the Recognizability of Arrow and Graph Languages

On the Recognizability of Arrow and Graph Languages On the Recognizability of Arrow and Graph Languages Christoph Blume Sander Bruggink Barbara König Universität Duisburg-Essen, Germany Background Applications of finite automata and regular (word) languages

More information

Limitations of Algorithmic Solvability In this Chapter we investigate the power of algorithms to solve problems Some can be solved algorithmically and

Limitations of Algorithmic Solvability In this Chapter we investigate the power of algorithms to solve problems Some can be solved algorithmically and Computer Language Theory Chapter 4: Decidability 1 Limitations of Algorithmic Solvability In this Chapter we investigate the power of algorithms to solve problems Some can be solved algorithmically and

More information

University of Nevada, Las Vegas Computer Science 456/656 Fall 2016

University of Nevada, Las Vegas Computer Science 456/656 Fall 2016 University of Nevada, Las Vegas Computer Science 456/656 Fall 2016 The entire examination is 925 points. The real final will be much shorter. Name: No books, notes, scratch paper, or calculators. Use pen

More information

Monadic Datalog Containment on Trees

Monadic Datalog Containment on Trees Monadic Datalog Containment on Trees André Frochaux 1, Martin Grohe 2, and Nicole Schweikardt 1 1 Goethe-Universität Frankfurt am Main, {afrochaux,schweika}@informatik.uni-frankfurt.de 2 RWTH Aachen University,

More information

Proofs-Programs correspondance and Security

Proofs-Programs correspondance and Security Proofs-Programs correspondance and Security Jean-Baptiste Joinet Université de Lyon & Centre Cavaillès, École Normale Supérieure, Paris Third Cybersecurity Japanese-French meeting Formal methods session

More information

1. [5 points each] True or False. If the question is currently open, write O or Open.

1. [5 points each] True or False. If the question is currently open, write O or Open. University of Nevada, Las Vegas Computer Science 456/656 Spring 2018 Practice for the Final on May 9, 2018 The entire examination is 775 points. The real final will be much shorter. Name: No books, notes,

More information

Completing Queries: Rewriting of Incomplete Web Queries under Schema Constraints

Completing Queries: Rewriting of Incomplete Web Queries under Schema Constraints Completing Queries: Rewriting of Incomplete Web Queries under Schema Constraints Sacha Berger, François Bry, Tim Furche, and Andreas J. Häusler Institute for Informatics, University of Munich, Oettingenstraße

More information

Automatic Generation of Wrapper for Data Extraction from the Web

Automatic Generation of Wrapper for Data Extraction from the Web Automatic Generation of Wrapper for Data Extraction from the Web 2 Suzhi Zhang 1, 2 and Zhengding Lu 1 1 College of Computer science and Technology, Huazhong University of Science and technology, Wuhan,

More information

A Commit Scheduler for XML Databases

A Commit Scheduler for XML Databases A Commit Scheduler for XML Databases Stijn Dekeyser and Jan Hidders University of Antwerp Abstract. The hierarchical and semistructured nature of XML data may cause complicated update-behavior. Updates

More information

Semantic Integration of Tree-Structured Data Using Dimension Graphs

Semantic Integration of Tree-Structured Data Using Dimension Graphs Semantic Integration of Tree-Structured Data Using Dimension Graphs Theodore Dalamagas, Dimitri Theodoratos 2, Antonis Koufopoulos, and I-Ting Liu 2 School of Electr. and Comp. Engineering, National Technical

More information

Cognitive Complexity of Boolean Problems

Cognitive Complexity of Boolean Problems Cognitive Complexity of Boolean Problems Ilya Levin, Gabriel Shafat, Osnat Keren School of Education, Tel Aviv University, School of Engineering, Bar Ilan University, Israel 10th International Workshop

More information

Fault Identification from Web Log Files by Pattern Discovery

Fault Identification from Web Log Files by Pattern Discovery ABSTRACT International Journal of Scientific Research in Computer Science, Engineering and Information Technology 2017 IJSRCSEIT Volume 2 Issue 2 ISSN : 2456-3307 Fault Identification from Web Log Files

More information

Lexical Analysis - 2

Lexical Analysis - 2 Lexical Analysis - 2 More regular expressions Finite Automata NFAs and DFAs Scanners JLex - a scanner generator 1 Regular Expressions in JLex Symbol - Meaning. Matches a single character (not newline)

More information

Database Theory VU , SS Introduction: Relational Query Languages. Reinhard Pichler

Database Theory VU , SS Introduction: Relational Query Languages. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 1. Introduction: Relational Query Languages Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 6 March,

More information

Coq. LASER 2011 Summerschool Elba Island, Italy. Christine Paulin-Mohring

Coq. LASER 2011 Summerschool Elba Island, Italy. Christine Paulin-Mohring Coq LASER 2011 Summerschool Elba Island, Italy Christine Paulin-Mohring http://www.lri.fr/~paulin/laser Université Paris Sud & INRIA Saclay - Île-de-France September 2011 Lecture 4 : Advanced functional

More information

Graph algorithms based on infinite automata: logical descriptions and usable constructions

Graph algorithms based on infinite automata: logical descriptions and usable constructions Graph algorithms based on infinite automata: logical descriptions and usable constructions Bruno Courcelle (joint work with Irène Durand) Bordeaux-1 University, LaBRI (CNRS laboratory) 1 Overview Algorithmic

More information

CDuce. Véronique Benzaken, Giuseppe Castagna, Alain Frisch. PSD Workshop,

CDuce. Véronique Benzaken, Giuseppe Castagna, Alain Frisch. PSD Workshop, http://www.cduce.org/ PSD Workshop, 2004-02 Programming with XML Level 0: textual representation of XML documents AWK, sed, Perl Level 1: abstract view provided by a parser SAX, DOM Level 2: untyped XML-specific

More information

ALASKA Antichains for Logic, Automata and Symbolic Kripke structures Analysis

ALASKA Antichains for Logic, Automata and Symbolic Kripke structures Analysis ALASKA Antichains for Logic, Automata and Symbolic Kripke structures Analysis M. De Wulf 1, L. Doyen 2, N. Maquet 1 and J.-F. Raskin 1 1 Université Libre de Bruxelles (ULB), Belgium 2 École Polytechnique

More information

ECS 120 Lesson 16 Turing Machines, Pt. 2

ECS 120 Lesson 16 Turing Machines, Pt. 2 ECS 120 Lesson 16 Turing Machines, Pt. 2 Oliver Kreylos Friday, May 4th, 2001 In the last lesson, we looked at Turing Machines, their differences to finite state machines and pushdown automata, and their

More information

FAdo: Interactive Tools for Learning Formal Computational Models

FAdo: Interactive Tools for Learning Formal Computational Models FAdo: Interactive Tools for Learning Formal Computational Models Rogério Reis Nelma Moreira DCC-FC& LIACC, Universidade do Porto R. do Campo Alegre 823, 4150 Porto, Portugal {rvr,nam}@ncc.up.pt Abstract

More information

Handbook of Weighted Automata

Handbook of Weighted Automata Manfred Droste Werner Kuich Heiko Vogler Editors Handbook of Weighted Automata 4.1 Springer Contents Part I Foundations Chapter 1: Semirings and Formal Power Series Manfred Droste and Werner Kuich 3 1

More information

HTML-to-XML Migration by Means of Sequential Learning and Grammatical Inference

HTML-to-XML Migration by Means of Sequential Learning and Grammatical Inference HTML-to-XML Migration by Means of Sequential Learning and Grammatical Inference Boris Chidlovskii, Jérôme Fuselier Xerox Research Centre Europe 6, chemin de Maupertuis, F 38240 Meylan, France {chidlovskii,fuselier}@xrce.xerox.com

More information

XML. extensible Markup Language. ... and its usefulness for linguists

XML. extensible Markup Language. ... and its usefulness for linguists XML extensible Markup Language... and its usefulness for linguists Thomas Mayer thomas.mayer@uni-konstanz.de Fachbereich Sprachwissenschaft, Universität Konstanz Seminar Computerlinguistik II (Miriam Butt)

More information

T Reactive Systems: Kripke Structures and Automata

T Reactive Systems: Kripke Structures and Automata Tik-79.186 Reactive Systems 1 T-79.186 Reactive Systems: Kripke Structures and Automata Spring 2005, Lecture 3 January 31, 2005 Tik-79.186 Reactive Systems 2 Properties of systems invariants: the system

More information

Searching SNT in XML Documents Using Reduction Factor

Searching SNT in XML Documents Using Reduction Factor Searching SNT in XML Documents Using Reduction Factor Mary Posonia A Department of computer science, Sathyabama University, Tamilnadu, Chennai, India maryposonia@sathyabamauniversity.ac.in http://www.sathyabamauniversity.ac.in

More information

Type-based Optimization for Regular Patterns

Type-based Optimization for Regular Patterns Type-based Optimization for Regular Patterns Michael Y. Levin Benjamin C. Pierce Department of Computer and Information Science University of Pennsylvania {milevin,bcpierce}@cis.upenn.edu University of

More information

Security Based Heuristic SAX for XML Parsing

Security Based Heuristic SAX for XML Parsing Security Based Heuristic SAX for XML Parsing Wei Wang Department of Automation Tsinghua University, China Beijing, China Abstract - XML based services integrate information resources running on different

More information

The Inverse of a Schema Mapping

The Inverse of a Schema Mapping The Inverse of a Schema Mapping Jorge Pérez Department of Computer Science, Universidad de Chile Blanco Encalada 2120, Santiago, Chile jperez@dcc.uchile.cl Abstract The inversion of schema mappings has

More information

Acknowledgements. Outline

Acknowledgements. Outline Acknowledgements Heuristic Search for Planning Sheila McIlraith University of Toronto Fall 2010 Many of the slides used in today s lecture are modifications of slides developed by Malte Helmert, Bernhard

More information

Automata Theory for Reasoning about Actions

Automata Theory for Reasoning about Actions Automata Theory for Reasoning about Actions Eugenia Ternovskaia Department of Computer Science, University of Toronto Toronto, ON, Canada, M5S 3G4 eugenia@cs.toronto.edu Abstract In this paper, we show

More information

Theory of Computation Dr. Weiss Extra Practice Exam Solutions

Theory of Computation Dr. Weiss Extra Practice Exam Solutions Name: of 7 Theory of Computation Dr. Weiss Extra Practice Exam Solutions Directions: Answer the questions as well as you can. Partial credit will be given, so show your work where appropriate. Try to be

More information

SORT INFERENCE \coregular" signatures, they derive an algorithm for computing a most general typing for expressions e which is only slightly more comp

SORT INFERENCE \coregular signatures, they derive an algorithm for computing a most general typing for expressions e which is only slightly more comp Haskell Overloading is DEXPTIME{complete Helmut Seidl Fachbereich Informatik Universitat des Saarlandes Postfach 151150 D{66041 Saarbrucken Germany seidl@cs.uni-sb.de Febr., 1994 Keywords: Haskell type

More information

Introduction to Coq Proof Assistant

Introduction to Coq Proof Assistant Introduction to Coq Proof Assistant Qian Hu, M.Sc McMaster University March 3, 2010 Presentation Outline Overview Computer Assistance in Proofs Proof Assistant Coq Introduction The Coq Proof Assistant

More information

Recursively Enumerable Languages, Turing Machines, and Decidability

Recursively Enumerable Languages, Turing Machines, and Decidability Recursively Enumerable Languages, Turing Machines, and Decidability 1 Problem Reduction: Basic Concepts and Analogies The concept of problem reduction is simple at a high level. You simply take an algorithm

More information

Heuristic Search for Planning

Heuristic Search for Planning Heuristic Search for Planning Sheila McIlraith University of Toronto Fall 2010 S. McIlraith Heuristic Search for Planning 1 / 50 Acknowledgements Many of the slides used in today s lecture are modifications

More information

CSEP 573: Artificial Intelligence

CSEP 573: Artificial Intelligence CSEP 573: Artificial Intelligence Machine Learning: Perceptron Ali Farhadi Many slides over the course adapted from Luke Zettlemoyer and Dan Klein. 1 Generative vs. Discriminative Generative classifiers:

More information

Reasoning on Business Processes and Ontologies in a Logic Programming Environment

Reasoning on Business Processes and Ontologies in a Logic Programming Environment Reasoning on Business Processes and Ontologies in a Logic Programming Environment Michele Missikoff 1, Maurizio Proietti 1, Fabrizio Smith 1,2 1 IASI-CNR, Viale Manzoni 30, 00185, Rome, Italy 2 DIEI, Università

More information

B vs. Coq to prove a Garbage Collector

B vs. Coq to prove a Garbage Collector B vs. Coq to prove a Garbage Collector L. Burdy GEMPLUS Avenue du Pic de Bertagne - 13881 Gémenos Cedex - France lilian.burdy@gemplus.com Abstract. This paper presents a comparison between two formal methods

More information

One-Point Geometric Crossover

One-Point Geometric Crossover One-Point Geometric Crossover Alberto Moraglio School of Computing and Center for Reasoning, University of Kent, Canterbury, UK A.Moraglio@kent.ac.uk Abstract. Uniform crossover for binary strings has

More information

Data Compliance Guidelines Version 1.2

Data Compliance Guidelines Version 1.2 Version 1.2 January 2007 (This page is intentionally blank) Published By: STAR Organization 2007 i Table of Contents 1. Introduction... 1 2. General Data Compliance Criteria... 2 2.1 Implementation Versions...

More information

FUZZY SPECIFICATION IN SOFTWARE ENGINEERING

FUZZY SPECIFICATION IN SOFTWARE ENGINEERING 1 FUZZY SPECIFICATION IN SOFTWARE ENGINEERING V. LOPEZ Faculty of Informatics, Complutense University Madrid, Spain E-mail: ab vlopez@fdi.ucm.es www.fdi.ucm.es J. MONTERO Faculty of Mathematics, Complutense

More information

An FCA Framework for Knowledge Discovery in SPARQL Query Answers

An FCA Framework for Knowledge Discovery in SPARQL Query Answers An FCA Framework for Knowledge Discovery in SPARQL Query Answers Melisachew Wudage Chekol, Amedeo Napoli To cite this version: Melisachew Wudage Chekol, Amedeo Napoli. An FCA Framework for Knowledge Discovery

More information

Talen en Compilers. Jurriaan Hage , period 2. November 13, Department of Information and Computing Sciences Utrecht University

Talen en Compilers. Jurriaan Hage , period 2. November 13, Department of Information and Computing Sciences Utrecht University Talen en Compilers 2017-2018, period 2 Jurriaan Hage Department of Information and Computing Sciences Utrecht University November 13, 2017 1. Introduction 1-1 This lecture Introduction Course overview

More information

DSD: A Schema Language for XML

DSD: A Schema Language for XML DSD: A Schema Language for XML Nils Klarlund, AT&T Labs Research Anders Møller, BRICS, Aarhus University Michael I. Schwartzbach, BRICS, Aarhus University Connections between XML and Formal Methods XML:

More information

Uncertain Data Models

Uncertain Data Models Uncertain Data Models Christoph Koch EPFL Dan Olteanu University of Oxford SYNOMYMS data models for incomplete information, probabilistic data models, representation systems DEFINITION An uncertain data

More information

Decidable Problems. We examine the problems for which there is an algorithm.

Decidable Problems. We examine the problems for which there is an algorithm. Decidable Problems We examine the problems for which there is an algorithm. Decidable Problems A problem asks a yes/no question about some input. The problem is decidable if there is a program that always

More information

XML and Databases. Outline. Outline - Lectures. Outline - Assignments. from Lecture 3 : XPath. Sebastian Maneth NICTA and UNSW

XML and Databases. Outline. Outline - Lectures. Outline - Assignments. from Lecture 3 : XPath. Sebastian Maneth NICTA and UNSW Outline XML and Databases Lecture 10 XPath Evaluation using RDBMS 1. Recall / encoding 2. XPath with //,, @, and text() 3. XPath with / and -sibling: use / size / level encoding Sebastian Maneth NICTA

More information

Global Optimality in Neural Network Training

Global Optimality in Neural Network Training Global Optimality in Neural Network Training Benjamin D. Haeffele and René Vidal Johns Hopkins University, Center for Imaging Science. Baltimore, USA Questions in Deep Learning Architecture Design Optimization

More information

Decision Procedures. An Algorithmic Point of View. Decision Procedures for Propositional Logic. D. Kroening O. Strichman.

Decision Procedures. An Algorithmic Point of View. Decision Procedures for Propositional Logic. D. Kroening O. Strichman. Decision Procedures An Algorithmic Point of View Decision Procedures for Propositional Logic D. Kroening O. Strichman ETH/Technion Version 1.0, 2007 Part I Decision Procedures for Propositional Logic Outline

More information

On the Analysis of Queries with Counting Constraints

On the Analysis of Queries with Counting Constraints On the Analysis of Queries with Counting Constraints Everardo Barcenas-Patino, Pierre Genevès, Nabil Layaïda To cite this version: Everardo Barcenas-Patino, Pierre Genevès, Nabil Layaïda. On the Analysis

More information

DRAFT. Un Système de gestion de données XML probabilistes * Pierre Senellart Asma Souihli

DRAFT. Un Système de gestion de données XML probabilistes * Pierre Senellart Asma Souihli Un Système de gestion de données XML probabilistes * Pierre Senellart Asma Souihli Institut Télécom; Télécom ParisTech CNRS LTCI, 46 rue Barrault 75634 Paris, France [first.last]@telecom-paristech.fr Cette

More information

The Essence of XML. Jérôme Siméon, Bell Labs, Lucent Philip Wadler, Avaya Labs

The Essence of XML. Jérôme Siméon, Bell Labs, Lucent Philip Wadler, Avaya Labs The Essence of XML Jérôme Siméon, Bell Labs, Lucent Philip Wadler, Avaya Labs The Evolution of Language 2x (Descartes) λx. 2x (Church) (LAMBDA (X) (* 2 X)) (McCarthy)

More information

Regular Path Queries on Graphs with Data

Regular Path Queries on Graphs with Data Regular Path Queries on Graphs with Data Leonid Libkin Domagoj Vrgoč ABSTRACT Graph data models received much attention lately due to applications in social networks, semantic web, biological databases

More information