G52LAC Languages and Computation Lecture 1

Size: px
Start display at page:

Download "G52LAC Languages and Computation Lecture 1"

Transcription

1 G52LAC Languages and Computation Lecture 1 Administrative Details and Introduction Venanzio Capretta and Henrik Nilsson University of Nottingham G52LACLanguages and ComputationLecture 1 p.1/35

2 Finding People and Information Venanzio Capretta Room B83 Henrik Nilsson Room A08 Moodle Main module web page: Moodle forum! G52LACLanguages and ComputationLecture 1 p.2/35

3 Aims of the Course G52LACLanguages and ComputationLecture 1 p.3/35

4 Aims of the Course To familiarize you with key Computer Science concepts in central areas: - Automata Theory - Formal Languages - Models of Computation - Complexity Theory G52LACLanguages and ComputationLecture 1 p.3/35

5 Aims of the Course To familiarize you with key Computer Science concepts in central areas: - Automata Theory - Formal Languages - Models of Computation - Complexity Theory To equip you with tools with wide applicability in the fields of CS and IT. G52LACLanguages and ComputationLecture 1 p.3/35

6 Aims of the Course To familiarize you with key Computer Science concepts in central areas: - Automata Theory - Formal Languages - Models of Computation - Complexity Theory To equip you with tools with wide applicability in the fields of CS and IT. Draws from: G51MCS Feeds into: G53CMP, G53COM, G54FOP G52LACLanguages and ComputationLecture 1 p.3/35

7 Organization (1) Lectures: - Two 1 h lectures per week. - Detailed but provisional schedule available on the module web page. G52LACLanguages and ComputationLecture 1 p.4/35

8 Organization (1) Lectures: - Two 1 h lectures per week. - Detailed but provisional schedule available on the module web page. Coursework: - 4 problem sets. - Made available via the module web page. - Best 3 counts. - Deadlines: 21/2, 21/3, 26/4, 9/5. - Released a week prior to submission deadline. G52LACLanguages and ComputationLecture 1 p.4/35

9 Organization (2) Assessment: - Coursework, 25 % - 2 hour written examination, 75 % G52LACLanguages and ComputationLecture 1 p.5/35

10 Organization (2) Assessment: - Coursework, 25 % - 2 hour written examination, 75 % However, resits are by 100 % written examination (standard School policy) G52LACLanguages and ComputationLecture 1 p.5/35

11 Literature (1) Main reference: John E. Hopcroft, Rajeev Motwani, & Jeffrey D. Ullman. Introduction to Automata Theory, Languages, and Computation, 3rd edition, Pearson, G52LACLanguages and ComputationLecture 1 p.6/35

12 Literature (1) Main reference: John E. Hopcroft, Rajeev Motwani, & Jeffrey D. Ullman. Introduction to Automata Theory, Languages, and Computation, 3rd edition, Pearson, Alternative/complement: Linz. An Introduction to Formal Languages and Automata, 6th edition, Jones & Bartlett Publishers, G52LACLanguages and ComputationLecture 1 p.6/35

13 Literature (1) Main reference: John E. Hopcroft, Rajeev Motwani, & Jeffrey D. Ullman. Introduction to Automata Theory, Languages, and Computation, 3rd edition, Pearson, Alternative/complement: Linz. An Introduction to Formal Languages and Automata, 6th edition, Jones & Bartlett Publishers, The lecture notes by Altenkirch, Nilsson, Capretta, 30 Jan Available via the G52LAC module page. G52LACLanguages and ComputationLecture 1 p.6/35

14 Literature (2) Supplementary material; e.g., slides, sample program code. (Available via the G52LAC module page.) G52LACLanguages and ComputationLecture 1 p.7/35

15 Literature (2) Supplementary material; e.g., slides, sample program code. (Available via the G52LAC module page.) Your own notes from the lectures! G52LACLanguages and ComputationLecture 1 p.7/35

16 Literature (2) Supplementary material; e.g., slides, sample program code. (Available via the G52LAC module page.) Your own notes from the lectures! The lecture schedule contains detailed lecture-by-lecture references to the literature. G52LACLanguages and ComputationLecture 1 p.7/35

17 Literature (3) G52LACLanguages and ComputationLecture 1 p.8/35

18 The Lecture Notes G52LACLanguages and ComputationLecture 1 p.9/35

19 The Lecture Notes Comprehensive, typeset lecture notes. (At present 156 pages.) G52LACLanguages and ComputationLecture 1 p.9/35

20 The Lecture Notes Comprehensive, typeset lecture notes. (At present 156 pages.) Carefully aligned with the lectures. G52LACLanguages and ComputationLecture 1 p.9/35

21 The Lecture Notes Comprehensive, typeset lecture notes. (At present 156 pages.) Carefully aligned with the lectures. Covers everything said in the lectures (and more). G52LACLanguages and ComputationLecture 1 p.9/35

22 The Lecture Notes Comprehensive, typeset lecture notes. (At present 156 pages.) Carefully aligned with the lectures. Covers everything said in the lectures (and more). New for this year: Exercises with detailed model solutions. (In response to student feedback.) G52LACLanguages and ComputationLecture 1 p.9/35

23 The Lecture Notes Comprehensive, typeset lecture notes. (At present 156 pages.) Carefully aligned with the lectures. Covers everything said in the lectures (and more). New for this year: Exercises with detailed model solutions. (In response to student feedback.) The exercises are quite similar to typical coursework problems. G52LACLanguages and ComputationLecture 1 p.9/35

24 Your Own Notes You are strongly encourage to take your own notes as well during lectures because: G52LACLanguages and ComputationLecture 1 p.10/35

25 Your Own Notes You are strongly encourage to take your own notes as well during lectures because: Lectures may provide an alternative perspective, use different examples, etc. G52LACLanguages and ComputationLecture 1 p.10/35

26 Your Own Notes You are strongly encourage to take your own notes as well during lectures because: Lectures may provide an alternative perspective, use different examples, etc. Research shows that note taking significantly aids learning. G52LACLanguages and ComputationLecture 1 p.10/35

27 Your Own Notes You are strongly encourage to take your own notes as well during lectures because: Lectures may provide an alternative perspective, use different examples, etc. Research shows that note taking significantly aids learning. Taking relevant notes is a lot easier if you familiarise yourself with the relevant parts of the typeset lecture notes prior to each lecture! G52LACLanguages and ComputationLecture 1 p.10/35

28 Content (1) G52LACLanguages and ComputationLecture 1 p.11/35

29 Content (1) The notion of a formal language G52LACLanguages and ComputationLecture 1 p.11/35

30 Content (1) The notion of a formal language Description of different classes of languages: - Regular expressions - Grammars G52LACLanguages and ComputationLecture 1 p.11/35

31 Content (1) The notion of a formal language Description of different classes of languages: - Regular expressions - Grammars Recognition of different classes of languages: - Finite Automata - Push Down Automata G52LACLanguages and ComputationLecture 1 p.11/35

32 Content (1) The notion of a formal language Description of different classes of languages: - Regular expressions - Grammars Recognition of different classes of languages: - Finite Automata - Push Down Automata Applications: Scanning and Parsing G52LACLanguages and ComputationLecture 1 p.11/35

33 Content (2) Leading to: G52LACLanguages and ComputationLecture 1 p.12/35

34 Content (2) Leading to: General notions of computation: - Turing machines - Lambda calculus G52LACLanguages and ComputationLecture 1 p.12/35

35 Content (2) Leading to: General notions of computation: - Turing machines - Lambda calculus Fundamental questions such as - What can be computed at all? - What can be computed efficiently? G52LACLanguages and ComputationLecture 1 p.12/35

