Towards Efficient String Processing of Annotated Events

Size: px
Start display at page:

Download "Towards Efficient String Processing of Annotated Events"

Transcription

1 Towards Efficient String Processing of Annotated Events David Woods 1 Tim Fernando 2 Carl Vogel 2 1 ADAPT Centre Trinity College Dublin, Ireland 2 Computational Linguistics Group Trinity Centre for Computing and Language Studies School of Computer Science Trinity College Dublin, Ireland ISA-13, 2017

2 Motivation ISO-TimeML ISO-TimeML Fragment

3 Motivation TLINKs TLINKs in an ISO-TimeML Document

4 Motivation TLINKs Examples 1 <TLINK reltype="is INCLUDED" eventinstanceid="ei1" relatedtotime="t1"/> 2 <TLINK reltype="is INCLUDED" timeid="t1" relatedtoeventinstance="ei9"/> 3 <TLINK reltype="before" eventinstanceid="ei9" relatedtoeventinstance="ei10"/>

5 Motivation Allen Relations Allen Relations Allen (1983, p835, Fig. 2)

6 Motivation Allen Relations Example Example John slept through the fire alarm last Tuesday. This sentence gives us two events, and one time period: 1 js = John slept (event) 2 fa = a fire alarm occurred (event) 3 lt = last Tuesday (time period) We can represent the information with the binary Allen Relations: js di fa js d lt

7 Introduction Strings as Models Strings as Models We can use strings as models to effectively represent this event data. Example John slept through the fire alarm last Tuesday. lt lt, js lt, js, fa lt, js lt

8 Introduction Sets as Symbols Sets as Symbols Fix a finite set A of fluents. Fluents will be understood as naming an event instance (or time) in ISO-TimeML. We encode finite sets of these fluents as symbols, which may appear in a string.

9 Introduction Event-Strings Event-Strings A string s = α 1 α n of subsets α i of A can be construed as a finite model consisting of n moments of time i {1,..., n}. Each α i specifies all fluents in A that hold simultaneously at i. Each α i is understood to occur chronologically before α j if and only if i < j. The powerset 2 A of A will serve as an alphabet Σ = 2 A of an event-string s Σ +.

10 Introduction No Time Without Change No Time Without Change But neither does time exist without change Aristotle, Physics IV

11 Introduction No Time Without Change No Time Without Change The precise real-time duration of each symbol is disregarded (for now). Event-strings model a kind of inertial world. Change is the only marker of progression from one moment to the next.

12 Superposition and Block Compression Superposition Superposition In order to usefully collect information from multiple strings into a single string, we define the operation of superposition: Definition With two strings s and s of equal length, their superposition, s & s, is their componentwise union: α 1 α n & α 1 α n := (α 1 α 1) (α n α n)

13 Superposition and Block Compression Superposition Box Notation For convenience of notation, we draw boxes rather than curly braces { } to represent sets of fluents in an event-string. Example With a, b, c, d A: a c & b d = a, b c, d

14 Superposition and Block Compression String Manipulation Stutter We can cause a string s = α 1 α n to stutter such that α i = α i+1 for some integer 0 < i < n. For example, a a a c c is a stuttering version of a c. Since the realtime duration of each box is not taken into account, the interpretation of the string is unaffected.

15 Superposition and Block Compression String Manipulation Block Compression We can transform a stuttering string to a stutterless string through block compression: Definition bc(s) := s if length(s) 1 bc(αs ) if s = ααs α bc(α s ) if s = αα s with α α Thus, bc( a a a c c ) = a c.

16 Superposition and Block Compression String Manipulation Inverse Block Compression We can generate infinitely many stuttering strings, all of which are bc-equivalent: Example bc 1 ( a c ) = { a c, a a c, a c c,...} = a + c + Precisely, a string s is bc-equivalent to a string s iff s bc 1 bc(s), and s bc 1 bc(s) iff bc(s) = bc(s ).

17 Superposition and Block Compression Asynchronous Superposition Asynchronous Superposition This gives our initial definition of asynchronous superposition: Definition (Initial) The asynchronous superposition of two strings s and s is the set of strings obtained by block compressing the results of superposing the strings which are bc-equivalent to s and s : s & s := {bc(s ) s bc 1 bc(s) & bc 1 bc(s )} Example a c & b d = { a, b c, d, a, b a, d c, d, a, b b, c c, d }

18 Superposition and Block Compression Asynchronous Superposition Upper Bound on Asynchronous Superposition We can improve this definition. It can be shown that for two strings of length n and n, the longest string produced by asynchronous superposition which has no bc-equivalent strings will be of length n + n 1. Thus, for any integer k > 0 and string s, we introduce a new operation pad k (s) which will generate the set of strings with length k which are bc-equivalent to s. Definition pad k (s) = bc 1 (s) Σ k

