Examination paper for MA0301 Elementær diskret matematikk

Similar documents
Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Solutions to In-Class Problems Week 4, Mon.

Lecture 17 : Equivalence and Order Relations DRAFT

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

Lecture 16 : Relations and Functions DRAFT

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

136 CHAPTER 4. INDUCTION, GRAPHS AND TREES

Mathematical Induction. Lecture 10-11

Discrete Mathematics. Hans Cuypers. October 11, 2007

Decision Mathematics D1 Advanced/Advanced Subsidiary. Tuesday 5 June 2007 Afternoon Time: 1 hour 30 minutes

Zachary Monaco Georgia College Olympic Coloring: Go For The Gold

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Sum of Degrees of Vertices Theorem

Midterm Practice Problems

Graph Theory Lecture 3: Sum of Degrees Formulas, Planar Graphs, and Euler s Theorem Spring 2014 Morgan Schreffler Office: POT 902

A 2-factor in which each cycle has long length in claw-free graphs

CS 598CSC: Combinatorial Optimization Lecture date: 2/4/2010

INTRODUCTORY SET THEORY

CHAPTER 7 GENERAL PROOF SYSTEMS

Math 55: Discrete Mathematics

Reasoning and Proof Review Questions

Analysis of Algorithms, I

Mathematics for Algorithm and System Analysis

CS 103X: Discrete Structures Homework Assignment 3 Solutions

3. Mathematical Induction

Cycles in a Graph Whose Lengths Differ by One or Two

Handout #Ch7 San Skulrattanakulchai Gustavus Adolphus College Dec 6, Chapter 7: Digraphs

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Handout #1: Mathematical Reasoning

Discrete Mathematics Problems

COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS

ML for the Working Programmer

An algorithmic classification of open surfaces

SCORE SETS IN ORIENTED GRAPHS

Why? A central concept in Computer Science. Algorithms are ubiquitous.

GRAPH THEORY LECTURE 4: TREES

V. Adamchik 1. Graph Theory. Victor Adamchik. Fall of 2005

Deterministic Finite Automata

Reading 13 : Finite State Automata and Regular Expressions

Cartesian Products and Relations

Properties of Real Numbers

Total colorings of planar graphs with small maximum degree

DISCRETE MATH: LECTURE 3

On Integer Additive Set-Indexers of Graphs

Social Media Mining. Graph Essentials

On planar regular graphs degree three without Hamiltonian cycles 1

The Pointless Machine and Escape of the Clones

Introduction. Appendix D Mathematical Induction D1

Exponential time algorithms for graph coloring

Indiana State Core Curriculum Standards updated 2009 Algebra I

CS510 Software Engineering

Just the Factors, Ma am

Answer: (a) Since we cannot repeat men on the committee, and the order we select them in does not matter, ( )

This chapter is all about cardinality of sets. At first this looks like a

AFF 808. Sub. Code 4BIT1C1. B.Sc. DEGREE EXAMINATION, NOVEMBER First Semester. Information Technology

Likewise, we have contradictions: formulas that can only be false, e.g. (p p).

Vocabulary. Term Page Definition Clarifying Example. biconditional statement. conclusion. conditional statement. conjecture.

= = 3 4, Now assume that P (k) is true for some fixed k 2. This means that

A first step towards modeling semistructured data in hybrid multimodal logic

7 Relations and Functions

Catalan Numbers. Thomas A. Dowling, Department of Mathematics, Ohio State Uni- versity.

Introduction to Graph Theory

SECTION 10-2 Mathematical Induction

P. Jeyanthi and N. Angel Benseera

Curriculum Map by Block Geometry Mapping for Math Block Testing August 20 to August 24 Review concepts from previous grades.

Every tree contains a large induced subgraph with all degrees odd

Labeling outerplanar graphs with maximum degree three

SEQUENCES OF MAXIMAL DEGREE VERTICES IN GRAPHS. Nickolay Khadzhiivanov, Nedyalko Nenov

8.1 Min Degree Spanning Tree

Removing Even Crossings

LAKE ELSINORE UNIFIED SCHOOL DISTRICT

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

Notes on NP Completeness

The Union-Find Problem Kruskal s algorithm for finding an MST presented us with a problem in data-structure design. As we looked at each edge,

8 Divisibility and prime numbers

Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.

An inequality for the group chromatic number of a graph

Sample Induction Proofs

Topological Treatment of Platonic, Archimedean, and Related Polyhedra

6.3 Conditional Probability and Independence

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