36 Example: Languages and Grammars (1) Consider the following Java fragment: class Foo { int n; void printnsqrd() { System.out.println(n * n); } } G52LACLanguages and ComputationLecture 1 p.13/35

37 Example: Languages and Grammars (1) Consider the following Java fragment: class Foo { int n; void printnsqrd() { System.out.println(n * n); } } Fundamentally a string of characters. G52LACLanguages and ComputationLecture 1 p.13/35

38 Example: Languages and Grammars (1) Consider the following Java fragment: class Foo { int n; void printnsqrd() { System.out.println(n * n); } } Fundamentally a string of characters. But lots of structure to valid Java code, e.g.: - Keywords, identifiers, operators - Nesting; e.g. method inside class G52LACLanguages and ComputationLecture 1 p.13/35

39 Example: Languages and Grammars (2) How to describe the set of strings that are valid Java? G52LACLanguages and ComputationLecture 1 p.14/35

40 Example: Languages and Grammars (2) How to describe the set of strings that are valid Java? Given a string, how to determine if it is a valid Java program or not? G52LACLanguages and ComputationLecture 1 p.14/35

41 Example: Languages and Grammars (2) How to describe the set of strings that are valid Java? Given a string, how to determine if it is a valid Java program or not? How to recover the structure of a Java program from a flat string? G52LACLanguages and ComputationLecture 1 p.14/35

42 Example: Languages and Grammars (2) How to describe the set of strings that are valid Java? Given a string, how to determine if it is a valid Java program or not? How to recover the structure of a Java program from a flat string? We will study: G52LACLanguages and ComputationLecture 1 p.14/35

43 Example: Languages and Grammars (2) How to describe the set of strings that are valid Java? Given a string, how to determine if it is a valid Java program or not? How to recover the structure of a Java program from a flat string? We will study: Regular expressions and grammars: precise descriptions of languages. G52LACLanguages and ComputationLecture 1 p.14/35

44 Example: Languages and Grammars (2) How to describe the set of strings that are valid Java? Given a string, how to determine if it is a valid Java program or not? How to recover the structure of a Java program from a flat string? We will study: Regular expressions and grammars: precise descriptions of languages. Various kinds of automata: decide if a string belongs to a language or not. G52LACLanguages and ComputationLecture 1 p.14/35

45 Noam Chomsky (1) Noam Chomsky (1928 ): G52LACLanguages and ComputationLecture 1 p.15/35

46 Noam Chomsky (1) Noam Chomsky (1928 ): American linguist who introduced Context Free Grammars in an attempt to describe natural languages formally. G52LACLanguages and ComputationLecture 1 p.15/35

47 Noam Chomsky (1) Noam Chomsky (1928 ): American linguist who introduced Context Free Grammars in an attempt to describe natural languages formally. Also introduced the Chomsky Hierarchy which classifies grammars and languages and their descriptive power. G52LACLanguages and ComputationLecture 1 p.15/35

48 Noam Chomsky (2) G52LACLanguages and ComputationLecture 1 p.16/35

49 The Chomsky Hierarchy All languages Type 0 or recursively enumerable languages Decidable languages Turing machines Type 1 or context sensitive languages Type 2 or context free languages pushdown automata Type 3 or regular languages finite automata G52LACLanguages and ComputationLecture 1 p.17/35

50 Example: The Halting Problem (1) Consider the following program. Does it terminate for all values ofn 1? while (n > 1) { if even(n) { n = n / 2; } else { n = n * 3 + 1; } } G52LACLanguages and ComputationLecture 1 p.18/35

51 Example: The Halting Problem (2) Not as easy to answer as it might first seem. G52LACLanguages and ComputationLecture 1 p.19/35

52 Example: The Halting Problem (2) Not as easy to answer as it might first seem. Say we start withn=7, for example: 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 G52LACLanguages and ComputationLecture 1 p.19/35

53 Example: The Halting Problem (2) Not as easy to answer as it might first seem. Say we start withn=7, for example: 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 The sequence involved is known as the hailstone sequence and Collatz conjecture says that the number 1 will always be reached. G52LACLanguages and ComputationLecture 1 p.19/35

54 Example: The Halting Problem (2) Not as easy to answer as it might first seem. Say we start withn=7, for example: 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 The sequence involved is known as the hailstone sequence and Collatz conjecture says that the number 1 will always be reached. In fact, for all numbers that have been tried (up to 2 60!), it does terminate... G52LACLanguages and ComputationLecture 1 p.19/35

55 Example: The Halting Problem (2) Not as easy to answer as it might first seem. Say we start withn=7, for example: 7, 22, 11, 34, 17, 52, 26, 13, 40, 20, 10, 5, 16, 8, 4, 2, 1 The sequence involved is known as the hailstone sequence and Collatz conjecture says that the number 1 will always be reached. In fact, for all numbers that have been tried (up to 2 60!), it does terminate but so far, no proof! (See e.g. Wikipedia.) G52LACLanguages and ComputationLecture 1 p.19/35

56 Example: The Halting Problem (3) The following important decidability result should then perhaps not come as a total surprise: G52LACLanguages and ComputationLecture 1 p.20/35

57 Example: The Halting Problem (3) The following important decidability result should then perhaps not come as a total surprise: It is impossible to write a program that decides if another, arbitrary, program terminates (halts) or not. G52LACLanguages and ComputationLecture 1 p.20/35

58 Example: The Halting Problem (3) The following important decidability result should then perhaps not come as a total surprise: It is impossible to write a program that decides if another, arbitrary, program terminates (halts) or not. This was first proved by the British mathematician Alan Turing using Turing Machines. G52LACLanguages and ComputationLecture 1 p.20/35

59 Alan Turing (1) Alan Turing ( ): G52LACLanguages and ComputationLecture 1 p.21/35

60 Alan Turing (1) Alan Turing ( ): Introduced an abstract model of computation, Turing Machines (1936), to give a precice definition of what problems are effectively calculable (can be solved mechanically). G52LACLanguages and ComputationLecture 1 p.21/35

61 Alan Turing (1) Alan Turing ( ): Introduced an abstract model of computation, Turing Machines (1936), to give a precice definition of what problems are effectively calculable (can be solved mechanically). Instrumental in the success of British code breaking efforts during WWII. G52LACLanguages and ComputationLecture 1 p.21/35

62 Alan Turing (1) Alan Turing ( ): Introduced an abstract model of computation, Turing Machines (1936), to give a precice definition of what problems are effectively calculable (can be solved mechanically). Instrumental in the success of British code breaking efforts during WWII. PhD student of Alonzo Church G52LACLanguages and ComputationLecture 1 p.21/35

63 Alan Turing (2) G52LACLanguages and ComputationLecture 1 p.22/35

64 Example: theλ-calculus λ-calculus is a theory of pure functions: (λx.x)(λy.y) G52LACLanguages and ComputationLecture 1 p.23/35

65 Example: theλ-calculus λ-calculus is a theory of pure functions: (λx.x)(λy.y) Functional programming languages like Haskell implements the λ-calculus. G52LACLanguages and ComputationLecture 1 p.23/35

66 Example: theλ-calculus λ-calculus is a theory of pure functions: (λx.x)(λy.y) Functional programming languages like Haskell implements the λ-calculus. Both the Turing machine and the λ-calculus are universal models of computation: equivalent in capabilities. G52LACLanguages and ComputationLecture 1 p.23/35

67 Alonzo Church (1) Alonzo Church ( ): Alan Turing s PhD advisor G52LACLanguages and ComputationLecture 1 p.24/35

68 Alonzo Church (1) Alonzo Church ( ): Alan Turing s PhD advisor Introduced the λ-calculus (1936) to give a precise definition of what problems are effectively calculable. G52LACLanguages and ComputationLecture 1 p.24/35