19 Superposition and Block Compression Asynchronous Superposition Upper Bound on Asynchronous Superposition An improved definition of asynchronous superposition, which puts a clear finite bound on the infinite language generated by inverse block compression: Definition (Improved) For any s, s Σ + with nonzero lengths n and n respectively, s & s = {bc(s ) s pad n+n 1(s) & pad n+n 1(s )}

20 Event Representation Allen Relations Bounding Boxes We use the empty box as a string of length 1 (not to be confused with the empty string ɛ, which is length 0) to bound events, allowing us to represent the fact that they are finite. Asynchronous superposition allows us to generate the 13 strings in e & e, each of which corresponds to one of the unique Allen Relations, and also one of the relation types in ISO-TimeML s TLINKs.

21 Event Representation Allen Relations Allen Relations as Event-Strings e = e e, e equal e s e e, e e starts e si e e, e e starts (inverse) e f e e e, e finishes e fi e e e, e finishes (inverse) e d e e e, e e during e di e e e, e e during (inverse) e o e e e, e e overlaps e oi e e e, e e overlaps (inverse) e m e e e meets e mi e e e meets (inverse) e < e e e before e > e e e after

22 Event Representation Allen Relations Three Unconstrained Bounded Events e & e & e = { e, e, e, e e, e, e, e e, e, e e, e, e, e e, e, e, e, e, e e, e, e e, e, e e, e, e, e e, e, e, e e, e e, e, e e, e, e e, e, e e, e, e, e e, e, e e, e, e e, e e, e, e, e, e e, e, e, e, e e, e, e e, e e, e, e, e e, e e, e, e e e, e, e e e, e, e e, e e, e, e, e e, e e, e, e, e e e, e, e e, e e e, e, e e, e e, e, e, e e, e, e e, e, e, e e, e, e e, e, e e, e e, e, e e, e, e e, e e, e e, e, e e, e, e e, e, e e, e e, e e, e, e e, e e, e e e, e, e e, e e, e, e e, e, e e, e e, e, e e, e e, e e, e, e e, e, e e, e e, e, e e, e e, e e,... }

23 Constraints on Event-Strings Well-formed Event-Strings Constraints How to prevent unnecessary over-generation?

24 Constraints on Event-Strings Well-formed Event-Strings Reduct The reduct operation will help to identify well-formed event-strings: Definition The reduct ρ X (s) for any X A and event-string s produces a componentwise intersection of s with X : ρ X (α 1 α n ) := (α 1 X ) (α n X ) Example With a, b A: bc(ρ {a} ( a a, b b )) = a

25 Constraints on Event-Strings Well-formed Event-Strings Well-formed Event-Strings Fluents are interval-like. Thus for any event-string s and any e A, bc(ρ {e} (s)) = e (or, if e doesn t appear in s). Relations are consistent. For example, if the relations e > e and e > e hold, then the relation e > e cannot also hold. We may discard any event-string which is not well-formed.

26 Constraints on Event-Strings Well-formed Event-Strings Constrained Superposition When a fluent appears in two different strings, s and s, which are to be asynchronously superposed, the number of well-formed results is usually reduced. Example The fluent b appears in both strings, yielding only one well-formed result: a b & b c = a b c Without the constraint of being well-formed, the above example would generate 270 strings, rather than 1.

27 Constraints on Event-Strings Multiple Events Transitivity Table Fragment before b c during c b, c c meets b c a c b, c c, before a b a b c a a, c c b, c c, a c b, c c, c a, c c b, c c, a b c a, c c b, c c during b a, b b b a, b b c c b, c a, b, c b, c c b a, b b c meets a b a b c a a, c b, c c, c a, c b, c c, a, c b, c c a b c

28 Constraints on Event-Strings Multiple Events Arbitrary Events No matter how many events feature in an event-string, applying the reduct ρ {e,e } and block compressing (where e and e are the events we are interested in) will give the event-string which corresponds to the Allen Relation between e and e. For example, given a > b, b > c, and c > d we can deduce a > d:

29 Constraints on Event-Strings Multiple Events Arbitrary Events 1 bc(ρ {a,d} ( a b & b c & c d )) 2 bc(ρ {a,d} ( a b c d )) 3 bc( a d ) 4 a d 5 a > d

30 Applied to ISO-TimeML Translating TLINKs Example TLINKs 1 <TLINK reltype="is INCLUDED" eventinstanceid="ei1" relatedtotime="t1"/> 2 <TLINK reltype="is INCLUDED" timeid="t1" relatedtoeventinstance="ei9"/> 3 <TLINK reltype="before" eventinstanceid="ei9" relatedtoeventinstance="ei10"/>

31 Applied to ISO-TimeML Translating TLINKs TLINKs as Allen Relations 1 ei1 d t1 2 t1 d ei9 3 ei9 > ei10

32 Applied to ISO-TimeML Translating TLINKs TLINKs as Event-Strings 1 t1 ei1, t1 t1 2 ei9 t1, ei9 ei9 3 ei9 ei10

