Mathematical Foundation of Computer Science

Size: px
Start display at page:

Download "Mathematical Foundation of Computer Science"

Transcription

1

2 Mathematical Foundation of Computer Science

3 Mathematical Foundation of Computer Science Covers the syllabus of: IP University, Delhi; SRM University, Chennai; MTU Noida; GBTU Lucknow; VIT, Tamil Nadu; Madhya Pradesh Bhoj Open University; Punjabi University, Patiala; University of Jammu (For BCA); Bharathidasan University, Tiruchirappalli (For MSc (CS)); Institute of Advance Studies Education (Deemed University) For PGDCA); MDU, Rohtak (for BCA); Uttrakhand Technical University; Ghauhati University (for M.Sc (CS)); Sri Chandrasekharendra Saraswathi Viswa Mahavidyalaya, Enathur, Kanchipuram (For ME). Manisha Singhwal MA, Mathematics (Gold Medalist) MCA, M.Phil. Assistant Professor, Department of Computer Science Institute of Professional Excellence and Management Ghaziabad (U.P.) Asian Books Private Limited

4 Mathematical Foundation of Computer Science Manisha Singhwal Asian Books Private Limited Registered and Editorial Office 7/28, Mahavir Lane, Vardan House, Ansari Road, Darya Ganj, New Delhi Ph.: , , Fax: Website: Publishers First Edition 2013 ISBN All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording and/or otherwise, without the prior written permission of the publisher. Published by Kamal Jagasia for Asian Books Pvt. Ltd., 7/28, Mahavir Lane, Vardan House, Darya Ganj, New Delhi Typeset at: Sara Assignments, Shahdara, Delhi Printed at: Anubha Printers, Greater Noida Sales Offices New Delhi 7/28, Mahavir Lane, Vardan House, Ansari Road, Darya Ganj, New Delhi Ph.: , , Fax: , sales@asianbooksindia.com Bangalore 103, Swiss Complex, 33, Race Course Road, Bangalore Ph.: , , Fax: , asianbangalore@asianbooksindia.com Guwahati House No. 48, Lamb Road, Latashil, P.O. Latashil, Distt. Kamrup (Metro), Guwahati , Assam Ph.: , , asianguwahati@asianbooksindia.com Kolkata 10 A, Hospital Street, Kolkata Ph.: , , , Fax: , customer.servicekolkatta@asianbooksindia.com Mumbai 103, Blackie House, Walchand Hirachand Marg, Opp. GPO, VT, Mumbai Ph.: , , , asianbooksvt@asianbooksindia.com Resident Offices Chennai Shop No. 19, First Floor, Real Regency Complex, 102, Pycrofts Road, Royapettah, Chennai Ph.: , asianchennai123@gmail.com Hyderabad , Street No. 7, Vittalwadi, Narayanguda, Hyderabad Ph.: , asianhyderabad@asianbooksindia.com Pune Shop No. 5-8, G.F. Shaan Brahma Complex, Near Ratan Theater, Budhwarpeth, Pune , Ph: , asianpune@asianbooksindia.com

5 Dedicated to My Parents

6 Preface Mathematical Foundations of Computer Science explains the Fundamental Concepts in Mathematics. It can be used by the students in Computer Science as an introduction to the underlying ideas of mathematics for computer science. This book is designed to provide an introduction to some Fundamental Concepts in Discrete Mathematics and Automata. Mathematical Foundation of Computer Science is a compulsory paper in most computing program universities of our country. It covers Set Theory, Relation, Function Mathematical Induction, Recurrence Relation generating Function, Algebraic structure, Lattices, Graph Theory, Finite Automation, Regular Expression, Turing Machine, and Formal Language. Each topic in the book has neem treated as easy manner. A set of exercise (with answers) has also been given at then end of each chapter to test the students s comprehension. The proofs of various Theorems and Examples have been given with enough details. Numerous Solved Examples have been included in the book to help the students in understanding various concepts easily. I have tried my best to keep the book free from misprints. I will be grateful to the readers who point out errors and omissions which in spite of all case, might have been there. Throughout the book, the subject matter has been dealt in such a simple, logical and systematic way that students will not find any difficulty to understand it. I express my thanks to my parents and all family members for their support. I would like to express my thanks to my friends. I am thankful to Asian Books Pvt. Ltd., New Delhi and its Production Team, especially Mr. A. S. Khan. Manisha Singhwal