Math 3000 Section 003 Intro to Abstract Math Homework 2

OHJ-2306 Introduction to Theoretical Computer Science, Fall

Full and Complete Binary Trees

6.080/6.089 GITCS Feb 12, Lecture 3

Removing Partial Inconsistency in Valuation- Based Systems*

Graphs without proper subgraphs of minimum degree 3 and short cycles

each college c i C has a capacity q i - the maximum number of students it will admit

Computer Science Department. Technion - IIT, Haifa, Israel. Itai and Rodeh [IR] have proved that for any 2-connected graph G and any vertex s G there

The Independence Number in Graphs of Maximum Degree Three

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Complexity Theory. IE 661: Scheduling Theory Fall 2003 Satyaki Ghosh Dastidar

Section IV.1: Recursive Algorithms and Recursion Trees

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

On end degrees and infinite cycles in locally finite graphs

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Lecture 1: Course overview, circuits, and formulas

The Open University s repository of research publications and other research outputs

Maximum Hitting Time for Random Walks on Graphs. Graham Brightwell, Cambridge University Peter Winkler*, Emory University

Transcription:

Department of Mathematical Sciences Examination paper for MA0301 Elementær diskret matematikk Academic contact during examination: Iris Marjan Smit a, Sverre Olaf Smalø b Phone: a 9285 0781, b 7359 1750 Examination date: 26-05-2016 Examination time (from to): 09:00 13:00 Permitted examination support material: D: No printed or hand-written support material is allowed. A specific basic calculator is allowed. Language: English Number of pages: 7 Number of pages enclosed: 0 Checked by: Date Signature

MA0301 Elementær diskret matematikk 26. mai 2016 Page 1 of 7 Problem 1 a) How many non-negative integer solutions does the equation have? x 1 + x 2 + x 3 + x 4 + x 5 = 21 b) How many of these solutions satisfy the additional requirements x 2 2 and x 3 3? c) How many of the solutions to (a) satisfy x 4 4 as an additional requirement? Solution 1 a) There are ( ) ( ) 21+5 1 21 = 25 21 non-negative integer solutions to this equation. b) There are ( ) ( ) 16+5 1 16 = 20 16 solutions to (a) that also satisfy x2 2 and x 3 3. c) There are ( ) ( ) 16+5 1 16 = 20 16 solution to (a) that satisfy x4 5. Therefore, there are ( ) ( ) 25 21 20 16 solutions to (a) that satisfy x4 4. Problem 2 a) Determine whether or not the following statement is a tautology, by either proving it or giving a counterexample: ( (p q) (r q) ) (p r) b) Negate the statement given in (a). (In your final answer, the symbol may only appear directly in front of p, q and/or r.) c) Establish the validity of the following argument using the rules of inference p q r q r p

Page 2 of 7 MA0301 Elementær diskret matematikk 26. mai 2016 Solution 2 a) Using the truth values p = 0, q = 0, r = 0, we find that (p q) is true and (r q) is true. Therefore ( (p q) (r q) ) is true. On the other hand, the statement p r is false, and hence ( (p q) (r q) ) (p r) is false. Therefore, the statement is not a tautology. b) We negate the statement and work the negation through the brackets: ( ((p ) ) q) (r q) (p r) ( (p q) (r q) ) (p r) ( (p q) (r q) ) ( p r) c) Using the rules of inference, we find that: (1) p q premise (2) r q premise (3) r premise (4) q (2) + (3) + rule of disjunctive syllogism (5) p (1) + (4) + modus tollens Problem 3 Let r R with r 1. Use induction to prove that n i=0 r i = n+1 for all n Z +. Solution 3 We prove the formula by induction. Basic step: For n = 1 we have 1 r i = r 0 + r 1 = 1 + r i=0 and 1+1 = 2 (1 + r)() = Therefore, the formula holds for n = 1. = 1 + r.

MA0301 Elementær diskret matematikk 26. mai 2016 Page 3 of 7 Now let n Z + be arbitrary, and assume as an Induction Hypothesis that n i=0 r i = n+1. Induction Step: Using the induction hypothesis, we now prove the formula for n + 1. We have ( n+1 n ) r i = r i + r n+1 i=0 i=0 = n+1 = n+1 = n+1 + r n+1 by the induction hypothesis + ()rn+1 + rn+ n+2 = n+1 + r n+ n+2 = n+2 = (n+1)+1 This shows that the formula also holds for n + 1, which completes our induction proof. The formula must therefore be valid for all n Z +. Problem 4 a) Give 6 different strings in the language {00}{101} {011}{0} {01} b) Construct a finite state machine that recognises this language (with {0, 1} as input and output alphabet). Solution 4 a) There are many possible answers to this question. For example, take the strings 00, 00101, 00101101, 01101, 011001, 0110001. b) The Finite State Machine drawn in figure 1 recognises this language. There are also other valid solutions possible.