33 Applied to ISO-TimeML Translating TLINKs Combining Information t1 ei1, t1 t1 & ei9 t1, ei9 ei9 & ei9 ei10 = ei9 t1, ei9 ei1, t1, ei9 t1, ei9 ei9 ei10

34 Applied to ISO-TimeML Translating TLINKs Extracting New Information 1 bc(ρ {ei1,ei10} ( ei9 t1, ei9 ei1, t1, ei9 t1, ei9 ei9 ei10 )) 2 bc( ei1 ei10 ) 3 ei1 ei10 4 ei1 > ei10

35 Further Work Deciding when to use asynchronous superposition (too many generated strings may not be worth it). Developing the framework to treat event types and include more information (durations, etc.).

36 Acknowledgements This research is supported by Science Foundation Ireland (SFI) through the CNGL Programme (Grant 12/CE/I2267) in the ADAPT Centre ( at Trinity College Dublin. The ADAPT Centre for Digital Content Technology is funded under the SFI Research Centres Programme (Grant 13/RC/2106) and is co-funded under the European Regional Development Fund. Thank you for listening!

A Universal Turing Machine

A Universal Turing Machine A Universal Turing Machine A limitation of Turing Machines: Turing Machines are hardwired they execute only one program Real Computers are re-programmable Solution: Universal Turing Machine Attributes:

More information

Finite-state representations embodying temporal relations

Finite-state representations embodying temporal relations Finite-state representations embodying temporal relations Tim Fernando Computer Science Department Trinity College Dublin 2, Ireland Tim.Fernandol@tcd.ie Abstract Finite-state methods are applied to the

More information

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS. 4 Functions Before studying functions we will first quickly define a more general idea, namely the notion of a relation. A function turns out to be a special type of relation. Definition: Let S and T be

More information

Intervals & events with & without points

Intervals & events with & without points Intervals & events with & without points Tim Fernando (Dublin, Ireland) Stockholm, 2018 James Allen: intervals as primitive There seems to be a strong intuition that, given an event, we can always turn

More information

Two perspectives on change & institutions

Two perspectives on change & institutions Two perspectives on change & institutions Tim Fernando Trinity College Dublin, Ireland Nicola Guarino 2014 - Ontological analysis as a search for truth makers - Episodes as truth makers for material relations

More information

1 Alphabets and Languages

1 Alphabets and Languages 1 Alphabets and Languages Look at handout 1 (inference rules for sets) and use the rules on some examples like {a} {{a}} {a} {a, b}, {a} {{a}}, {a} {{a}}, {a} {a, b}, a {{a}}, a {a, b}, a {{a}}, a {a,

More information

Theory of Computation p.1/?? Theory of Computation p.2/?? We develop examples of languages that are decidable

Theory of Computation p.1/?? Theory of Computation p.2/?? We develop examples of languages that are decidable Decidable Languages We use languages to represent various computational problems because we have a terminology for dealing with languages Definition: A language is decidable if there is an algorithm (i.e.

More information

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall c Oksana Shatalov, Fall 2017 1 4. Sets 4.1. The language of sets Set Terminology and Notation Set is a well-defined collection of objects. Elements are objects or members of the set. Describing a Set Roster

More information

COT3100 SI Final Exam Review

COT3100 SI Final Exam Review 1 Symbols COT3100 SI Final Exam Review Jarrett Wendt Spring 2018 You ve learned a plethora of new Mathematical symbols this semester. Let s see if you know them all and what they re used for. How many

More information

arxiv: v2 [cs.fl] 29 Nov 2013

arxiv: v2 [cs.fl] 29 Nov 2013 A Survey of Multi-Tape Automata Carlo A. Furia May 2012 arxiv:1205.0178v2 [cs.fl] 29 Nov 2013 Abstract This paper summarizes the fundamental expressiveness, closure, and decidability properties of various

More information

Basic Equations and Inequalities. An equation is a statement that the values of two expressions are equal.

Basic Equations and Inequalities. An equation is a statement that the values of two expressions are equal. Hartfield College Algebra (Version 2018 - Thomas Hartfield) Unit ZERO Page - 1 - of 7 Topic 0: Definition: Ex. 1 Basic Equations and Inequalities An equation is a statement that the values of two expressions

More information

Prior and temporal sequences for natural language

Prior and temporal sequences for natural language Prior and temporal sequences for natural language Tim Fernando Trinity College Dublin, Ireland Tim.Fernando@tcd.ie In a widely quoted defense of logics of discrete time, Arthur Prior writes The usefulness

More information

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is,

T (s, xa) = T (T (s, x), a). The language recognized by M, denoted L(M), is the set of strings accepted by M. That is, Recall A deterministic finite automaton is a five-tuple where S is a finite set of states, M = (S, Σ, T, s 0, F ) Σ is an alphabet the input alphabet, T : S Σ S is the transition function, s 0 S is the

More information

Topics in Logic and Proofs

Topics in Logic and Proofs Chapter 2 Topics in Logic and Proofs Some mathematical statements carry a logical value of being true or false, while some do not. For example, the statement 4 + 5 = 9 is true, whereas the statement 2

More information

MATH 2200 Final Review

MATH 2200 Final Review MATH 00 Final Review Thomas Goller December 7, 01 1 Exam Format The final exam will consist of 8-10 proofs It will take place on Tuesday, December 11, from 10:30 AM - 1:30 PM, in the usual room Topics

More information

1.1 Introduction to Sets

1.1 Introduction to Sets Math 166 Lecture Notes - S. Nite 8/29/2012 Page 1 of 5 1.1 Introduction to Sets Set Terminology and Notation A set is a well-defined collection of objects. The objects are called the elements and are usually

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION

FORMAL LANGUAGES, AUTOMATA AND COMPUTATION FORMAL LANGUAGES, AUTOMATA AND COMPUTATION DECIDABILITY ( LECTURE 15) SLIDES FOR 15-453 SPRING 2011 1 / 34 TURING MACHINES-SYNOPSIS The most general model of computation Computations of a TM are described

More information

NP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar..

NP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar.. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar.. Complexity Class P NP-Complete Problems Abstract Problems. An abstract problem Q is a binary relation on sets I of input instances

More information

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers.

Comment: The induction is always on some parameter, and the basis case is always an integer or set of integers. 1. For each of the following statements indicate whether it is true or false. For the false ones (if any), provide a counter example. For the true ones (if any) give a proof outline. (a) Union of two non-regular

More information

In this initial chapter, you will be introduced to, or more than likely be reminded of, a

In this initial chapter, you will be introduced to, or more than likely be reminded of, a 1 Sets In this initial chapter, you will be introduced to, or more than likely be reminded of, a fundamental idea that occurs throughout mathematics: sets. Indeed, a set is an object from which every mathematical

More information

1 Showing Recognizability

1 Showing Recognizability CSCC63 Worksheet Recognizability and Decidability 1 1 Showing Recognizability 1.1 An Example - take 1 Let Σ be an alphabet. L = { M M is a T M and L(M) }, i.e., that M accepts some string from Σ. Prove

More information

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion CHAPTER 1 Relations 1. Relations and Their Properties 1.1. Definition of a Relation. Definition 1.1.1. A binary relation from a set A to a set B is a subset R A B. If (a, b) R we say a is Related to b

More information

Exclusive Disjunction

Exclusive Disjunction Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is

More information

Predication via Finite-State Methods

Predication via Finite-State Methods Predication via Finite-State Methods 1. Introduction: Less is More Tim Fernando ESSLLI 2017, Toulouse www.scss.tcd.ie/tim.fernando/fsm4sas Course themes: finite-state approximability bounded granularity

More information

Embedded systems specification and design

Embedded systems specification and design Embedded systems specification and design David Kendall David Kendall Embedded systems specification and design 1 / 21 Introduction Finite state machines (FSM) FSMs and Labelled Transition Systems FSMs

More information

Course: Algebra 1-A Direct link to this page:http://www.floridastandards.org/courses/publicpreviewcourse5.aspx?ct=1

Course: Algebra 1-A Direct link to this page:http://www.floridastandards.org/courses/publicpreviewcourse5.aspx?ct=1 Course: 1200370 Algebra 1-A Direct link to this page:http://www.floridastandards.org/courses/publicpreviewcourse5.aspx?ct=1 BASIC INFORMATION Course Number: 1200370 Course Title: Algebra 1-A Course Abbreviated

More information

From Fundamentele Informatica 1: inleverdatum 1 april 2014, 13:45 uur. A Set A of the Same Size as B or Larger Than B. A itself is not.

From Fundamentele Informatica 1: inleverdatum 1 april 2014, 13:45 uur. A Set A of the Same Size as B or Larger Than B. A itself is not. Fundamentele Informatica 3 voorjaar 2014 http://www.liacs.nl/home/rvvliet/fi3/ Rudy van Vliet kamer 124 Snellius, tel. 071-527 5777 rvvliet(at)liacs(dot)nl college 8, 31 maart 2014 8. Recursively Enumerable

More information

1 The distributive law

1 The distributive law THINGS TO KNOW BEFORE GOING INTO DISCRETE MATHEMATICS The distributive law The distributive law is this: a(b + c) = ab + bc This can be generalized to any number of terms between parenthesis; for instance:

More information

Image schemas via finite-state methods structured category-theoretically

Image schemas via finite-state methods structured category-theoretically Objective predication Subjective predication Reconciliation Image schemas via finite-state methods structured category-theoretically Tim Fernando Bolzano, 22 August 2016, PROSECCO a recurring structure

More information

CPS 220 Theory of Computation REGULAR LANGUAGES

CPS 220 Theory of Computation REGULAR LANGUAGES CPS 22 Theory of Computation REGULAR LANGUAGES Introduction Model (def) a miniature representation of a thing; sometimes a facsimile Iraq village mockup for the Marines Scientific modelling - the process

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R. 2. Basic Structures 2.1 Sets Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R. Definition 2 Objects in a set are called elements or members of the set. A set is

More information

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set)

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set) c Oksana Shatalov, Fall 2018 1 4. Sets 4.1. The language of sets Set Terminology and Notation Set is a well-defined collection of objects. Elements are objects or members of the set. Describing a Set Roster

More information

Sets. 1.1 What is a set?

Sets. 1.1 What is a set? Section 1 Sets 1 Sets After working through this section, you should be able to: (a) use set notation; (b) determine whether two given sets are equal and whether one given set is a subset of another; (c)

More information

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Chapter 9 1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.

More information

2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B).