69 Alonzo Church (1) Alonzo Church ( ): Alan Turing s PhD advisor Introduced the λ-calculus (1936) to give a precise definition of what problems are effectively calculable. Church-Turing thesis: What is effectively calculable is exactly what can be computed by a Turing machine. G52LACLanguages and ComputationLecture 1 p.24/35

70 Alonzo Church (2) G52LACLanguages and ComputationLecture 1 p.25/35

71 Example: P versus NP (1) Can every problem whose solution can be checked quickly by a computer also be solved quickly by a computer? G52LACLanguages and ComputationLecture 1 p.26/35

72 Example: P versus NP (1) Can every problem whose solution can be checked quickly by a computer also be solved quickly by a computer? Likely the most famous open problem in computer science, dating back to the 1950s. G52LACLanguages and ComputationLecture 1 p.26/35

73 Example: P versus NP (1) Can every problem whose solution can be checked quickly by a computer also be solved quickly by a computer? Likely the most famous open problem in computer science, dating back to the 1950s. Quickly here means in time proportional to a polynomial in the size of the problem. G52LACLanguages and ComputationLecture 1 p.26/35

74 Example: P versus NP (1) Can every problem whose solution can be checked quickly by a computer also be solved quickly by a computer? Likely the most famous open problem in computer science, dating back to the 1950s. Quickly here means in time proportional to a polynomial in the size of the problem. There is an abundance of important problems where solutions can be checked quickly, but where the best known algorithm for finding a solution is exponential in the size of the problem. G52LACLanguages and ComputationLecture 1 p.26/35

75 Example: P versus NP (2) Subset sum problem: Does some non-empty subset of given set of integers sum to zero? G52LACLanguages and ComputationLecture 1 p.27/35

76 Example: P versus NP (2) Subset sum problem: Does some non-empty subset of given set of integers sum to zero? E.g. given {3, 2, 8, 5, 4, 9}, the non-empty subset { 5, 2, 3, 4} sums to 0. G52LACLanguages and ComputationLecture 1 p.27/35

77 Example: P versus NP (2) Subset sum problem: Does some non-empty subset of given set of integers sum to zero? E.g. given {3, 2, 8, 5, 4, 9}, the non-empty subset { 5, 2, 3, 4} sums to 0. Easy to check proposed solution: just add all numbers. G52LACLanguages and ComputationLecture 1 p.27/35

78 Example: P versus NP (2) Subset sum problem: Does some non-empty subset of given set of integers sum to zero? E.g. given {3, 2, 8, 5, 4, 9}, the non-empty subset { 5, 2, 3, 4} sums to 0. Easy to check proposed solution: just add all numbers. (How long would it take for set of size n?) G52LACLanguages and ComputationLecture 1 p.27/35

79 Example: P versus NP (2) Subset sum problem: Does some non-empty subset of given set of integers sum to zero? E.g. given {3, 2, 8, 5, 4, 9}, the non-empty subset { 5, 2, 3, 4} sums to 0. Easy to check proposed solution: just add all numbers. (How long would it take for set of size n?) But for finding a solution, no better way known than essentially trying each possible subset in turn. G52LACLanguages and ComputationLecture 1 p.27/35

80 Example: P versus NP (2) Subset sum problem: Does some non-empty subset of given set of integers sum to zero? E.g. given {3, 2, 8, 5, 4, 9}, the non-empty subset { 5, 2, 3, 4} sums to 0. Easy to check proposed solution: just add all numbers. (How long would it take for set of size n?) But for finding a solution, no better way known than essentially trying each possible subset in turn. (How long would it take for set of size n? How many subsets are there?) G52LACLanguages and ComputationLecture 1 p.27/35

81 Introduction to Languages The terms language and word are used in a strict technical sense in this course: G52LACLanguages and ComputationLecture 1 p.28/35

82 Introduction to Languages The terms language and word are used in a strict technical sense in this course: A language is a (possibly infinite) set of words. G52LACLanguages and ComputationLecture 1 p.28/35

83 Introduction to Languages The terms language and word are used in a strict technical sense in this course: A language is a (possibly infinite) set of words. A word is a finite sequence (or string) of symbols. G52LACLanguages and ComputationLecture 1 p.28/35

84 Introduction to Languages The terms language and word are used in a strict technical sense in this course: A language is a (possibly infinite) set of words. A word is a finite sequence (or string) of symbols. ǫ denotes the empty word, the sequence of zero symbols. G52LACLanguages and ComputationLecture 1 p.28/35

85 Introduction to Languages The terms language and word are used in a strict technical sense in this course: A language is a (possibly infinite) set of words. A word is a finite sequence (or string) of symbols. ǫ denotes the empty word, the sequence of zero symbols. The term string is often used interchangeably with the term word. G52LACLanguages and ComputationLecture 1 p.28/35

86 Symbols and Alphabets What is a symbol, then? G52LACLanguages and ComputationLecture 1 p.29/35

87 Symbols and Alphabets What is a symbol, then? Anything, but it has to come from an alphabet Σ which is a finite set. G52LACLanguages and ComputationLecture 1 p.29/35

88 Symbols and Alphabets What is a symbol, then? Anything, but it has to come from an alphabet Σ which is a finite set. A common (and important) instance is Σ = {0,1}. G52LACLanguages and ComputationLecture 1 p.29/35

89 Symbols and Alphabets What is a symbol, then? Anything, but it has to come from an alphabet Σ which is a finite set. A common (and important) instance is Σ = {0,1}. ǫ, the empty word, is never a symbol of an alphabet. G52LACLanguages and ComputationLecture 1 p.29/35

90 Languages: Examples alphabet Σ = {a,b} words? G52LACLanguages and ComputationLecture 1 p.30/35

91 Languages: Examples alphabet words Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, G52LACLanguages and ComputationLecture 1 p.30/35

92 Languages: Examples alphabet words Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,... G52LACLanguages and ComputationLecture 1 p.30/35

93 Languages: Examples alphabet Σ = {a,b} words ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,... languages? G52LACLanguages and ComputationLecture 1 p.30/35

94 Languages: Examples alphabet words languages Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,...,{ǫ},{a},{b},{a,aa}, G52LACLanguages and ComputationLecture 1 p.30/35

95 Languages: Examples alphabet words languages Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,...,{ǫ},{a},{b},{a,aa}, {ǫ,a,aa,aaa}, G52LACLanguages and ComputationLecture 1 p.30/35

96 Languages: Examples alphabet words languages Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,...,{ǫ},{a},{b},{a,aa}, {ǫ,a,aa,aaa}, {a n n 0}, G52LACLanguages and ComputationLecture 1 p.30/35

97 Languages: Examples alphabet words languages Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,...,{ǫ},{a},{b},{a,aa}, {ǫ,a,aa,aaa}, {a n n 0}, {a n b n n 0,neven} G52LACLanguages and ComputationLecture 1 p.30/35

98 Languages: Examples alphabet words languages Σ = {a,b} ǫ,a,b,aa,ab,ba,bb, aaa,aab,aba,abb,baa,bab,...,{ǫ},{a},{b},{a,aa}, {ǫ,a,aa,aaa}, {a n n 0}, {a n b n n 0,neven} Note the distinction between ǫ,, and {ǫ}! G52LACLanguages and ComputationLecture 1 p.30/35

99 All Words Over an Alphabet (1) Given an alphabet Σ we define the set Σ as set of words (or sequences) over Σ: The empty word ǫ Σ. given a symbol x Σ and a word w Σ, xw Σ. These are all elements in Σ. This is called an inductive definition. G52LACLanguages and ComputationLecture 1 p.31/35