7 Syllabus MATHEMATICAL FOUNDATION OF COMPUTER SCIENCE MCA: CA-102 UNIT-I Set Theory: Definition of sets, countable and uncountable sets, Venn Diagrams, proofs of some general identities on sets. Relation: Definition, types of relation, composition of relations, Pictorial representation of relation, equivalence relation, partial ordering relation. Function: Definition, type of functions, one to one, into and onto function, inverse function, composition of functions, recursively defined functions. Mathematical Induction: Piano s axioms, Mathematical Induction Discrete Numeric Functions and Generating functions Simple Recurrence relation with constant coefficients, Linear recurrence relation without constant coefficients. UNIT-II Algebraic Structures: Properties, Semi group, Monoid, Group, Abelian group, properties of group, Subgroup, Cyclic group, Cosets, Permutation groups, Homomorphism, Isomorphism and Automorphism of groups Propositional Logic: Preposition, First order logic, Basic logical operations, Tautologies, Contradictions, Algebra of Proposition, Logical implication, Logical equivalence, Normal forms, Inference Theory, Predicates and quantifiers, Posets, Hasse Diagram and Lattices: Introduction, ordered set, Hasse diagram of partially, ordered set, isomorphic ordered set, well ordered set, properties of Lattices, and complemented lattices. UNIT-III Graphs: Simple graph, multi graph, representation of graphs, Bipartite, Regular, Planar and connected graphs, Euler graphs, Hamiltonian path and circuits, Graph coloring, chromatic number, isomorphism and Homomorphism of graphs. Tree: Definition, Rooted tree, properties of trees, binary search tree, tree traversal. UNIT-IV Theory of computation: Introduction, Alphabets, Strings and Languages, Kleene Closure, NFA, DFA, Conversion of NFA to DFA, Optimizing DFA FA with output: Moore machine, Mealy machine, Conversions. Regular expression (RE), Definition, Regular expression to FA, Arden Theorem, DFA to Regular expression, Non Regular Languages, Pumping Lemma for regular Languages. Application of Pumping Lemma, Closure properties of Regular Languages. UNIT-V Chomsky Hierarchy of language, Context-free grammar (CFG), Pushdown Automata (PDA), equivalence of PDA s and CFG s, Introduction Turing Machine (TM), construction of TM for simple problems. TM as Computer of Integer functions, Universal TM, Recursive and recursively enumerable languages, Halting problem, Introduction to Undecidability, Undecidable problems about TMs.

8 Contents UNIT I 1. Set Theory Relation Function Mathematical Induction UNIT II 1. Algebraic Structure Ring and Fields Propositional Logic Boolean Algebra Posets, Hasse Diagram and Lattices UNIT III 1. Graph Theory UNIT IV 1. Theory of Computation The Theory of Automata Regular Expression Formal Languages UNIT V 1. Context Free Grammar Pushdown Automata Turing Machine

9 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Unit I Set Theory Relation Function Mathematical Induction 1

10 Set Theory CHAPTER The Theory of sets was developed by German Mathematician George Canter ( ) who defined a set as a collection aggregate of definite and distinguishable objects selected by means of some rules. 1.1 SETS-DEFINITION A set is well defined collection of objects or elements or numbers. There objects may be name of student points in Coordinate Geometry, letters of alphabets, numbers etc. Example of Sets: The collection of vowels in the English alphabets A = {a, i, e, o, u} The collection of All Natural numbers. N = {1, 2, 3,...} The collection of all even numbers B = {2, 4, 6, 8...} 1.2 REPRESENTATION OF SETS We denote set by capital letters like A, B, C... etc and the elements of sets are represented by small letters a, b, c.... If a is an element of set A then we can write a A i.e. a belongs to A or a is an element of A, and If a is not an element of A then we can write a A i.e. A does not belongs to A. There are two type of representation of sets Tabular or roster form Set builder or property or rule method Tabular or Roster Method In this form, all the elements of set are listed with in {} and elements being separated by commas. 3

11 4 Mathematical Foundation of Computer Science Example: The set of all natural numbers N = {1, 2, 3,...} Set of vowels V = {a, i, e, o, u} Question: Write the following sets in the roster form (i) A set of all factor of 12 Ans: A = {1, 2, 3, 4, 6, 12} (ii) B = set of all even integers less than 20 Ans: B = {2, 4, 6, 8, 10, 12, 14, 16, 18} Rule or Property or Set Builder Method In this form, a set is identify by its property i.e. the set of all those x such that each x has properties say. Example: A = {x : x is even no.} B = set of all natural number less than 8 B = {x : x N and x < 8} Question: Write the set E =,,,,... in set builder form n Ans: E = x: x= where nis natural number n +1 Note: 1. Order of elements are not important. It may be {1, 2, 3} or {1, 3, 2} both are same. 2. The repeated letters are taken only once each, like A = {1, 2, 3, 4} B = {1, 2, 3, 3, 4} both are same. 1.3 TYPES OF SETS Types of sets are following: Empty Sets A set containg no elements at all is called empty set or null set or void set. It is denoted by the symbol and {}. Example: N = {x : x N and 2 < x < 3} Ans: N = Example: A = {x : x 2 = 9 where x is even number} Ans: A =

12 Set Theory Singleton Set A set containing exactly one element is called singleton set. Example: The capital of India Ans: A = {Delhi} Example: A = {x : x N and x 2 9 = 0} Ans: A = {3} Note: { } is also an example of singleton set Finite Set A set is said to be finite set if it contains finite number of elements. Example: Set of all students in a particular class. Set of rivers Set of vowels Infinite Set A set which contains infinite number of elements is known as infinite set. Example: Set of all natural numbers Set of all prime numbers Set of all stars in the sky. 1.4 SUBSET A set with in set is called subset. If all the elements of a set A are also the elements of the set B, then set A is subset of B. Example: A = {a, b, c} B = {a, b, c, d} through this example it is clear that all the elements of A are also the elements of B. Therefore A is a subset of B it is denoted by A B if x A and x B in other hand if A is not subset of B i.e atleast one element of A does not belongs to B. Properties of Subset Theorem 1: Every set A is a subset of itself. i.e. A A Proof: Let A be any set. Then each element of A is clearly in A itself. Hence A A. Theorem 2: Null set is a subset of every set. Proof: Let A be any given set, then we have to Prove that A Let us suppose A i.e. is not subset of A if A, then there is atleast one element x in A.