2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B). 2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B). 2.24 Theorem. Let A and B be sets in a metric space. Then L(A B) = L(A) L(B). It is worth noting that you can t replace union

More information

Entailments in finite-state temporality

Entailments in finite-state temporality Entailments in finite-state temporality Tim Fernando and Rowan Nairn Computer Science Department, Trinity College Dublin 1 Introduction The surge in use of finite-state methods ([10]) in computational

More information

Sparse analysis Lecture II: Hardness results for sparse approximation problems

Sparse analysis Lecture II: Hardness results for sparse approximation problems Sparse analysis Lecture II: Hardness results for sparse approximation problems Anna C. Gilbert Department of Mathematics University of Michigan Sparse Problems Exact. Given a vector x R d and a complete

More information

Computational Models #1

Computational Models #1 Computational Models #1 Handout Mode Nachum Dershowitz & Yishay Mansour March 13-15, 2017 Nachum Dershowitz & Yishay Mansour Computational Models #1 March 13-15, 2017 1 / 41 Lecture Outline I Motivation

More information

ACS2: Decidability Decidability

ACS2: Decidability Decidability Decidability Bernhard Nebel and Christian Becker-Asano 1 Overview An investigation into the solvable/decidable Decidable languages The halting problem (undecidable) 2 Decidable problems? Acceptance problem