Page 4 of 7 MA0301 Elementær diskret matematikk 26. mai 2016 Figure 1: This figure belongs to Solution 4 Problem 5 Figure 2: This figure belongs to Oppgave 5 a) Find a rooted spanning tree with root a for this graph using a Breadth First Search Algorithm and vertex order a,b,c,d,e,f,g,h. b) Study the graph in Figure 1 and determine whether or not is it planar. Prove your answer. c) Does the graph in Figure 1 have an Euler Trail? Prove your answer.

MA0301 Elementær diskret matematikk 26. mai 2016 Page 5 of 7 Solution 5 a) We execute the Breadth First Search Algorithm with root a and vertex order a,b,c,d,e,f,g,h. We start the tree with only vertex a, and queue Q = (a). Next, we add vertices b, d and e to our tree with edges {a, b}, {a, d} and {a, e}. Our new queue will be Q = (b, d, e). We will now add c, f and g to our tree with edges {b, c}, {b, f} and {b, g}. Our new queue will be Q = (d, e, c, f, g). Finally, we add vertex h to our tree with edge {d, h}. Our queue will become Q = (e, c, f, g, h). Visiting the vertices left in the queue will not give us any new vertices to add to our tree, since all vertices have already been added. See figure 3 for the BFS spanning tree. Figure 3: This figure belongs to Solution 5a b) This graph is not planar. Consider the subgraph drawn in Figure 4, obtained by removing edges {h, f}, {b, f}, {a, b}, {a, d}, {a, e} and vertex a. This graph can be obtained from K 5 by elementary subdivisions: draw K 5 and label its vertices b, c, e, g, h and apply an elementary subdivision to edges {e, g} and {b, h}. We see that our original graph contains a subgraph which is homeomorphic to K 5. Therefore, it cannot be planar. c) Notice that vertices d and a have degree 3, and vertices e and h have degree 5. Since the graph has more than two vertices of odd degree, it cannot have an Euler Trail.

Page 6 of 7 MA0301 Elementær diskret matematikk 26. mai 2016 Figure 4: This figure belongs to Solution 5b Problem 6 Let A be the set of all functions from Z + to {1, 2, 3}. a) Give the three properties of an equivalence relation. You may give the names of these properties, or their definitions. b) Define a relation R 1 on A by setting fr 1 g if and only if f(5) = g(5). Prove that R 1 is an equivalence relation. c) Define a relation R 2 on A by setting fr 2 g if and only if there exists an n Z + such that f(n) = g(n). Prove that R 2 is not an equivalence relation. Solution 6 a) An equivalence relation R on a set A has to be reflexive ( a A : ara) symmetric ( a, b A : if arb, then bra), and transitive ( a, b, c A : if arb and brc, then arc). b) We need to prove that R 1 is reflexive, symmetric and transitive. Reflexivity: If f A, then naturally we have f(5) = f(5). Hence fr 1 f. This proves reflexivity. Symmetry: If f, g A and fr 1 g, then f(5) = g(5). This implies that g(5) = f(5), so gr 1 f. Therefore, the relation is symmetric.

MA0301 Elementær diskret matematikk 26. mai 2016 Page 7 of 7 Transitivity: If f, g, h A with fr 1 g and gr 1 h, then we know that f(5) = g(5) and g(5) = h(5). This implies that f(5) = h(5), so fr 1 h. This proves transitivity. Since all three properties are satisfied, R 1 is an equivalence relation. c) Define the function f : Z + {1, 2, 3} by f(n) = 1 for all n Z +. Define the function g : Z + {1, 2, 3} by g(1) = 1 and g(n) = 2 for all n 2 with n Z +. Define the function h: Z + {1, 2, 3} by h(n) = 2 for all n Z +. Then f, g, and h are elements of A. Since f(1) = 1 = g(1), we have fr 2 g. And as g(2) = h(2), we have gr 2 h. Now note that for all n Z + we have f(n) = 1 2 = h(n), which implies that f R 2 h. Therefore, the relation R 2 is not transitive. This means that it cannot be an equivalence relation.