Tribhuvan University Institute of Science and Technology Micro Syllabus

Similar documents
Packet #1: Logic & Proofs. Applied Discrete Mathematics

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

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

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Propositional Logic. Spring Propositional Logic Spring / 32

1 The Foundation: Logic and Proofs

1 The Foundation: Logic and Proofs

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Boolean Algebra and Proof. Notes. Proving Propositions. Propositional Equivalences. Notes. Notes. Notes. Notes. March 5, 2012

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

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Readings: Conjecture. Theorem. Rosen Section 1.5

Logic Overview, I. and T T T T F F F T F F F F

Chapter 4, Logic using Propositional Calculus Handout

Mat 243 Exam 1 Review

MATH 363: Discrete Mathematics

CSC Discrete Math I, Spring Propositional Logic

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

MATH1240 Definitions and Theorems

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

Automata Theory and Formal Grammars: Lecture 1

DISCRETE STRUCTURES AMIN WITNO

MAT2345 Discrete Math

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Logic and Proof. Aiichiro Nakano

PROPOSITIONAL CALCULUS

Chapter 1, Logic and Proofs (3) 1.6. Rules of Inference

The Logic of Compound Statements cont.

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

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

7.11 A proof involving composition Variation in terminology... 88

MA Discrete Mathematics

Reexam in Discrete Mathematics

software design & management Gachon University Chulyun Kim

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

MAT 243 Test 1 SOLUTIONS, FORM A

1. Prove: A full m- ary tree with i internal vertices contains n = mi + 1 vertices.

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

UNIVERSITY OF PUNE, PUNE BOARD OF STUDIES IN MATHEMATICS SYLLABUS. F.Y.BSc (Computer Science) Paper-I Discrete Mathematics First Term

Logic and Proofs. (A brief summary)

UNIVERSITY OF PUNE, PUNE. Syllabus for F.Y.B.Sc(Computer Science) Subject: MATHEMATICS (With effect from June 2013)

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

B.C.S.Part I Mathematics (Sem.- I & II) Syllabus to be implemented from June 2013 onwards.

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

COMP 2600: Formal Methods for Software Engineeing

Preliminaries. Graphs. E : set of edges (arcs) (Undirected) Graph : (i, j) = (j, i) (edges) V = {1, 2, 3, 4, 5}, E = {(1, 3), (3, 2), (2, 4)}

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Full file at

Discrete Mathematics & Mathematical Reasoning Course Overview

Intro to Logic and Proofs

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

Proofs. Introduction II. Notes. Notes. Notes. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

2.2: Logical Equivalence: The Laws of Logic

Compound Propositions

Learning Goals of CS245 Logic and Computation

Chapter 1 Elementary Logic

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

Rules Build Arguments Rules Building Arguments

NP-completeness. Chapter 34. Sergey Bereg

Rules of Inference. Arguments and Validity

Regular Languages and Finite Automata

A statement is a sentence that is definitely either true or false but not both.

HANDOUT AND SET THEORY. Ariyadi Wijaya

A. Propositional Logic

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

COMP1002 exam study sheet

Manual of Logical Style

It rains now. (true) The followings are not propositions.

Introduction to Decision Sciences Lecture 2

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

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

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

CSE 20 DISCRETE MATH. Winter

Review. Propositions, propositional operators, truth tables. Logical Equivalences. Tautologies & contradictions

THE LOGIC OF COMPOUND STATEMENTS

ECOM Discrete Mathematics

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

CS 2336 Discrete Mathematics

Propositional Logics and their Algebraic Equivalents

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Propositional logic (revision) & semantic entailment. p. 1/34

Natural Deduction is a method for deriving the conclusion of valid arguments expressed in the symbolism of propositional logic.

CSE 20 DISCRETE MATH. Fall

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Chapter 1, Section 1.1 Propositional Logic

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

Review 3. Andreas Klappenecker

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