13 6 Mathematical Foundation of Computer Science Such that x...(1) if x A then x {since is null set}...(2) From Equation (1) and (2) x and x, which is contradiction so our assumption is wrong, then A Proved Theorem 3: If A is subset of B and B is a subset of C then A is a subset of C. In symbols, A B and B C then A C. Proof: Let us suppose x be an element of A i.e. x A given that A B [ If x is an element of A then x is also element of B by the definition of subset] x A x B...(1) Similarly B C x B x C...(2) From equation (1) and (2) x A x C Therefore A C Proved 1.5 PROPER SUBSET Any subset A is said to be proper subset of another set B if A is subset of B but there exist atleast one element of B which is not belong to A. i.e. A B but A B we can write A B, A is a proper subset of B Example: A = {a, b} B = {a, b, c} every element of B is an element of set B but A B, then A is a proper subset of B. 1.6 SUPER SET If A is a subset of B then B is a superset of A i.e. B A 1.7 POWER SET The set of all subset of a given set A is called power set of A, denoted by P(A). Then total number of subset in a set can be defined by = 2 n where n is the number of element in a set. Example 1: If A = {1, 2} then P(A) = {, {1}, {2}, {1, 2}} Note: P(A) = {{ }, {1}, {2}, {1, 2} is wrong way of power set because { } is subset where is an element. Example: If A = {a, b, c} then power set P(A) = {, {a}, {b}, {c}, {a, b}, {b, c} {c, a}, {a, b, c}}

14 Set Theory 7 Theorem: The total number of subset of a finite set containg n element is 2 n Proof: Let A be a finite set containing n element Let 0 r n Consider those subset of A that has r element each. We know that number of ways in which r elements can be chossen out of n element is n C r. Therefore the number of subsets of A having r element each is n C r Hence, the total number of subset of A is = n C 0 + n C 1 + n C n C r +... = (1 + 1) n = 2 n Proved Question: Two finite sets have m and n elements. The total number of subset of the first set is 56 more than total number of subsets of second set. Find the value of m and n? Ans: We know that if a set has m elements then total number of subset of set = 2 m So, In first set total number of subset = 2 m In second set total number of subset = 2 n According to the question 2 m = 2 n m 2 n = 56 2 n (2 m n 1) = n = 8 2 n = 2 3 n = 3 Now, 2 m n 1 = 7 2 m n 1 = m n = 8 2 m n = 2 3 Taking power m n = 3 Put n = 3 m 3 = 3 m = 6 Hence the value of m is 6 and n is EQUAL SET Two sets A and B are equal set if they have exactly the same elements i.e. A = B if x A and x B Example: A = {1, 2, 3} B = {2, 3, 1} C = {1, 3, 2} A, B, C are equal sets. 1.9 CARDINAL NUMBER OF SETS The total number of elements in a set A is called cardinal number of given set. It is denoted by n(a). Example: A = {1, 2, 3} n(a) = 3

15 8 Mathematical Foundation of Computer Science Equivalent Set Two set A and B are equivalent set if their cardinal number are same for example. Let A = {1, 2, 3} B = {a, b, c} A and B both are equivalent because n(a) = 3 and n(b) = 3. Universal Set In any application of set theory, all the sets under investigation are likely to be considered as subset of particular set. The set is called universal set and denoted by U or universe of discourse. Example: Set of All Natural number of is the universe form in which we can choosen even number and odd number as a set. Operation on Sets In this section we will discuss several operation that will create a new set by two sets. 1. Union: The union of two set A and B denoted by A B is the set of all those elements which belongs to A or to B. A B = {x : x A or x B} Example: Let A = {1, 2} B = {1, 2, 3} A B = {1, 2} {1, 2, 3} = {1, 2, 3} 2. Intersection: The intersection of two set A and B denoted by A B is the set of all those elements which belongs to A and B both. A B = {x : x A and x B} Example: Let A = {1, 2, 3} B = {1, 2} A B = {1, 2, 3} {1, 2} = {1, 2} 3. Disjoint Set: If two set A and B do not have any element in common is called disjoint set i.e. A B =. Example: A = {1, 2} B = {4, 3} A B = i.e. A and B are disjoint set 4. Complement of a Set: Let U be the universal set and A by any subset of U. The absolute complement or simply complement of set A is denoted by A or A in other words, means A set of element which belongs to U but not belong to A. Example: Let U = {1, 2, 3, 4, 5, 6} A = {1, 2, 3} A = U A = {1, 2, 3, 4, 5, 6} {1, 2, 3} = {4, 5, 6} 5. Difference of Set: Two set A and B is called difference of A and B, denoted by A/B or A B is the set of elements which belongs to A but which do not belong to B A B = {x : x A but x B} Example: Let A = {1, 2, 3} B = {3, 4, 5} A B = {1, 2}

16 Mathematical Foundation of Computer Science Publisher : ASIAN ISBN : Author : Manisha Singhwal Type the URL : 34 Get this ebook

BASIC MATHEMATICAL TECHNIQUES

BASIC MATHEMATICAL TECHNIQUES CHAPTER 1 ASIC MATHEMATICAL TECHNIQUES 1.1 Introduction To understand automata theory, one must have a strong foundation about discrete mathematics. Discrete mathematics is a branch of mathematics dealing

More information

Unit I (Logic and Proofs)

Unit I (Logic and Proofs) SUBJECT NAME SUBJECT CODE : MA 6566 MATERIAL NAME REGULATION : Discrete Mathematics : Part A questions : R2013 UPDATED ON : April-May 2018 (Scan the above QR code for the direct download of this material)

More information

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES

SYLLABUS. Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 3 : REGULAR EXPRESSIONS AND LANGUAGES Contents i SYLLABUS UNIT - I CHAPTER - 1 : AUT UTOMA OMATA Introduction to Finite Automata, Central Concepts of Automata Theory. CHAPTER - 2 : FINITE AUT UTOMA OMATA An Informal Picture of Finite Automata,

More information

Perfect Mathematics - II

Perfect Mathematics - II Std. I Sci. Perfect Mathematics - II Edition: July 2014 Mr. Vinodkumar J. Pandey.Sc. (Mathematics) G. N. Khalsa College, Mumbai Dr. Sidheshwar S. ellale M.Sc.,.Ed., PhD. (Maths) Department of Mathematics,

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

CO-ORDINATE GEOMETRY

CO-ORDINATE GEOMETRY CO-ORDINATE GEOMETRY MATHS SERIES CO-ORDINATE GEOMETRY By N.P. BALI FIREWALL MEDIA (An Imprint of Laxmi Publications Pvt. Ltd.) BANGALORE CHENNAI COCHIN GUWAHATI HYDERABAD JALANDHAR KOLKATA LUCKNOW MUMBAI

More information

NORTHERN INDIA ENGINEERING COLLEGE, LKO D E P A R T M E N T O F M A T H E M A T I C S. B.TECH IIIrd SEMESTER QUESTION BANK ACADEMIC SESSION

NORTHERN INDIA ENGINEERING COLLEGE, LKO D E P A R T M E N T O F M A T H E M A T I C S. B.TECH IIIrd SEMESTER QUESTION BANK ACADEMIC SESSION NORTHERN INDIA ENGINEERING COLLEGE, LKO D E P A R T M E N T O F M A T H E M A T I C S B.TECH IIIrd SEMESTER QUESTION BANK ACADEMIC SESSION 011-1 DISCRETE MATHEMATICS (EOE 038) 1. UNIT I (SET, RELATION,

More information

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages COMP/MATH 300 Topics for Spring 2017 June 5, 2017 Review and Regular Languages Exam I I. Introductory and review information from Chapter 0 II. Problems and Languages A. Computable problems can be expressed

More information

Algebras with finite descriptions

Algebras with finite descriptions Algebras with finite descriptions André Nies The University of Auckland July 19, 2005 Part 1: FA-presentability A countable structure in a finite signature is finite-automaton presentable (or automatic)

More information

Chapter-2 SETS In Mathematics, Set theory was developed by George Cantor ( ).

Chapter-2 SETS In Mathematics, Set theory was developed by George Cantor ( ). Chapter-2 SETS In Mathematics, Set theory was developed by George Cantor (1845 1918). Set: A well defined collections of objects is called a Set. Well defined means that (i) (ii) All the objects in the

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

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Introduction. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR 1 Introduction Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Comments on Alan Turing s Paper "On Computable Numbers, with an Application to the Entscheidungs

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 1 Course Web Page www3.cs.stonybrook.edu/ cse303 The webpage contains: lectures notes slides; very detailed solutions to

More information

1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A.

1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A. 1.A Sets, Relations, Graphs, and Functions 1.A.1 Set a collection of objects(element) Let A be a set and a be an elements in A, then we write a A. How to specify sets 1. to enumerate all of the elements

More information

Tribhuvan University Institute of Science and Technology Micro Syllabus

Tribhuvan University Institute of Science and Technology Micro Syllabus Tribhuvan University Institute of Science and Technology Micro Syllabus Course Title: Discrete Structure Course no: CSC-152 Full Marks: 80+20 Credit hours: 3 Pass Marks: 32+8 Nature of course: Theory (3

More information

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class

CSE 105 THEORY OF COMPUTATION. Spring 2018 review class CSE 105 THEORY OF COMPUTATION Spring 2018 review class Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with confidence. Identify areas to focus

More information

Discrete Mathematics. Benny George K. September 22, 2011

Discrete Mathematics. Benny George K. September 22, 2011 Discrete Mathematics Benny George K Department of Computer Science and Engineering Indian Institute of Technology Guwahati ben@iitg.ernet.in September 22, 2011 Set Theory Elementary Concepts Let A and

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

Sets. your school. A group of odd natural numbers less than 25.

Sets. your school. A group of odd natural numbers less than 25. 1 Sets The set theory was developed by German Mathematician Georg Cantor (1845-1918). He first encountered sets while working on problems on trigonometric series. This concept is used in every branch of

More information

SETS. JEE-Mathematics

SETS. JEE-Mathematics STS J-Mathematics ST : A set is a collection of well defined objects which are distinct from each other Set are generally denoted by capital letters A, B, C,... etc. and the elements of the set by a, b,

More information

Final exam study sheet for CS3719 Turing machines and decidability.

Final exam study sheet for CS3719 Turing machines and decidability. Final exam study sheet for CS3719 Turing machines and decidability. A Turing machine is a finite automaton with an infinite memory (tape). Formally, a Turing machine is a 6-tuple M = (Q, Σ, Γ, δ, q 0,

More information

AC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013

AC68 FINITE AUTOMATA & FORMULA LANGUAGES DEC 2013 Q.2 a. Prove by mathematical induction n 4 4n 2 is divisible by 3 for n 0. Basic step: For n = 0, n 3 n = 0 which is divisible by 3. Induction hypothesis: Let p(n) = n 3 n is divisible by 3. Induction

More information

MA Discrete Mathematics

MA Discrete Mathematics MA2265 - Discrete Mathematics UNIT I 1. Check the validity of the following argument. If the band could not play rock music or the refreshments were not delivered on time, then the New year s party would

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

Tutorial Obtain the principal disjunctive normal form and principal conjunction form of the statement

Tutorial Obtain the principal disjunctive normal form and principal conjunction form of the statement Tutorial - 1 1. Obtain the principal disjunctive normal form and principal conjunction form of the statement Let S P P Q Q R P P Q Q R A: P Q Q R P Q R P Q Q R Q Q R A S Minterm Maxterm T T T F F T T T

More information

Handbook of Logic and Proof Techniques for Computer Science

Handbook of Logic and Proof Techniques for Computer Science Steven G. Krantz Handbook of Logic and Proof Techniques for Computer Science With 16 Figures BIRKHAUSER SPRINGER BOSTON * NEW YORK Preface xvii 1 Notation and First-Order Logic 1 1.1 The Use of Connectives

More information

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET

THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET THEORY OF COMPUTATION (AUBER) EXAM CRIB SHEET Regular Languages and FA A language is a set of strings over a finite alphabet Σ. All languages are finite or countably infinite. The set of all languages

More information

CSE 105 THEORY OF COMPUTATION

CSE 105 THEORY OF COMPUTATION CSE 105 THEORY OF COMPUTATION Spring 2017 http://cseweb.ucsd.edu/classes/sp17/cse105-ab/ Today's learning goals Summarize key concepts, ideas, themes from CSE 105. Approach your final exam studying with

More information

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Theory of Computation. Copyright By NODIA & COMPANY

NODIA AND COMPANY. GATE SOLVED PAPER Computer Science Engineering Theory of Computation. Copyright By NODIA & COMPANY No part of this publication may be reproduced or distributed in any form or any means, electronic, mechanical, photocopying, or otherwise without the prior permission of the author. GATE SOLVED PAPER Computer

More information

Theory of Computation (Classroom Practice Booklet Solutions)

Theory of Computation (Classroom Practice Booklet Solutions) Theory of Computation (Classroom Practice Booklet Solutions) 1. Finite Automata & Regular Sets 01. Ans: (a) & (c) Sol: (a) The reversal of a regular set is regular as the reversal of a regular expression

More information

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Section 2.1 Introduction Sets are one of the basic building blocks for the types of objects considered in discrete mathematics. Important for counting. Programming languages have set operations. Set theory

More information

CSCI 2200 Foundations of Computer Science Spring 2018 Quiz 3 (May 2, 2018) SOLUTIONS

CSCI 2200 Foundations of Computer Science Spring 2018 Quiz 3 (May 2, 2018) SOLUTIONS CSCI 2200 Foundations of Computer Science Spring 2018 Quiz 3 (May 2, 2018) SOLUTIONS 1. [6 POINTS] For language L 1 = {0 n 1 m n, m 1, m n}, which string is in L 1? ANSWER: 0001111 is in L 1 (with n =

More information

Models of Computation. by Costas Busch, LSU

Models of Computation. by Costas Busch, LSU Models of Computation by Costas Busch, LSU 1 Computation CPU memory 2 temporary memory input memory CPU output memory Program memory 3 Example: f ( x) x 3 temporary memory input memory Program memory compute

More information

ENGINEERING MECHANICS

ENGINEERING MECHANICS ENGINEERING MECHANICS ENGINEERING MECHANICS (In SI Units) For BE/B.Tech. Ist YEAR Strictly as per the latest syllabus prescribed by Mahamaya Technical University, Noida By Dr. R.K. BANSAL B.Sc. Engg.

More information

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms

REVIEW QUESTIONS. Chapter 1: Foundations: Sets, Logic, and Algorithms REVIEW QUESTIONS Chapter 1: Foundations: Sets, Logic, and Algorithms 1. Why can t a Venn diagram be used to prove a statement about sets? 2. Suppose S is a set with n elements. Explain why the power set

More information

DM17. Beregnelighed. Jacob Aae Mikkelsen

DM17. Beregnelighed. Jacob Aae Mikkelsen DM17 Beregnelighed Jacob Aae Mikkelsen January 12, 2007 CONTENTS Contents 1 Introduction 2 1.1 Operations with languages...................... 2 2 Finite Automata 3 2.1 Regular expressions/languages....................

More information

1. a. Give the converse and the contrapositive of the implication If it is raining then I get wet.

1. a. Give the converse and the contrapositive of the implication If it is raining then I get wet. VALLIAMMAI ENGINEERING COLLEGE DEPARTMENT OF MATHEMATICS SUB CODE/ TITLE: MA6566 DISCRETE MATHEMATICS QUESTION BANK Academic Year : 015-016 UNIT I LOGIC AND PROOFS PART-A 1. Write the negation of the following

More information

Question Bank UNIT I

Question Bank UNIT I Siddhivinayak Technical Campus School of Engineering & Research Technology Department of computer science and Engineering Session 2016-2017 Subject Name- Theory of Computation Subject Code-4KS05 Sr No.

More information

acs-07: Decidability Decidability Andreas Karwath und Malte Helmert Informatik Theorie II (A) WS2009/10

acs-07: Decidability Decidability Andreas Karwath und Malte Helmert Informatik Theorie II (A) WS2009/10 Decidability Andreas Karwath und Malte Helmert 1 Overview An investigation into the solvable/decidable Decidable languages The halting problem (undecidable) 2 Decidable problems? Acceptance problem : decide

More information

CHAPTER 1 SETS AND EVENTS

CHAPTER 1 SETS AND EVENTS CHPTER 1 SETS ND EVENTS 1.1 Universal Set and Subsets DEFINITION: set is a well-defined collection of distinct elements in the universal set. This is denoted by capital latin letters, B, C, If an element

More information

Review 3. Andreas Klappenecker

Review 3. Andreas Klappenecker Review 3 Andreas Klappenecker Final Exam Friday, May 4, 2012, starting at 12:30pm, usual classroom Topics Topic Reading Algorithms and their Complexity Chapter 3 Logic and Proofs Chapter 1 Logic and Proofs

More information

INSTITUTE OF AERONAUTICAL ENGINEERING

INSTITUTE OF AERONAUTICAL ENGINEERING INSTITUTE OF AERONAUTICAL ENGINEERING DUNDIGAL 500 043, HYDERABAD COMPUTER SCIENCE AND ENGINEERING TUTORIAL QUESTION BANK Course Name : FORMAL LANGUAGES AND AUTOMATA THEORY Course Code : A40509 Class :

More information

With Question/Answer Animations. Chapter 2

With Question/Answer Animations. Chapter 2 With Question/Answer Animations Chapter 2 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Sequences and Summations Types of

More information

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018

Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Finite Automata Theory and Formal Languages TMV027/DIT321 LP4 2018 Lecture 15 Ana Bove May 17th 2018 Recap: Context-free Languages Chomsky hierarchy: Regular languages are also context-free; Pumping lemma

More information

BT 0069 Discrete Mathematics

BT 0069 Discrete Mathematics Unit 1 Contents BT 0069 Discrete Mathematics Mathematical Preliminaries 1 Unit 2 Elementary Combinatorics 33 Unit 3 Recurrence Relations 64 Unit 4 Partially Ordered Sets 85 Unit 5 Lattices 98 Unit 6 Algebraic

More information

2.2 Lowenheim-Skolem-Tarski theorems

2.2 Lowenheim-Skolem-Tarski theorems Logic SEP: Day 1 July 15, 2013 1 Some references Syllabus: http://www.math.wisc.edu/graduate/guide-qe Previous years qualifying exams: http://www.math.wisc.edu/ miller/old/qual/index.html Miller s Moore

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

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

Decidability (What, stuff is unsolvable?)

Decidability (What, stuff is unsolvable?) University of Georgia Fall 2014 Outline Decidability Decidable Problems for Regular Languages Decidable Problems for Context Free Languages The Halting Problem Countable and Uncountable Sets Diagonalization

More information

Notation Index. gcd(a, b) (greatest common divisor) NT-16

Notation Index. gcd(a, b) (greatest common divisor) NT-16 Notation Index (for all) B A (all functions) B A = B A (all functions) SF-18 (n) k (falling factorial) SF-9 a R b (binary relation) C(n,k) = n! k! (n k)! (binomial coefficient) SF-9 n! (n factorial) SF-9

More information

INF210 Datamaskinteori (Models of Computation)

INF210 Datamaskinteori (Models of Computation) INF210 Datamaskinteori (Models of Computation) Textbook: John Martin, Introduction to Languages and the Theory of Computation, McGraw Hill, Third Edition. Fedor V. Fomin Datamaskinteori 1 Datamaskinteori

More information

DEPARTMENT OF MATHEMATICS. MA1301 Discrete Mathematics

DEPARTMENT OF MATHEMATICS. MA1301 Discrete Mathematics SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2000 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI 621 105 DEPARTMENT OF MATHEMATICS MA1301 Discrete Mathematics UNIT-I PART-A 1.Give

More information

CSE 311 Lecture 28: Undecidability of the Halting Problem. Emina Torlak and Kevin Zatloukal

CSE 311 Lecture 28: Undecidability of the Halting Problem. Emina Torlak and Kevin Zatloukal CSE 311 Lecture 28: Undecidability of the Halting Problem Emina Torlak and Kevin Zatloukal 1 Topics Final exam Logistics, format, and topics. Countability and uncomputability A quick recap of Lecture 27.

More information

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4 CSE 20 Lecture 4: Introduction to Boolean algebra Reminder First quiz will be on Friday (17th January) in class. It is a paper quiz. Syllabus is all that has been done till Wednesday. If you want you may

More information

CPSC 421: Tutorial #1

CPSC 421: Tutorial #1 CPSC 421: Tutorial #1 October 14, 2016 Set Theory. 1. Let A be an arbitrary set, and let B = {x A : x / x}. That is, B contains all sets in A that do not contain themselves: For all y, ( ) y B if and only

More information

St.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad

St.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad St.MARTIN S ENGINEERING COLLEGE Dhulapally, Secunderabad-500 014 Subject: FORMAL LANGUAGES AND AUTOMATA THEORY Class : CSE II PART A (SHORT ANSWER QUESTIONS) UNIT- I 1 Explain transition diagram, transition

More information

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc.

The Pumping Lemma. for all n 0, u 1 v n u 2 L (i.e. u 1 u 2 L, u 1 vu 2 L [but we knew that anyway], u 1 vvu 2 L, u 1 vvvu 2 L, etc. The Pumping Lemma For every regular language L, there is a number l 1 satisfying the pumping lemma property: All w L with w l can be expressed as a concatenation of three strings, w = u 1 vu 2, where u

More information

CSI30. Chapter 2. Basic Structures: Sets, Functions, Sequences, Sums. 2.1 Sets and subsets 2.2 Sets of sets

CSI30. Chapter 2. Basic Structures: Sets, Functions, Sequences, Sums. 2.1 Sets and subsets 2.2 Sets of sets Chapter 2. Basic Structures: Sets, Functions, Sequences, Sums 2.1 Sets and subsets 2.2 Sets of sets 1 Set is an unordered collection of objects. - used to group objects together, - often the objects with

More information

Anna University, Chennai, November/December 2012

Anna University, Chennai, November/December 2012 B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2012 Fifth Semester Computer Science and Engineering MA2265 DISCRETE MATHEMATICS (Regulation 2008) Part - A 1. Define Tautology with an example. 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

Set Theory. CPT Section D Quantitative Aptitude Chapter 7 Brijeshwar Prasad Gupta

Set Theory. CPT Section D Quantitative Aptitude Chapter 7 Brijeshwar Prasad Gupta Set Theory CPT Section D Quantitative Aptitude Chapter 7 Brijeshwar Prasad Gupta Learning Objectives Number system Set Theory Set operations Product of Sets MCQ Number system Natural numbers:- N N = {1,2,3..}

More information

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability Chapter 2 1 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability Sequences and Summations Types of Sequences Summation

More information

CS 121, Section 2. Week of September 16, 2013

CS 121, Section 2. Week of September 16, 2013 CS 121, Section 2 Week of September 16, 2013 1 Concept Review 1.1 Overview In the past weeks, we have examined the finite automaton, a simple computational model with limited memory. We proved that DFAs,

More information

Simplification by Truth Table and without Truth Table

Simplification by Truth Table and without Truth Table SUBJECT NAME SUBJECT CODE : MA 6566 MATERIAL NAME REGULATION : Discrete Mathematics : University Questions : R2013 UPDATED ON : June 2017 (Scan the above Q.R code for the direct download of this material)

More information

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP

CS Lecture 29 P, NP, and NP-Completeness. k ) for all k. Fall The class P. The class NP CS 301 - Lecture 29 P, NP, and NP-Completeness Fall 2008 Review Languages and Grammars Alphabets, strings, languages Regular Languages Deterministic Finite and Nondeterministic Automata Equivalence of

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

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Jan Stelovsky based on slides by Dr. Baek and Dr. Still Originals by Dr. M. P. Frank and Dr. J.L. Gross Provided by

More information

Theory of Computation Lecture 1. Dr. Nahla Belal

Theory of Computation Lecture 1. Dr. Nahla Belal Theory of Computation Lecture 1 Dr. Nahla Belal Book The primary textbook is: Introduction to the Theory of Computation by Michael Sipser. Grading 10%: Weekly Homework. 30%: Two quizzes and one exam. 20%:

More information

SETS. Chapter Overview

SETS. Chapter Overview Chapter 1 SETS 1.1 Overview This chapter deals with the concept of a set, operations on sets.concept of sets will be useful in studying the relations and functions. 1.1.1 Set and their representations

More information

CSCE 551: Chin-Tser Huang. University of South Carolina

CSCE 551: Chin-Tser Huang. University of South Carolina CSCE 551: Theory of Computation Chin-Tser Huang huangct@cse.sc.edu University of South Carolina Church-Turing Thesis The definition of the algorithm came in the 1936 papers of Alonzo Church h and Alan

More information

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY

FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY 15-453 FORMAL LANGUAGES, AUTOMATA AND COMPUTABILITY REVIEW for MIDTERM 1 THURSDAY Feb 6 Midterm 1 will cover everything we have seen so far The PROBLEMS will be from Sipser, Chapters 1, 2, 3 It will be

More information

Automata Theory and Formal Grammars: Lecture 1

Automata Theory and Formal Grammars: Lecture 1 Automata Theory and Formal Grammars: Lecture 1 Sets, Languages, Logic Automata Theory and Formal Grammars: Lecture 1 p.1/72 Sets, Languages, Logic Today Course Overview Administrivia Sets Theory (Review?)

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Nachum Dershowitz & Yishay Mansour. Tel Aviv University. May 17 22, 2017 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

Simplification by Truth Table and without Truth Table

Simplification by Truth Table and without Truth Table SUBJECT NAME SUBJECT CODE : MA 6566 MATERIAL NAME REGULATION : Discrete Mathematics : University Questions : R2013 UPDATED ON : April-May 2018 BOOK FOR REFERENCE To buy the book visit : Sri Hariganesh

More information

CSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators.

CSE 311: Foundations of Computing I Autumn 2014 Practice Final: Section X. Closed book, closed notes, no cell phones, no calculators. CSE 311: Foundations of Computing I Autumn 014 Practice Final: Section X YY ZZ Name: UW ID: Instructions: Closed book, closed notes, no cell phones, no calculators. You have 110 minutes to complete the

More information

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions?

Before We Start. The Pumping Lemma. Languages. Context Free Languages. Plan for today. Now our picture looks like. Any questions? Before We Start The Pumping Lemma Any questions? The Lemma & Decision/ Languages Future Exam Question What is a language? What is a class of languages? Context Free Languages Context Free Languages(CFL)

More information

Lecture Notes on Discrete Mathematics. October 15, 2018 DRAFT

Lecture Notes on Discrete Mathematics. October 15, 2018 DRAFT Lecture Notes on Discrete Mathematics October 15, 2018 2 Contents 1 Basic Set Theory 5 1.1 Basic Set Theory....................................... 5 1.1.1 Union and Intersection of Sets...........................

More information

6.8 The Post Correspondence Problem

6.8 The Post Correspondence Problem 6.8. THE POST CORRESPONDENCE PROBLEM 423 6.8 The Post Correspondence Problem The Post correspondence problem (due to Emil Post) is another undecidable problem that turns out to be a very helpful tool for

More information

1. SET 10/9/2013. Discrete Mathematics Fajrian Nur Adnan, M.CS

1. SET 10/9/2013. Discrete Mathematics Fajrian Nur Adnan, M.CS 1. SET 10/9/2013 Discrete Mathematics Fajrian Nur Adnan, M.CS 1 Discrete Mathematics 1. Set and Logic 2. Relation 3. Function 4. Induction 5. Boolean Algebra and Number Theory MID 6. Graf dan Tree/Pohon

More information

Discrete Mathematical Structures: Theory and Applications

Discrete Mathematical Structures: Theory and Applications Chapter 1: Foundations: Sets, Logic, and Algorithms Discrete Mathematical Structures: Theory and Applications Learning Objectives Learn about sets Explore various operations on sets Become familiar with

More information

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS

Automata Theory. Lecture on Discussion Course of CS120. Runzhe SJTU ACM CLASS Automata Theory Lecture on Discussion Course of CS2 This Lecture is about Mathematical Models of Computation. Why Should I Care? - Ways of thinking. - Theory can drive practice. - Don t be an Instrumentalist.

More information

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Our main goal is here is to do counting using functions. For that, we

More information

Theory Bridge Exam Example Questions

Theory Bridge Exam Example Questions Theory Bridge Exam Example Questions Annotated version with some (sometimes rather sketchy) answers and notes. This is a collection of sample theory bridge exam questions. This is just to get some idea

More information

BASIC GRAPH THEORY. SUB CODE: 09MAT01 Total hours 52

BASIC GRAPH THEORY. SUB CODE: 09MAT01 Total hours 52 SYLLABUS For the course work syllabus recommended by the Guide for doing Ph.D in the Department of Mathematics, Sri Siddhartha Institute of Technology under SSU, Tumkur. BASIC GRAPH THEORY SUB CODE: 09MAT01

More information

Introduction: Computer Science is a cluster of related scientific and engineering disciplines concerned with the study and application of computations. These disciplines range from the pure and basic scientific

More information

MATH 363: Discrete Mathematics

MATH 363: Discrete Mathematics MATH 363: Discrete Mathematics Learning Objectives by topic The levels of learning for this class are classified as follows. 1. Basic Knowledge: To recall and memorize - Assess by direct questions. The

More information

} Some languages are Turing-decidable A Turing Machine will halt on all inputs (either accepting or rejecting). No infinite loops.

} Some languages are Turing-decidable A Turing Machine will halt on all inputs (either accepting or rejecting). No infinite loops. and their languages } Some languages are Turing-decidable A Turing Machine will halt on all inputs (either accepting or rejecting). No infinite loops. } Some languages are Turing-recognizable, but not

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

Discrete Mathematics for M.Sc.CS

Discrete Mathematics for M.Sc.CS Discrete Mathematics Page 1 CONTENTS UNIT-1 : SETS & RELATIONS 4-11 1. Discrete Mathematics Introduction... 4 2. Sets Set Definition... 4 Representation of a Set... 4 Cardinality of a Set... 5 Types of

More information

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203. DEPARTMENT OF COMPUTER SCIENCE ENGINEERING SUBJECT QUESTION BANK : MA6566 \ DISCRETE MATHEMATICS SEM / YEAR: V / III year CSE. UNIT I -

More information

Theory of Computation

Theory of Computation Fall 2002 (YEN) Theory of Computation Midterm Exam. Name:... I.D.#:... 1. (30 pts) True or false (mark O for true ; X for false ). (Score=Max{0, Right- 1 2 Wrong}.) (1) X... If L 1 is regular and L 2 L

More information

The Pumping Lemma and Closure Properties

The Pumping Lemma and Closure Properties The Pumping Lemma and Closure Properties Mridul Aanjaneya Stanford University July 5, 2012 Mridul Aanjaneya Automata Theory 1/ 27 Tentative Schedule HW #1: Out (07/03), Due (07/11) HW #2: Out (07/10),

More information

Regular Languages. Problem Characterize those Languages recognized by Finite Automata.

Regular Languages. Problem Characterize those Languages recognized by Finite Automata. Regular Expressions Regular Languages Fundamental Question -- Cardinality Alphabet = Σ is finite Strings = Σ is countable Languages = P(Σ ) is uncountable # Finite Automata is countable -- Q Σ +1 transition

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

Properties of Context-Free Languages. Closure Properties Decision Properties

Properties of Context-Free Languages. Closure Properties Decision Properties Properties of Context-Free Languages Closure Properties Decision Properties 1 Closure Properties of CFL s CFL s are closed under union, concatenation, and Kleene closure. Also, under reversal, homomorphisms

More information

Automata and Languages

Automata and Languages Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets

More information

Computational Models Lecture 8 1

Computational Models Lecture 8 1 Computational Models Lecture 8 1 Handout Mode Ronitt Rubinfeld and Iftach Haitner. Tel Aviv University. May 11/13, 2015 1 Based on frames by Benny Chor, Tel Aviv University, modifying frames by Maurice

More information

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK

UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) I Semester Core Course. FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION B Sc (MATHEMATICS) (2011 Admission Onwards) I Semester Core Course FOUNDATIONS OF MATHEMATICS (MODULE I & ii) QUESTION BANK 1) If A and B are two sets

More information

B B3B037 Total Pages:3

B B3B037 Total Pages:3 B B3B037 Total Pages:3 Reg. No. Name: APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH DEGREE EXAMINATION, JANUARY 2017 Course Code: CS 201 Course Name: DISCRETE COMPUTATIONAL STRUCTURES

More information

COMP1002 exam study sheet

COMP1002 exam study sheet COMP1002 exam study sheet Propositional statement: expression that has a truth value (true/false). It is a tautology if it is always true, contradiction if always false. Logic connectives: negation ( not

More information