100 All Words Over an Alphabet (1) Given an alphabet Σ we define the set Σ as set of words (or sequences) over Σ: The empty word ǫ Σ. given a symbol x Σ and a word w Σ, xw Σ. These are all elements in Σ. This is called an inductive definition. Is Σ always non-empty? G52LACLanguages and ComputationLecture 1 p.31/35

101 All Words Over an Alphabet (1) Given an alphabet Σ we define the set Σ as set of words (or sequences) over Σ: The empty word ǫ Σ. given a symbol x Σ and a word w Σ, xw Σ. These are all elements in Σ. This is called an inductive definition. Is Σ always non-empty? Always infinite? G52LACLanguages and ComputationLecture 1 p.31/35

102 All Words over an Alphabet (2) Example: Given Σ = {0,1}, some elements of Σ are ǫ (the empty word) 0, 1 00, 10, 01, , 100, 010, 110, 001, 101, 011, G52LACLanguages and ComputationLecture 1 p.32/35

103 All Words over an Alphabet (2) Example: Given Σ = {0,1}, some elements of Σ are ǫ (the empty word) 0, 1 00, 10, 01, , 100, 010, 110, 001, 101, 011, We are just applying the inductive definition. G52LACLanguages and ComputationLecture 1 p.32/35

104 All Words over an Alphabet (2) Example: Given Σ = {0,1}, some elements of Σ are ǫ (the empty word) 0, 1 00, 10, 01, , 100, 010, 110, 001, 101, 011, We are just applying the inductive definition. Note: although there are infinitely many words in Σ (when Σ ), each word has a finite length! G52LACLanguages and ComputationLecture 1 p.32/35

105 Examples of Languages (1) Some examples of languages: G52LACLanguages and ComputationLecture 1 p.33/35

106 Examples of Languages (1) Some examples of languages: The set {0010, ,ǫ} is a language over Σ = {0,1}. G52LACLanguages and ComputationLecture 1 p.33/35

107 Examples of Languages (1) Some examples of languages: The set {0010, ,ǫ} is a language over Σ = {0,1}. This is an example of a finite language. G52LACLanguages and ComputationLecture 1 p.33/35

108 Examples of Languages (1) Some examples of languages: The set {0010, ,ǫ} is a language over Σ = {0,1}. This is an example of a finite language. The set of words with odd length over Σ = {1}. (Finite or infinite?) G52LACLanguages and ComputationLecture 1 p.33/35

109 Examples of Languages (1) Some examples of languages: The set {0010, ,ǫ} is a language over Σ = {0,1}. This is an example of a finite language. The set of words with odd length over Σ = {1}. (Finite or infinite?) The set of words that contain the same number of 0s and 1s is a language over Σ = {0,1}. (Finite or infinite?) G52LACLanguages and ComputationLecture 1 p.33/35

110 Examples of Languages (2) The set of palindromes (words that read the same forwards and backwards, likeabba) is a language for any alphabet. G52LACLanguages and ComputationLecture 1 p.34/35

111 Examples of Languages (2) The set of palindromes (words that read the same forwards and backwards, likeabba) is a language for any alphabet. The set of correct Java programs. This is a language over the set of UNICODE characters. G52LACLanguages and ComputationLecture 1 p.34/35

112 Examples of Languages (2) The set of palindromes (words that read the same forwards and backwards, likeabba) is a language for any alphabet. The set of correct Java programs. This is a language over the set of UNICODE characters. The set of programs that, if executed successfully on a Windows machine, prints the text Hello World! in a window. This is a language over Σ = {0,1}. G52LACLanguages and ComputationLecture 1 p.34/35

113 Language Membership Fundamental question for a language L: w L? G52LACLanguages and ComputationLecture 1 p.35/35

114 Language Membership Fundamental question for a language L: w L? L finite: G52LACLanguages and ComputationLecture 1 p.35/35

115 Language Membership Fundamental question for a language L: w L? L finite:? G52LACLanguages and ComputationLecture 1 p.35/35

116 Language Membership Fundamental question for a language L: w L? L finite: Easy! (Enumerate L and check) G52LACLanguages and ComputationLecture 1 p.35/35

117 Language Membership Fundamental question for a language L: w L? L finite: Easy! (Enumerate L and check) L infinite: G52LACLanguages and ComputationLecture 1 p.35/35

118 Language Membership Fundamental question for a language L: w L? L finite: Easy! (Enumerate L and check) L infinite:? G52LACLanguages and ComputationLecture 1 p.35/35

119 Language Membership Fundamental question for a language L: w L? L finite: Easy! (Enumerate L and check) L infinite:? We need: A finite (and preferably concise) formal description of L. G52LACLanguages and ComputationLecture 1 p.35/35

120 Language Membership Fundamental question for a language L: w L? L finite: Easy! (Enumerate L and check) L infinite:? We need: A finite (and preferably concise) formal description of L. An algorithmic method to decide if w L given a suitable description. G52LACLanguages and ComputationLecture 1 p.35/35

121 Language Membership Fundamental question for a language L: w L? L finite: Easy! (Enumerate L and check) L infinite:? We need: A finite (and preferably concise) formal description of L. An algorithmic method to decide if w L given a suitable description. Various approaches to achieve this will be key a theme throughout the module. G52LACLanguages and ComputationLecture 1 p.35/35

Language properties and Grammar of Parallel and Series Parallel Languages

Language properties and Grammar of Parallel and Series Parallel Languages arxiv:1711.01799v1 [cs.fl] 6 Nov 2017 Language properties and Grammar of Parallel and Series Parallel Languages Mohana.N 1, Kalyani Desikan 2 and V.Rajkumar Dare 3 1 Division of Mathematics, School of

More information

A Version Space Approach to Learning Context-free Grammars

A Version Space Approach to Learning Context-free Grammars Machine Learning 2: 39~74, 1987 1987 Kluwer Academic Publishers, Boston - Manufactured in The Netherlands A Version Space Approach to Learning Context-free Grammars KURT VANLEHN (VANLEHN@A.PSY.CMU.EDU)

More information

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy Informatics 2A: Language Complexity and the Chomsky Hierarchy September 28, 2010 Starter 1 Is there a finite state machine that recognises all those strings s from the alphabet {a, b} where the difference

More information

A General Class of Noncontext Free Grammars Generating Context Free Languages

A General Class of Noncontext Free Grammars Generating Context Free Languages INFORMATION AND CONTROL 43, 187-194 (1979) A General Class of Noncontext Free Grammars Generating Context Free Languages SARWAN K. AGGARWAL Boeing Wichita Company, Wichita, Kansas 67210 AND JAMES A. HEINEN

More information

A R "! I,,, !~ii ii! A ow ' r.-ii ' i ' JA' V5, 9. MiN, ;

A R ! I,,, !~ii ii! A ow ' r.-ii ' i ' JA' V5, 9. MiN, ; A R "! I,,, r.-ii ' i '!~ii ii! A ow ' I % i o,... V. 4..... JA' i,.. Al V5, 9 MiN, ; Logic and Language Models for Computer Science Logic and Language Models for Computer Science HENRY HAMBURGER George

More information

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm syntax: from the Greek syntaxis, meaning setting out together

More information

Grammars & Parsing, Part 1:

Grammars & Parsing, Part 1: Grammars & Parsing, Part 1: Rules, representations, and transformations- oh my! Sentence VP The teacher Verb gave the lecture 2015-02-12 CS 562/662: Natural Language Processing Game plan for today: Review

More information

Erkki Mäkinen State change languages as homomorphic images of Szilard languages

Erkki Mäkinen State change languages as homomorphic images of Szilard languages Erkki Mäkinen State change languages as homomorphic images of Szilard languages UNIVERSITY OF TAMPERE SCHOOL OF INFORMATION SCIENCES REPORTS IN INFORMATION SCIENCES 48 TAMPERE 2016 UNIVERSITY OF TAMPERE