CA320 - Computability & Complexity

Logic and Proofs. (A brief summary)

Logic and Propositional Calculus

Logic, Sets, and Proofs

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Transcription:

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 Hrs) Course Synopsis: This course contains the fundamental concepts of logic, reasoning and algorithms. Goal: After completing this course, the target student will gain knowledge in discrete mathematics and finite state automata in an algorithmic approach. It helps the target student in gaining fundamental and conceptual clarity in the area of logic, reasoning, algorithms, recurrence relation, and graph theory. Course Contents: Unit1. Logic, Induction and reasoning (12 hrs) 1.1 Logic Propositions, truth value, propositional logic, compound propositions, logical connectives (negation, conjunction, disjunction, exclusive OR, implication converse, contrapositive and biconditional, truth table for each), translation of English statements into logical expressions, application of logic in Boolean searches. Contradiction, tautology, contingency, logical equivalences, laws of logical equivalences (identity, domination, laws, double negation, commutative, associative, distributive, absorption and DeMorgan's), proving logical equivalences by using truth tables and laws of logical equivalence, dual of compound proposition. Predicate logic, quantifiers and quantification, universal and existential quantification, translation of quantified expressions into English sentences and vice versa, bounded and free variables, negations of quantified expression. Examples related to each concept. 1.2 Induction and Reasoning Rules of inferences (addition, simplification, conjunction, modus ponens, modus tollens, hypothetical syllogism, disjunctive syllogism and resolution), proving the validity of arguments, resolution, fallacies (affirming the conclusion, denying the hypothesis and circular reasoning), quantified statements, rules of inference for quantified statements (universal instantiation, universal generalization, existential instantiation and existential generalization).

Methods of proving theorems (trivial proof, vacuous proof, direct proof, indirect proof, proof by contradiction, proof by cases, existence proof, proof by counter example, proof by weak and strong inductions, recursive induction. Examples related to each concept. Unit 2 : Finite state Automata (10 hrs) 2.1 Deterministic Finite Automata Concept of sequential circuit design, use of Finite State Machine in sequential circuit design, Finite State Machine with output and without output, formal definition of Deterministic Finite Automata, concatenation, kleene closure, application of DFA, language of DFA, examples of languages accepted by DFA, related problems. 2.2 Non- Deterministic Finite Automata Formal definition of non-deterministic finite automata, difference between NFA and DFA, language of NFA, examples of languages accepted by NFA, Related problems in each case. 2.3 Regular Expressions Formal definition of regular expressions, regular languages, similarities in regular expressions and automatons, application of regular expressions, related exercises. 2.4 Languages and Grammars Natural language and formal language, syntax and semantics, Phrase structure grammar, derivation, Language generated by a grammar, Types of phrase structure grammar, Related problems Unit3: Recurrence Relations (8 hrs) 3.1 Recurrence Relation Introduction to recurrence relations, definition of recurrence relations, Fibonacci numbers, recursively defined sets and structures, basic concepts of combinatory (sum and product rules, the Pigeonhole principle, permutation, combination, binomial coefficients), initial condition, modeling problems with recurrence relation, related exercises. 3.2 Solution of Recurrence Relation Definition and examples of linear homogeneous recurrence relation. Verification of following theorems without proof: Theorem 1 (page 414): Let c 1 and c 2 be two real numbers. Suppose r 2 c 1 r c 2 = 0 has two distinct roots r 1 and r 2. Then the sequence {a n } is a solution of the recurrence relation a n = c 1 a n-1 + c 2 a n-2 if and only if a n = α 1 r 1 n + α 2r 2 n for n = 0, 1, 2,... where α 1 and α 2 are constants.

Theorem 2(page 416): Let c 1 and c 2 be two real numbers with c 2 0. Suppose r 2 - c 1 r - c 2 = 0 has only one root r 0. Then the sequence {a n } is a solution of the recurrence relation a n = c 1 a n-1 + c 2 a n-2 if and only if a n = α 1r 0 n + α 2nr 0 n, for n = 0, 1, 2,..., where α 1 and α 2 are constants. Theorem 3 (page417): Let c 1 and c 2... c k be k real numbers. Suppose that the characteristics equation r k c 1 r k-1... c k = 0 has k distinct roots r 1, r 2,... r k. Then the sequence {a n } is a solution of the recurrence relation a n =c 1 a n-1 +c 2 a n-2 +...c k a n-k if and only if a n = α 1r 1 n + α 2r 2 n... + α kr k n, for n= 0, 1, 2,...,where α 1, α 2,..., α k are constants. Theorem 4 (page 418): Let c 1 and c 2... c k be k real numbers. Suppose that the characteristics equation r k c 1 r k-1... c k = 0 has t distinct roots r 1, r 2,... r t with multiplicities m 1, m 2, m 3...m t respectively. Then a sequence {a n } is a solution of the recurrence relation a n =c 1 a n-1 +c 2 a n-2 +...+ c k a n-k if and only if a n = (α 1, 0 + α 1,1n+... + α 1, -1n m 1-1) r n 1 + (α 2,0+ α 2,1n+...... + α 2, -1n m 2-1 ) r n 2 +.. + α t,0 + α t,1n +... + α t -1 n m t -1 n ) r t for n = 0, 1, 2,...,where α i,j are constants for 1 i-1 Definition and examples of linear non homogeneous, associated homogeneous recurrence relations, verification of following theorems without proof: Theorem 5 (page 420): If {a (p) n } is a particular solution of the non-homogeneous recurrence relation with constant coefficients a n = c 1 a n-1 + c 2 a n-2 +... c k a n-k + F(n), then (p) every solution of the form { a n + a (h) n }, where { a (h) n } is solution of associated homogeneous recurrence relation a n =c 1 a n-1 + c 2 a n-2 +.........+ c k a n-k Theorem 6 (page 421): Suppose that {a n } satisfies the linear homogeneous recurrence relation a n = c 1 a n-1 + c 2 a n-2 +... + c k a n-k + F(n), where c 1, c 2..... c k are real numbers and F(n)= (b t n t + b t-1 n t-1 +... + b 1 n + b 0 )s n where b 0, b 1,... b t and s are real numbers. When s is not root of characteristic equation of the associated linear homogeneous recurrence relation, there is a particular solution of the form ( p t n t + p t-1 n t-1 +...+ p 1 n + p 0 )s n, where s is root of this characteristic equation and it's multiplicity is m, there is a particular solution of the form n m ( p t n t + p t-1 n t-1 +...+ p 1 n + p 0 )s n. Solution of recurrence relation to algorithm analysis, divide and conquer relations, partial order relation. Examples illustrating each. Unit 4: Graph Theory (15 hrs) 4.1 Introduction Definition of directed and undirected graphs, simple and multigraphs, pseudographs, edges, vertices, isolated and pendant vertices, adjacent vertices, incident edge, adjacent and incident matrices representations of graphs, adjacency lists, in-degree, out-degree of a vertex, regular graph, Graph isomorphism. Statement of Handshaking Theorem (Theorem 1, page 546), proof of Theorem 2, page 547, statement of Theorem 3, page 548, verifications of the theorem by examples. Examples of some special graphs (round-robin tournaments, the complete graph K n on n vertices, the cycles C n, the wheel W n, n-cube Q n ), bipartite graphs and complete bipartite graphs K m,n, applications of graphs on local-area networks, subgraph of a graph and union of graphs. Example related to all concepts.

4.2 Graph Connectivity Definitions and examples of walk and path and circus, cut vertices/edges, cut sets, connectedness in undirected and directed graphs, weakly and strongly connected graphs, underlying graphs, connected components. Proof of Theorem 1, page 570 (There is a simple path between every pair of distinct vertices of a connected undirected graphs), related exercises. 4.3 Euler and Hamiltonian Graphs Definitions and examples of Euler paths and circuits, multigraph model of the town of Koenigsberg, proof of Theorem 1, page 581 (A connected autograph has an Euler circuit if and only if each of its vertices has even degree), Algorithm 1 (page 581), Constructing Euler Circuits, examples illustrating the algorithm, proofs of Theorem 3, page 586 (a connected multigraph has an Euler path but not an Euler circuit if an only if exactly two of it's vertices has odd degree), related exercises. Definition of Hamiltonian paths and circuits, examples illustrating existence and nonexistence of Hamiltonian circuit, K n has Hamiltonian circuit whenever n application of Dirac's Theorem and Ore's Theorem, application of Hamiltonian circuit to travelling salesman problem, related exercises. 4.4 The Shortest Path Algorithm Definition of weighted graph, the Shortest Path Algorithm of Dijkstra, examples to illustrate the algorithm, idea of travelling salesman problem in connection to the shortest path algorithm, computational difficulty of the travelling salesman problem, related exercises. 4.5 Planar Graphs Definitions and examples of planner graphs, statements of the following results without proof. Theorem 1 (page 606). Let G be a connected planner simple graph with e edges and v vertices. Let r be the number of regions in a planner representation of G. Then r= e v +2. Corollary 1. If G is connected planner simple graph with e edges and v vertices. where v, then e. Corollary 2. If G has a connected planner simple graph, then it has a vertex of degree not exceeding five. Corollary 3.If G is connected planner simple graph with e edges and v vertices where v and no circuits of length 3, then e. Homeomorphism, Related examples illustrating the results in every case.

4.6 Graph Coloring Basic concept, definition of Chromatic number, the statement of Four Color Theorem (The chromatic number of a graph is no greater than four), applications of graph colorings to scheduling final exams, illustrating the concepts by examples. 4.7 Trees and Spanning Trees Definitions and examples of tree and forest, parent, child, rooted tree, ordered rooted tree ancestor, descendent, sibling, level/depth of node, depth of a tree, internal nodes, leaf nodes, subtree, binary tree. Definitions of m-ary and full m-ary tree, trees as models (computer file systems, tree-connected parallel-processors), related examples. Proofs of Theorem 1, page 633 (An undirected graph is tree if and only if there is a unique simple path between any two of its vertices ) and Theorem 2, page 638 (A tree with n vertices has n-1 edges). Statement of Theorem 3, page 639, (A full m-ary tree with i internal vertices contains n= mi+1 vertices). Verifications of the result by examples. Applications of trees (Algorithm 1, page 646, Binary Search Tree Algorithm), decision trees, Prefix codes, related examples. Definition of spanning trees, proof of Theorem 1, page 676 (a simple graph is connected if and only it has spanning tree), finding minimal spanning tree by using Kruskal's algorithm, related exercise. 4.8 Network Flow Problems Concept of network flows, proof of Maxflow and Mincut theorem, verification of the algorithms by examples. Text Books: 1. Kenneth H. Rosen, Discrete Mathematical Structures with Application to Computer Science, WCB/McGraw Hill. 2. Joe L. Mott, Abrahan Kandel and Theodore P. Baker, Discrete Mathematics for Computer Scientists and Mathematicians, Prentice-Hall of India. Reference Books: 1. R. Johnsonbaugh, Discrete mathematics, Prentical Hall Inc. 2. G. Chartand, B.R. Oller Mann, Applied and Algorithmic Graph Theory, McGraw Hill. 3. G. Birkhoff, T.C. Bartee, Modern Applied Algebra, CBS Publishers. Remarks: 1. Theory and practice should be done side by side. 2. Theory classes 4hrs and tutorial classes 2 hrs per week. 3. Recommended to use Mathematica/Matlab/Maple for testing selected exercises.