More information

Context-free grammars and languages

Context-free grammars and languages Context-free grammars and languages The next class of languages we will study in the course is the class of context-free languages. They are defined by the notion of a context-free grammar, or a CFG for

More information

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization Department of Computer Science Series of Publications C Report C-2004-2 The Complexity of Maximum Matroid-Greedoid Intersection and Weighted Greedoid Maximization Taneli Mielikäinen Esko Ukkonen University

More information

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr. Chapter : Logic Topics:. Statements, Negation, and Compound Statements.2 Truth Tables and Logical Equivalences.3

More information

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism

Closure Properties of Regular Languages. Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties of Regular Languages Union, Intersection, Difference, Concatenation, Kleene Closure, Reversal, Homomorphism, Inverse Homomorphism Closure Properties Recall a closure property is a statement

More information

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam

ECS 120: Theory of Computation UC Davis Phillip Rogaway February 16, Midterm Exam ECS 120: Theory of Computation Handout MT UC Davis Phillip Rogaway February 16, 2012 Midterm Exam Instructions: The exam has six pages, including this cover page, printed out two-sided (no more wasted

More information

Intersections of Planes and Systems of Linear Equations

Intersections of Planes and Systems of Linear Equations Chapter 4 Intersections of Planes and Systems of Linear Equations Using coördinates, a plane Π is defined by an equation: ax + by + cz = d, where a, b, c, d are real numbers, and at least one of a, b,

More information

Computational Models - Lecture 1 1

Computational Models - Lecture 1 1 Computational Models - Lecture 1 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. February 29/ March 02, 2016 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames

More information

Lecture notes on Turing machines

Lecture notes on Turing machines Lecture notes on Turing machines Ivano Ciardelli 1 Introduction Turing machines, introduced by Alan Turing in 1936, are one of the earliest and perhaps the best known model of computation. The importance

More information

3515ICT: Theory of Computation. Regular languages

3515ICT: Theory of Computation. Regular languages 3515ICT: Theory of Computation Regular languages Notation and concepts concerning alphabets, strings and languages, and identification of languages with problems (H, 1.5). Regular expressions (H, 3.1,

More information

CpSc 421 Final Exam December 15, 2006

CpSc 421 Final Exam December 15, 2006 CpSc 421 Final Exam December 15, 2006 Do problem zero and six of problems 1 through 9. If you write down solutions for more that six problems, clearly indicate those that you want graded. Note that problems

More information

Introduction to Turing Machines. Reading: Chapters 8 & 9

Introduction to Turing Machines. Reading: Chapters 8 & 9 Introduction to Turing Machines Reading: Chapters 8 & 9 1 Turing Machines (TM) Generalize the class of CFLs: Recursively Enumerable Languages Recursive Languages Context-Free Languages Regular Languages

More information

Time to learn about NP-completeness!

Time to learn about NP-completeness! Time to learn about NP-completeness! Harvey Mudd College March 19, 2007 Languages A language is a set of strings Examples The language of strings of all zeros with odd length The language of strings with

More information

Math Fall 2014 Final Exam Solutions

Math Fall 2014 Final Exam Solutions Math 2001-003 Fall 2014 Final Exam Solutions Wednesday, December 17, 2014 Definition 1. The union of two sets X and Y is the set X Y consisting of all objects that are elements of X or of Y. The intersection

More information

arxiv: v1 [cs.pl] 19 May 2016

arxiv: v1 [cs.pl] 19 May 2016 arxiv:1605.05858v1 [cs.pl] 19 May 2016 Domain Theory: An Introduction Robert Cartwright Rice University Rebecca Parsons ThoughtWorks, Inc. Moez AbdelGawad SRTA-City Hunan University This monograph is an

More information

Theory of Computation

Theory of Computation Theory of Computation Dr. Sarmad Abbasi Dr. Sarmad Abbasi () Theory of Computation / Lecture 3: Overview Decidability of Logical Theories Presburger arithmetic Decidability of Presburger Arithmetic Dr.

More information

Homework 1 Due September 20 M1 M2

Homework 1 Due September 20 M1 M2 Homework 1 Due September 20 1. Consider the state diagrams for two DFAs, M1 and M2 M1 M2 a. Give the formal descriptions of the two machines above specifically, specify the elements of the 5-tuple (Q,

More information

(a) Definition of TMs. First Problem of URMs

(a) Definition of TMs. First Problem of URMs Sec. 4: Turing Machines First Problem of URMs (a) Definition of the Turing Machine. (b) URM computable functions are Turing computable. (c) Undecidability of the Turing Halting Problem That incrementing

More information

34.1 Polynomial time. Abstract problems

34.1 Polynomial time. Abstract problems < Day Day Up > 34.1 Polynomial time We begin our study of NP-completeness by formalizing our notion of polynomial-time solvable problems. These problems are generally regarded as tractable, but for philosophical,

More information

Introduction to Automata

Introduction to Automata Introduction to Automata Seungjin Choi Department of Computer Science and Engineering Pohang University of Science and Technology 77 Cheongam-ro, Nam-gu, Pohang 37673, Korea seungjin@postech.ac.kr 1 /

More information

Johns Hopkins Math Tournament Proof Round: Automata

Johns Hopkins Math Tournament Proof Round: Automata Johns Hopkins Math Tournament 2018 Proof Round: Automata February 9, 2019 Problem Points Score 1 10 2 5 3 10 4 20 5 20 6 15 7 20 Total 100 Instructions The exam is worth 100 points; each part s point value

More information

About the relationship between formal logic and complexity classes

About the relationship between formal logic and complexity classes About the relationship between formal logic and complexity classes Working paper Comments welcome; my email: armandobcm@yahoo.com Armando B. Matos October 20, 2013 1 Introduction We analyze a particular

More information

Theory of Computation

Theory of Computation Thomas Zeugmann Hokkaido University Laboratory for Algorithmics http://www-alg.ist.hokudai.ac.jp/ thomas/toc/ Lecture 3: Finite State Automata Motivation In the previous lecture we learned how to formalize

More information

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth Sets We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth century. Most students have seen sets before. This is intended

More information

CSCI3390-Lecture 6: An Undecidable Problem

CSCI3390-Lecture 6: An Undecidable Problem CSCI3390-Lecture 6: An Undecidable Problem September 21, 2018 1 Summary The language L T M recognized by the universal Turing machine is not decidable. Thus there is no algorithm that determines, yes or

More information

Equivalence of Regular Expressions and FSMs

Equivalence of Regular Expressions and FSMs Equivalence of Regular Expressions and FSMs Greg Plaxton Theory in Programming Practice, Spring 2005 Department of Computer Science University of Texas at Austin Regular Language Recall that a language

More information

CS 125 Section #10 (Un)decidability and Probability November 1, 2016

CS 125 Section #10 (Un)decidability and Probability November 1, 2016 CS 125 Section #10 (Un)decidability and Probability November 1, 2016 1 Countability Recall that a set S is countable (either finite or countably infinite) if and only if there exists a surjective mapping

More information

NP, polynomial-time mapping reductions, and NP-completeness

NP, polynomial-time mapping reductions, and NP-completeness NP, polynomial-time mapping reductions, and NP-completeness In the previous lecture we discussed deterministic time complexity, along with the time-hierarchy theorem, and introduced two complexity classes:

More information

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31 Contents 1 Lecture 1: Introduction 2 2 Lecture 2: Logical statements and proof by contradiction 7 3 Lecture 3: Induction and Well-Ordering Principle 11 4 Lecture 4: Definition of a Group and examples 15

More information

The Unsolvability of the Halting Problem. Chapter 19

The Unsolvability of the Halting Problem. Chapter 19 The Unsolvability of the Halting Problem Chapter 19 Languages and Machines SD D Context-Free Languages Regular Languages reg exps FSMs cfgs PDAs unrestricted grammars Turing Machines D and SD A TM M with

More information

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015) 18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015) 1. Introduction The goal for this course is to provide a quick, and hopefully somewhat gentle, introduction to the task of formulating

More information

Deterministic finite Automata

Deterministic finite Automata Deterministic finite Automata Informatics 2A: Lecture 3 Alex Simpson School of Informatics University of Edinburgh als@inf.ed.ac.uk 21 September, 212 1 / 29 1 Languages and Finite State Machines What is

More information

COMPUTER SCIENCE TRIPOS

COMPUTER SCIENCE TRIPOS CST.2014.2.1 COMPUTER SCIENCE TRIPOS Part IA Tuesday 3 June 2014 1.30 to 4.30 pm COMPUTER SCIENCE Paper 2 Answer one question from each of Sections A, B and C, and two questions from Section D. Submit

More information

Theory of Computation 1 Sets and Regular Expressions

Theory of Computation 1 Sets and Regular Expressions Theory of Computation 1 Sets and Regular Expressions Frank Stephan Department of Computer Science Department of Mathematics National University of Singapore fstephan@comp.nus.edu.sg Theory of Computation

More information

GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE LANGUAGES

GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE LANGUAGES Atlantic Electronic http://aejm.ca Journal of Mathematics http://aejm.ca/rema Volume 6, Number 1, Summer 2014 pp. 26-37 GENERATING SETS AND DECOMPOSITIONS FOR IDEMPOTENT TREE ANGUAGES MARK THOM AND SHEY

More information

1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u,

1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u, 1. Draw a parse tree for the following derivation: S C A C C A b b b b A b b b b B b b b b a A a a b b b b a b a a b b 2. Show on your parse tree u, v, x, y, z as per the pumping theorem. 3. Prove that

More information

Turing Machines. The Language Hierarchy. Context-Free Languages. Regular Languages. Courtesy Costas Busch - RPI 1

Turing Machines. The Language Hierarchy. Context-Free Languages. Regular Languages. Courtesy Costas Busch - RPI 1 Turing Machines a n b n c The anguage Hierarchy n? ww? Context-Free anguages a n b n egular anguages a * a *b* ww Courtesy Costas Busch - PI a n b n c n Turing Machines anguages accepted by Turing Machines

More information

1 The decision problem for First order logic

1 The decision problem for First order logic Math 260A Mathematical Logic Scribe Notes UCSD Winter Quarter 2012 Instructor: Sam Buss Notes by: James Aisenberg April 27th 1 The decision problem for First order logic Fix a finite language L. Define

More information

Axiomatic set theory. Chapter Why axiomatic set theory?

Axiomatic set theory. Chapter Why axiomatic set theory? Chapter 1 Axiomatic set theory 1.1 Why axiomatic set theory? Essentially all mathematical theories deal with sets in one way or another. In most cases, however, the use of set theory is limited to its

More information

Succinctness of the Complement and Intersection of Regular Expressions

Succinctness of the Complement and Intersection of Regular Expressions Succinctness of the Complement and Intersection of Regular Expressions Wouter Gelade and Frank Neven Hasselt University and transnational University of Limburg February 21, 2008 W. Gelade (Hasselt University)

More information

Preliminaries to the Theory of Computation

Preliminaries to the Theory of Computation Preliminaries to the Theory of Computation 2 In this chapter, we explain mathematical notions, terminologies, and certain methods used in convincing logical arguments that we shall have need of throughout

More information

CMPT307: Complexity Classes: P and N P Week 13-1

CMPT307: Complexity Classes: P and N P Week 13-1 CMPT307: Complexity Classes: P and N P Week 13-1 Xian Qiu Simon Fraser University xianq@sfu.ca Strings and Languages an alphabet Σ is a finite set of symbols {0, 1}, {T, F}, {a, b,..., z}, N a string x

More information

New Minimal Weight Representations for Left-to-Right Window Methods

New Minimal Weight Representations for Left-to-Right Window Methods New Minimal Weight Representations for Left-to-Right Window Methods James A. Muir 1 and Douglas R. Stinson 2 1 Department of Combinatorics and Optimization 2 School of Computer Science University of Waterloo

More information

A Finite-State Temporal Ontology and Event-intervals

A Finite-State Temporal Ontology and Event-intervals A Finite-State Temporal Ontology and Event-intervals Tim Fernando Computer Science Department Trinity College Dublin Ireland tfernand@tcd.ie Abstract A finite-state approach to temporal ontology for natural

More information

Automata-based Verification - III

Automata-based Verification - III COMP30172: Advanced Algorithms Automata-based Verification - III Howard Barringer Room KB2.20: email: howard.barringer@manchester.ac.uk March 2009 Third Topic Infinite Word Automata Motivation Büchi Automata

More information

Lecture 2: Connecting the Three Models

Lecture 2: Connecting the Three Models IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Advanced Course on Computational Complexity Lecture 2: Connecting the Three Models David Mix Barrington and Alexis Maciel July 18, 2000

More information

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1 NP CS 320, Fall 2017 Dr. Geri Georg, Instructor georg@colostate.edu 320 NP 1 NP Complete A class of problems where: No polynomial time algorithm has been discovered No proof that one doesn t exist 320

More information

A function is a special kind of relation. More precisely... A function f from A to B is a relation on A B such that. f (x) = y

A function is a special kind of relation. More precisely... A function f from A to B is a relation on A B such that. f (x) = y Functions A function is a special kind of relation. More precisely... A function f from A to B is a relation on A B such that for all x A, there is exactly one y B s.t. (x, y) f. The set A is called the

More information

Analysis I (Math 121) First Midterm Correction

Analysis I (Math 121) First Midterm Correction Analysis I (Math 11) First Midterm Correction Fall 00 Ali Nesin November 9, 00 1. Which of the following are not vector spaces over R (with the componentwise addition and scalar multiplication) and why?

More information

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Section Summary. Relations and Functions Properties of Relations. Combining Relations Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included

More information

Compilers. Lexical analysis. Yannis Smaragdakis, U. Athens (original slides by Sam

Compilers. Lexical analysis. Yannis Smaragdakis, U. Athens (original slides by Sam Compilers Lecture 3 Lexical analysis Yannis Smaragdakis, U. Athens (original slides by Sam Guyer@Tufts) Big picture Source code Front End IR Back End Machine code Errors Front end responsibilities Check

More information

Extended transition function of a DFA

Extended transition function of a DFA Extended transition function of a DFA The next two pages describe the extended transition function of a DFA in a more detailed way than Handout 3.. p./43 Formal approach to accepted strings We define the

More information

SET THEORY. 1. Roster or Tabular form In this form the elements of the set are enclosed in curly braces { } after separating them by commas.

SET THEORY. 1. Roster or Tabular form In this form the elements of the set are enclosed in curly braces { } after separating them by commas. SETS: set is a well-defined collection of objects. SET THEORY The objects in a set are called elements or members of the set. If x is an object of set, we write x and is read as x is an element of set

More information

Mathematical Logic (IX)

Mathematical Logic (IX) Mathematical Logic (IX) Yijia Chen 1. The Löwenheim-Skolem Theorem and the Compactness Theorem Using the term-interpretation, it is routine to verify: Theorem 1.1 (Löwenheim-Skolem). Let Φ L S be at most

More information

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits

CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits CSE 200 Lecture Notes Turing machine vs. RAM machine vs. circuits Chris Calabro January 13, 2016 1 RAM model There are many possible, roughly equivalent RAM models. Below we will define one in the fashion

More information

Sri vidya college of engineering and technology

Sri vidya college of engineering and technology Unit I FINITE AUTOMATA 1. Define hypothesis. The formal proof can be using deductive proof and inductive proof. The deductive proof consists of sequence of statements given with logical reasoning in order

More information

Topological Logics over Euclidean Spaces

Topological Logics over Euclidean Spaces Topological Logics over Euclidean Spaces Roman Kontchakov Department of Computer Science and Inf Systems, Birkbeck College, London http://wwwdcsbbkacuk/~roman joint work with Ian Pratt-Hartmann and Michael

More information

Great Theoretical Ideas in Computer Science. Lecture 5: Cantor s Legacy

Great Theoretical Ideas in Computer Science. Lecture 5: Cantor s Legacy 15-251 Great Theoretical Ideas in Computer Science Lecture 5: Cantor s Legacy September 15th, 2015 Poll Select the ones that apply to you: - I know what an uncountable set means. - I know Cantor s diagonalization

More information

Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition

Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition 1 Appendix A : Numbers, Inequalities, and Absolute Values Sets A set is a collection of objects with an important

More information

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska LECTURE 14 SMALL REVIEW FOR FINAL SOME Y/N QUESTIONS Q1 Given Σ =, there is L over Σ Yes: = {e} and L = {e} Σ Q2 There are uncountably

More information

Decidability of integer multiplication and ordinal addition. Two applications of the Feferman-Vaught theory

Decidability of integer multiplication and ordinal addition. Two applications of the Feferman-Vaught theory Decidability of integer multiplication and ordinal addition Two applications of the Feferman-Vaught theory Ting Zhang Stanford University Stanford February 2003 Logic Seminar 1 The motivation There are

More information