More information

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR ROLAND HAUSSER Institut für Deutsche Philologie Ludwig-Maximilians Universität München München, West Germany 1. CHOICE OF A PRIMITIVE OPERATION The

More information

MOODLE 2.0 GLOSSARY TUTORIALS

MOODLE 2.0 GLOSSARY TUTORIALS BEGINNING TUTORIALS SECTION 1 TUTORIAL OVERVIEW MOODLE 2.0 GLOSSARY TUTORIALS The glossary activity module enables participants to create and maintain a list of definitions, like a dictionary, or to collect

More information

Self Study Report Computer Science

Self Study Report Computer Science Computer Science undergraduate students have access to undergraduate teaching, and general computing facilities in three buildings. Two large classrooms are housed in the Davis Centre, which hold about

More information

Proof Theory for Syntacticians

Proof Theory for Syntacticians Department of Linguistics Ohio State University Syntax 2 (Linguistics 602.02) January 5, 2012 Logics for Linguistics Many different kinds of logic are directly applicable to formalizing theories in syntax

More information

Getting Started with Deliberate Practice

Getting Started with Deliberate Practice Getting Started with Deliberate Practice Most of the implementation guides so far in Learning on Steroids have focused on conceptual skills. Things like being able to form mental images, remembering facts

More information

Diagnostic Test. Middle School Mathematics

Diagnostic Test. Middle School Mathematics Diagnostic Test Middle School Mathematics Copyright 2010 XAMonline, Inc. All rights reserved. No part of the material protected by this copyright notice may be reproduced or utilized in any form or by

More information

Statewide Framework Document for:

Statewide Framework Document for: Statewide Framework Document for: 270301 Standards may be added to this document prior to submission, but may not be removed from the framework to meet state credit equivalency requirements. Performance

More information

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S N S ER E P S I M TA S UN A I S I T VER RANKING AND UNRANKING LEFT SZILARD LANGUAGES Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A-1997-2 UNIVERSITY OF TAMPERE DEPARTMENT OF

More information

Enumeration of Context-Free Languages and Related Structures

Enumeration of Context-Free Languages and Related Structures Enumeration of Context-Free Languages and Related Structures Michael Domaratzki Jodrey School of Computer Science, Acadia University Wolfville, NS B4P 2R6 Canada Alexander Okhotin Department of Mathematics,

More information

CS177 Python Programming

CS177 Python Programming CS177 Python Programming Recitation 1 Introduction Adapted from John Zelle s Book Slides 1 Course Instructors Dr. Elisha Sacks E-mail: eps@purdue.edu Ruby Tahboub (Course Coordinator) E-mail: rtahboub@purdue.edu

More information

Backwards Numbers: A Study of Place Value. Catherine Perez

Backwards Numbers: A Study of Place Value. Catherine Perez Backwards Numbers: A Study of Place Value Catherine Perez Introduction I was reaching for my daily math sheet that my school has elected to use and in big bold letters in a box it said: TO ADD NUMBERS

More information

The Strong Minimalist Thesis and Bounded Optimality

The Strong Minimalist Thesis and Bounded Optimality The Strong Minimalist Thesis and Bounded Optimality DRAFT-IN-PROGRESS; SEND COMMENTS TO RICKL@UMICH.EDU Richard L. Lewis Department of Psychology University of Michigan 27 March 2010 1 Purpose of this

More information

Natural Language Processing. George Konidaris

Natural Language Processing. George Konidaris Natural Language Processing George Konidaris gdk@cs.brown.edu Fall 2017 Natural Language Processing Understanding spoken/written sentences in a natural language. Major area of research in AI. Why? Humans

More information

CS 101 Computer Science I Fall Instructor Muller. Syllabus

CS 101 Computer Science I Fall Instructor Muller. Syllabus CS 101 Computer Science I Fall 2013 Instructor Muller Syllabus Welcome to CS101. This course is an introduction to the art and science of computer programming and to some of the fundamental concepts of

More information

IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University

IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University IT Students Workshop within Strategic Partnership of Leibniz University and Peter the Great St. Petersburg Polytechnic University 06.11.16 13.11.16 Hannover Our group from Peter the Great St. Petersburg

More information

arxiv: v1 [math.at] 10 Jan 2016

arxiv: v1 [math.at] 10 Jan 2016 THE ALGEBRAIC ATIYAH-HIRZEBRUCH SPECTRAL SEQUENCE OF REAL PROJECTIVE SPECTRA arxiv:1601.02185v1 [math.at] 10 Jan 2016 GUOZHEN WANG AND ZHOULI XU Abstract. In this note, we use Curtis s algorithm and the

More information

A Grammar for Battle Management Language

A Grammar for Battle Management Language Bastian Haarmann 1 Dr. Ulrich Schade 1 Dr. Michael R. Hieb 2 1 Fraunhofer Institute for Communication, Information Processing and Ergonomics 2 George Mason University bastian.haarmann@fkie.fraunhofer.de

More information

Telekooperation Seminar

Telekooperation Seminar Telekooperation Seminar 3 CP, SoSe 2017 Nikolaos Alexopoulos, Rolf Egert. {alexopoulos,egert}@tk.tu-darmstadt.de based on slides by Dr. Leonardo Martucci and Florian Volk General Information What? Read

More information

OCR for Arabic using SIFT Descriptors With Online Failure Prediction

OCR for Arabic using SIFT Descriptors With Online Failure Prediction OCR for Arabic using SIFT Descriptors With Online Failure Prediction Andrey Stolyarenko, Nachum Dershowitz The Blavatnik School of Computer Science Tel Aviv University Tel Aviv, Israel Email: stloyare@tau.ac.il,

More information

School of Innovative Technologies and Engineering

School of Innovative Technologies and Engineering School of Innovative Technologies and Engineering Department of Applied Mathematical Sciences Proficiency Course in MATLAB COURSE DOCUMENT VERSION 1.0 PCMv1.0 July 2012 University of Technology, Mauritius

More information

Grade 6: Correlated to AGS Basic Math Skills

Grade 6: Correlated to AGS Basic Math Skills Grade 6: Correlated to AGS Basic Math Skills Grade 6: Standard 1 Number Sense Students compare and order positive and negative integers, decimals, fractions, and mixed numbers. They find multiples and

More information

Lecture 10: Reinforcement Learning

Lecture 10: Reinforcement Learning Lecture 1: Reinforcement Learning Cognitive Systems II - Machine Learning SS 25 Part III: Learning Programs and Strategies Q Learning, Dynamic Programming Lecture 1: Reinforcement Learning p. Motivation

More information

Foothill College Summer 2016

Foothill College Summer 2016 Foothill College Summer 2016 Intermediate Algebra Math 105.04W CRN# 10135 5.0 units Instructor: Yvette Butterworth Text: None; Beoga.net material used Hours: Online Except Final Thurs, 8/4 3:30pm Phone:

More information

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus

CS 1103 Computer Science I Honors. Fall Instructor Muller. Syllabus CS 1103 Computer Science I Honors Fall 2016 Instructor Muller Syllabus Welcome to CS1103. This course is an introduction to the art and science of computer programming and to some of the fundamental concepts

More information

Computer Organization I (Tietokoneen toiminta)

Computer Organization I (Tietokoneen toiminta) 581305-6 Computer Organization I (Tietokoneen toiminta) Teemu Kerola University of Helsinki Department of Computer Science Spring 2010 1 Computer Organization I Course area and goals Course learning methods

More information

Navigating the PhD Options in CMS

Navigating the PhD Options in CMS Navigating the PhD Options in CMS This document gives an overview of the typical student path through the four Ph.D. programs in the CMS department ACM, CDS, CS, and CMS. Note that it is not a replacement

More information

Parsing of part-of-speech tagged Assamese Texts

Parsing of part-of-speech tagged Assamese Texts IJCSI International Journal of Computer Science Issues, Vol. 6, No. 1, 2009 ISSN (Online): 1694-0784 ISSN (Print): 1694-0814 28 Parsing of part-of-speech tagged Assamese Texts Mirzanur Rahman 1, Sufal

More information

PRODUCT PLATFORM DESIGN: A GRAPH GRAMMAR APPROACH

PRODUCT PLATFORM DESIGN: A GRAPH GRAMMAR APPROACH Proceedings of DETC 99: 1999 ASME Design Engineering Technical Conferences September 12-16, 1999, Las Vegas, Nevada DETC99/DTM-8762 PRODUCT PLATFORM DESIGN: A GRAPH GRAMMAR APPROACH Zahed Siddique Graduate

More information

We are strong in research and particularly noted in software engineering, information security and privacy, and humane gaming.

We are strong in research and particularly noted in software engineering, information security and privacy, and humane gaming. Computer Science 1 COMPUTER SCIENCE Office: Department of Computer Science, ECS, Suite 379 Mail Code: 2155 E Wesley Avenue, Denver, CO 80208 Phone: 303-871-2458 Email: info@cs.du.edu Web Site: Computer

More information

MASTER OF SCIENCE (M.S.) MAJOR IN COMPUTER SCIENCE

MASTER OF SCIENCE (M.S.) MAJOR IN COMPUTER SCIENCE Master of Science (M.S.) Major in Computer Science 1 MASTER OF SCIENCE (M.S.) MAJOR IN COMPUTER SCIENCE Major Program The programs in computer science are designed to prepare students for doctoral research,

More information

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

Chinese Language Parsing with Maximum-Entropy-Inspired Parser Chinese Language Parsing with Maximum-Entropy-Inspired Parser Heng Lian Brown University Abstract The Chinese language has many special characteristics that make parsing difficult. The performance of state-of-the-art

More information

MTH 141 Calculus 1 Syllabus Spring 2017

MTH 141 Calculus 1 Syllabus Spring 2017 Instructor: Section/Meets Office Hrs: Textbook: Calculus: Single Variable, by Hughes-Hallet et al, 6th ed., Wiley. Also needed: access code to WileyPlus (included in new books) Calculator: Not required,

More information

On the Polynomial Degree of Minterm-Cyclic Functions

On the Polynomial Degree of Minterm-Cyclic Functions On the Polynomial Degree of Minterm-Cyclic Functions Edward L. Talmage Advisor: Amit Chakrabarti May 31, 2012 ABSTRACT When evaluating Boolean functions, each bit of input that must be checked is costly,

More information

CS4491/CS 7265 BIG DATA ANALYTICS INTRODUCTION TO THE COURSE. Mingon Kang, PhD Computer Science, Kennesaw State University

CS4491/CS 7265 BIG DATA ANALYTICS INTRODUCTION TO THE COURSE. Mingon Kang, PhD Computer Science, Kennesaw State University CS4491/CS 7265 BIG DATA ANALYTICS INTRODUCTION TO THE COURSE Mingon Kang, PhD Computer Science, Kennesaw State University Self Introduction Mingon Kang, PhD Homepage: http://ksuweb.kennesaw.edu/~mkang9

More information

Probability and Game Theory Course Syllabus

Probability and Game Theory Course Syllabus Probability and Game Theory Course Syllabus DATE ACTIVITY CONCEPT Sunday Learn names; introduction to course, introduce the Battle of the Bismarck Sea as a 2-person zero-sum game. Monday Day 1 Pre-test

More information

Mathematics. Mathematics

Mathematics. Mathematics Mathematics Program Description Successful completion of this major will assure competence in mathematics through differential and integral calculus, providing an adequate background for employment in

More information

Empiricism as Unifying Theme in the Standards for Mathematical Practice. Glenn Stevens Department of Mathematics Boston University

Empiricism as Unifying Theme in the Standards for Mathematical Practice. Glenn Stevens Department of Mathematics Boston University Empiricism as Unifying Theme in the Standards for Mathematical Practice Glenn Stevens Department of Mathematics Boston University Joint Mathematics Meetings Special Session: Creating Coherence in K-12

More information

FONDAMENTI DI INFORMATICA

FONDAMENTI DI INFORMATICA FONDAMENTI DI INFORMATICA INTRODUZIONE AL CORSO E ALL INFORMATICA Prof. Emiliano Casalicchio 09/26/14 Computer Skills - Lesson 1 - E. Casalicchio 2 Info INGEGNERIA ENERGETICA, EDILIZIA E MECCANICA Canale

More information

NAME: East Carolina University PSYC Developmental Psychology Dr. Eppler & Dr. Ironsmith

NAME: East Carolina University PSYC Developmental Psychology Dr. Eppler & Dr. Ironsmith Module 10 1 NAME: East Carolina University PSYC 3206 -- Developmental Psychology Dr. Eppler & Dr. Ironsmith Study Questions for Chapter 10: Language and Education Sigelman & Rider (2009). Life-span human

More information

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation tatistical Parsing (Following slides are modified from Prof. Raymond Mooney s slides.) tatistical Parsing tatistical parsing uses a probabilistic model of syntax in order to assign probabilities to each

More information

CS 100: Principles of Computing

CS 100: Principles of Computing CS 100: Principles of Computing Kevin Molloy August 29, 2017 1 Basic Course Information 1.1 Prerequisites: None 1.2 General Education Fulfills Mason Core requirement in Information Technology (ALL). 1.3

More information

Detecting English-French Cognates Using Orthographic Edit Distance

Detecting English-French Cognates Using Orthographic Edit Distance Detecting English-French Cognates Using Orthographic Edit Distance Qiongkai Xu 1,2, Albert Chen 1, Chang i 1 1 The Australian National University, College of Engineering and Computer Science 2 National

More information

a) analyse sentences, so you know what s going on and how to use that information to help you find the answer.

a) analyse sentences, so you know what s going on and how to use that information to help you find the answer. Tip Sheet I m going to show you how to deal with ten of the most typical aspects of English grammar that are tested on the CAE Use of English paper, part 4. Of course, there are many other grammar points

More information

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur Module 12 Machine Learning 12.1 Instructional Objective The students should understand the concept of learning systems Students should learn about different aspects of a learning system Students should

More information

Android App Development for Beginners

Android App Development for Beginners Description Android App Development for Beginners DEVELOP ANDROID APPLICATIONS Learning basics skills and all you need to know to make successful Android Apps. This course is designed for students who

More information

Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor

Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor CSE215, Foundations of Computer Science Course Information Spring 2016 Stony Brook University Instructor: Dr. Paul Fodor http://www.cs.stonybrook.edu/~cse215 Course Description Introduction to the logical

More information

Characterizing Mathematical Digital Literacy: A Preliminary Investigation. Todd Abel Appalachian State University

Characterizing Mathematical Digital Literacy: A Preliminary Investigation. Todd Abel Appalachian State University Characterizing Mathematical Digital Literacy: A Preliminary Investigation Todd Abel Appalachian State University Jeremy Brazas, Darryl Chamberlain Jr., Aubrey Kemp Georgia State University This preliminary

More information

The open source development model has unique characteristics that make it in some

The open source development model has unique characteristics that make it in some Is the Development Model Right for Your Organization? A roadmap to open source adoption by Ibrahim Haddad The open source development model has unique characteristics that make it in some instances a superior

More information

Lecture 1: Machine Learning Basics

Lecture 1: Machine Learning Basics 1/69 Lecture 1: Machine Learning Basics Ali Harakeh University of Waterloo WAVE Lab ali.harakeh@uwaterloo.ca May 1, 2017 2/69 Overview 1 Learning Algorithms 2 Capacity, Overfitting, and Underfitting 3

More information

Course Content Concepts

Course Content Concepts CS 1371 SYLLABUS, Fall, 2017 Revised 8/6/17 Computing for Engineers Course Content Concepts The students will be expected to be familiar with the following concepts, either by writing code to solve problems,

More information

THE UNIVERSITY OF SYDNEY Semester 2, Information Sheet for MATH2068/2988 Number Theory and Cryptography

THE UNIVERSITY OF SYDNEY Semester 2, Information Sheet for MATH2068/2988 Number Theory and Cryptography THE UNIVERSITY OF SYDNEY Semester 2, 2017 Information Sheet for MATH2068/2988 Number Theory and Cryptography Websites: It is important that you check the following webpages regularly. Intermediate Mathematics

More information

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1

Basic Parsing with Context-Free Grammars. Some slides adapted from Julia Hirschberg and Dan Jurafsky 1 Basic Parsing with Context-Free Grammars Some slides adapted from Julia Hirschberg and Dan Jurafsky 1 Announcements HW 2 to go out today. Next Tuesday most important for background to assignment Sign up

More information

Computer Science is more important than Calculus: The challenge of living up to our potential

Computer Science is more important than Calculus: The challenge of living up to our potential Computer Science is more important than Calculus: The challenge of living up to our potential By Mark Guzdial and Elliot Soloway In 1961, Alan Perlis made the argument that computer science should be considered

More information

CS 598 Natural Language Processing

CS 598 Natural Language Processing CS 598 Natural Language Processing Natural language is everywhere Natural language is everywhere Natural language is everywhere Natural language is everywhere!"#$%&'&()*+,-./012 34*5665756638/9:;< =>?@ABCDEFGHIJ5KL@

More information

B. How to write a research paper

B. How to write a research paper From: Nikolaus Correll. "Introduction to Autonomous Robots", ISBN 1493773070, CC-ND 3.0 B. How to write a research paper The final deliverable of a robotics class often is a write-up on a research project,

More information

Data Structures and Algorithms

Data Structures and Algorithms CS 3114 Data Structures and Algorithms 1 Trinity College Library Univ. of Dublin Instructor and Course Information 2 William D McQuain Email: Office: Office Hours: wmcquain@cs.vt.edu 634 McBryde Hall see

More information

Developing a TT-MCTAG for German with an RCG-based Parser

Developing a TT-MCTAG for German with an RCG-based Parser Developing a TT-MCTAG for German with an RCG-based Parser Laura Kallmeyer, Timm Lichte, Wolfgang Maier, Yannick Parmentier, Johannes Dellert University of Tübingen, Germany CNRS-LORIA, France LREC 2008,

More information

PH.D. IN COMPUTER SCIENCE PROGRAM (POST M.S.)

PH.D. IN COMPUTER SCIENCE PROGRAM (POST M.S.) PH.D. IN COMPUTER SCIENCE PROGRAM (POST M.S.) OVERVIEW ADMISSION REQUIREMENTS PROGRAM REQUIREMENTS OVERVIEW FOR THE PH.D. IN COMPUTER SCIENCE Overview The doctoral program is designed for those students

More information

IAT 888: Metacreation Machines endowed with creative behavior. Philippe Pasquier Office 565 (floor 14)

IAT 888: Metacreation Machines endowed with creative behavior. Philippe Pasquier Office 565 (floor 14) IAT 888: Metacreation Machines endowed with creative behavior Philippe Pasquier Office 565 (floor 14) pasquier@sfu.ca Outline of today's lecture A little bit about me A little bit about you What will that

More information

A Case Study: News Classification Based on Term Frequency

A Case Study: News Classification Based on Term Frequency A Case Study: News Classification Based on Term Frequency Petr Kroha Faculty of Computer Science University of Technology 09107 Chemnitz Germany kroha@informatik.tu-chemnitz.de Ricardo Baeza-Yates Center

More information

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1 Notes on The Sciences of the Artificial Adapted from a shorter document written for course 17-652 (Deciding What to Design) 1 Ali Almossawi December 29, 2005 1 Introduction The Sciences of the Artificial

More information

Business Analytics and Information Tech COURSE NUMBER: 33:136:494 COURSE TITLE: Data Mining and Business Intelligence

Business Analytics and Information Tech COURSE NUMBER: 33:136:494 COURSE TITLE: Data Mining and Business Intelligence Business Analytics and Information Tech COURSE NUMBER: 33:136:494 COURSE TITLE: Data Mining and Business Intelligence COURSE DESCRIPTION This course presents computing tools and concepts for all stages

More information

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS Václav Kocian, Eva Volná, Michal Janošek, Martin Kotyrba University of Ostrava Department of Informatics and Computers Dvořákova 7,

More information

CUSTOMER EXPERIENCE ASSESSMENT SALES (CEA-S) TEST GUIDE

CUSTOMER EXPERIENCE ASSESSMENT SALES (CEA-S) TEST GUIDE WHY DO AT&T AND ITS AFFILIATES TEST? At AT&T, we pride ourselves on matching the best jobs with the best people. To do this, we need to better understand your skills and abilities to make sure that you

More information

Graduate Handbook Linguistics Program For Students Admitted Prior to Academic Year Academic year Last Revised March 16, 2015

Graduate Handbook Linguistics Program For Students Admitted Prior to Academic Year Academic year Last Revised March 16, 2015 Graduate Handbook Linguistics Program For Students Admitted Prior to Academic Year 2015-2016 Academic year 2014-2015 Last Revised March 16, 2015 The Linguistics Program Graduate Handbook supplements The

More information

Software Maintenance

Software Maintenance 1 What is Software Maintenance? Software Maintenance is a very broad activity that includes error corrections, enhancements of capabilities, deletion of obsolete capabilities, and optimization. 2 Categories

More information

Context Free Grammars. Many slides from Michael Collins

Context Free Grammars. Many slides from Michael Collins Context Free Grammars Many slides from Michael Collins Overview I An introduction to the parsing problem I Context free grammars I A brief(!) sketch of the syntax of English I Examples of ambiguous structures

More information

Learning to Think Mathematically With the Rekenrek

Learning to Think Mathematically With the Rekenrek Learning to Think Mathematically With the Rekenrek A Resource for Teachers A Tool for Young Children Adapted from the work of Jeff Frykholm Overview Rekenrek, a simple, but powerful, manipulative to help

More information

Welcome to the Purdue OWL. Where do I begin? General Strategies. Personalizing Proofreading

Welcome to the Purdue OWL. Where do I begin? General Strategies. Personalizing Proofreading Welcome to the Purdue OWL This page is brought to you by the OWL at Purdue (http://owl.english.purdue.edu/). When printing this page, you must include the entire legal notice at bottom. Where do I begin?

More information

MBA 5652, Research Methods Course Syllabus. Course Description. Course Material(s) Course Learning Outcomes. Credits.

MBA 5652, Research Methods Course Syllabus. Course Description. Course Material(s) Course Learning Outcomes. Credits. MBA 5652, Research Methods Course Syllabus Course Description Guides students in advancing their knowledge of different research principles used to embrace organizational opportunities and combat weaknesses

More information

Course outline. Code: LFS303 Title: Pathophysiology

Course outline. Code: LFS303 Title: Pathophysiology Course outline Code: LFS303 Title: Pathophysiology Faculty of: Science, Health, Education and Engineering Teaching Session: Semester 1 Year: 2017 Course Coordinator: Dr Nicole Reinke Email: nreinke@usc.edu.au

More information

DEVM F105 Intermediate Algebra DEVM F105 UY2*2779*

DEVM F105 Intermediate Algebra DEVM F105 UY2*2779* DEVM F105 Intermediate Algebra DEVM F105 UY2*2779* page iii Table of Contents CDE Welcome-----------------------------------------------------------------------v Introduction -------------------------------------------------------------------------xiii

More information

systems have been developed that are well-suited to phenomena in but is properly contained in the indexed languages. We give a

systems have been developed that are well-suited to phenomena in but is properly contained in the indexed languages. We give a J. LOGIC PROGRAMMING 1993:12:1{199 1 STRING VARIABLE GRAMMAR: A LOGIC GRAMMAR FORMALISM FOR THE BIOLOGICAL LANGUAGE OF DNA DAVID B. SEARLS > Building upon Denite Clause Grammar (DCG), a number of logic

More information

University of Groningen. Systemen, planning, netwerken Bosman, Aart

University of Groningen. Systemen, planning, netwerken Bosman, Aart University of Groningen Systemen, planning, netwerken Bosman, Aart IMPORTANT NOTE: You are advised to consult the publisher's version (publisher's PDF) if you wish to cite from it. Please check the document

More information

AQUA: An Ontology-Driven Question Answering System

AQUA: An Ontology-Driven Question Answering System AQUA: An Ontology-Driven Question Answering System Maria Vargas-Vera, Enrico Motta and John Domingue Knowledge Media Institute (KMI) The Open University, Walton Hall, Milton Keynes, MK7 6AA, United Kingdom.

More information

Aviation English Training: How long Does it Take?

Aviation English Training: How long Does it Take? Aviation English Training: How long Does it Take? Elizabeth Mathews 2008 I am often asked, How long does it take to achieve ICAO Operational Level 4? Unfortunately, there is no quick and easy answer to

More information

GRADUATE PROGRAM Department of Materials Science and Engineering, Drexel University Graduate Advisor: Prof. Caroline Schauer, Ph.D.

GRADUATE PROGRAM Department of Materials Science and Engineering, Drexel University Graduate Advisor: Prof. Caroline Schauer, Ph.D. GRADUATE PROGRAM Department of Materials Science and Engineering, Drexel University Graduate Advisor: Prof. Caroline Schauer, Ph.D. 05/15/2012 The policies listed herein are applicable to all students

More information

Evolution of Collective Commitment during Teamwork

Evolution of Collective Commitment during Teamwork Fundamenta Informaticae 56 (2003) 329 371 329 IOS Press Evolution of Collective Commitment during Teamwork Barbara Dunin-Kȩplicz Institute of Informatics, Warsaw University Banacha 2, 02-097 Warsaw, Poland

More information

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist

ENGBG1 ENGBL1 Campus Linguistics. Meeting 2. Chapter 7 (Morphology) and chapter 9 (Syntax) Pia Sundqvist Meeting 2 Chapter 7 (Morphology) and chapter 9 (Syntax) Today s agenda Repetition of meeting 1 Mini-lecture on morphology Seminar on chapter 7, worksheet Mini-lecture on syntax Seminar on chapter 9, worksheet

More information

PREP S SPEAKER LISTENER TECHNIQUE COACHING MANUAL

PREP S SPEAKER LISTENER TECHNIQUE COACHING MANUAL 1 PREP S SPEAKER LISTENER TECHNIQUE COACHING MANUAL IMPORTANCE OF THE SPEAKER LISTENER TECHNIQUE The Speaker Listener Technique (SLT) is a structured communication strategy that promotes clarity, understanding,

More information

How to set up gradebook categories in Moodle 2.

How to set up gradebook categories in Moodle 2. How to set up gradebook categories in Moodle 2. It is possible to set up the gradebook to show divisions in time such as semesters and quarters by using categories. For example, Semester 1 = main category

More information

DMA CLUSTER CALCULATIONS POLICY

DMA CLUSTER CALCULATIONS POLICY DMA CLUSTER CALCULATIONS POLICY Watlington C P School Shouldham Windows User HEWLETT-PACKARD [Company address] Riverside Federation CONTENTS Titles Page Schools involved 2 Rationale 3 Aims and principles

More information

TU-E2090 Research Assignment in Operations Management and Services

TU-E2090 Research Assignment in Operations Management and Services Aalto University School of Science Operations and Service Management TU-E2090 Research Assignment in Operations Management and Services Version 2016-08-29 COURSE INSTRUCTOR: OFFICE HOURS: CONTACT: Saara

More information

"f TOPIC =T COMP COMP... OBJ

f TOPIC =T COMP COMP... OBJ TREATMENT OF LONG DISTANCE DEPENDENCIES IN LFG AND TAG: FUNCTIONAL UNCERTAINTY IN LFG IS A COROLLARY IN TAG" Aravind K. Joshi Dept. of Computer & Information Science University of Pennsylvania Philadelphia,

More information

Lecture 1: Basic Concepts of Machine Learning

Lecture 1: Basic Concepts of Machine Learning Lecture 1: Basic Concepts of Machine Learning Cognitive Systems - Machine Learning Ute Schmid (lecture) Johannes Rabold (practice) Based on slides prepared March 2005 by Maximilian Röglinger, updated 2010

More information

Multimedia Application Effective Support of Education

Multimedia Application Effective Support of Education Multimedia Application Effective Support of Education Eva Milková Faculty of Science, University od Hradec Králové, Hradec Králové, Czech Republic eva.mikova@uhk.cz Abstract Multimedia applications have

More information

CAN PICTORIAL REPRESENTATIONS SUPPORT PROPORTIONAL REASONING? THE CASE OF A MIXING PAINT PROBLEM

CAN PICTORIAL REPRESENTATIONS SUPPORT PROPORTIONAL REASONING? THE CASE OF A MIXING PAINT PROBLEM CAN PICTORIAL REPRESENTATIONS SUPPORT PROPORTIONAL REASONING? THE CASE OF A MIXING PAINT PROBLEM Christina Misailidou and Julian Williams University of Manchester Abstract In this paper we report on the

More information

CX 105/205/305 Greek Language 2017/18

CX 105/205/305 Greek Language 2017/18 The University of Warwick Department of Classics and Ancient History CX 105/205/305 Greek Language 2017/18 Module Convenor: Clive Letchford, Room H.2.39 C.A.Letchford@warwick.ac.uk detail from Codex Sinaiticus,

More information

Timeline. Recommendations

Timeline. Recommendations Introduction Advanced Placement Course Credit Alignment Recommendations In 2007, the State of Ohio Legislature passed legislation mandating the Board of Regents to recommend and the Chancellor to adopt

More information

OFFICE SUPPORT SPECIALIST Technical Diploma

OFFICE SUPPORT SPECIALIST Technical Diploma OFFICE SUPPORT SPECIALIST Technical Diploma Program Code: 31-106-8 our graduates INDEMAND 2017/2018 mstc.edu administrative professional career pathway OFFICE SUPPORT SPECIALIST CUSTOMER RELATIONSHIP PROFESSIONAL

More information

Short vs. Extended Answer Questions in Computer Science Exams

Short vs. Extended Answer Questions in Computer Science Exams Short vs. Extended Answer Questions in Computer Science Exams Alejandro Salinger Opportunities and New Directions April 26 th, 2012 ajsalinger@uwaterloo.ca Computer Science Written Exams Many choices of

More information

Graduate Program in Education

Graduate Program in Education SPECIAL EDUCATION THESIS/PROJECT AND SEMINAR (EDME 531-01) SPRING / 2015 Professor: Janet DeRosa, D.Ed. Course Dates: January 11 to May 9, 2015 Phone: 717-258-5389 (home) Office hours: Tuesday evenings

More information