Practice Second Midterm Exam I

Similar documents
Practice Second Midterm Exam III

CS103 Handout 21 Winter 2016 February 3, 2016 Practice Midterm Exam

CS103 Handout 12 Winter February 4, 2013 Practice Midterm Exam

Outline for Today. Binary Relations. Equivalence Relations. Partial Orders. Quick Midterm Review

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M001: Green) 6 December Points Possible

CS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3

Discrete Structures Proofwriting Checklist

CIS 375 Intro to Discrete Mathematics Exam 3 (Section M004: Blue) 6 December Points Possible

The Inductive Proof Template

Binary Relations Part Two

1 / 9. Due Friday, May 11 th at 2:30PM. There is no checkpoint problem. CS103 Handout 30 Spring 2018 May 4, 2018 Problem Set 5

Problem One: Order Relations i. What three properties does a binary relation have to have to be a partial order?

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Inverse Functions

Guide to Proofs on Discrete Structures

Outline for Today. Revisiting our first lecture with our new techniques! How do we know when two sets have the same size?

CS173 Lecture B, September 10, 2015

Mathematical Induction Part Two

NP-Completeness Part One

Checkpoint Questions Due Monday, October 1 at 2:15 PM Remaining Questions Due Friday, October 5 at 2:15 PM

NP-Completeness Part II

Announcements. CS243: Discrete Structures. Sequences, Summations, and Cardinality of Infinite Sets. More on Midterm. Midterm.

CS103 Handout 22 Fall 2012 November 30, 2012 Problem Set 9

Practice Midterm 1 UCLA: Math 61, Winter 2018

CIS 375 Intro to Discrete Mathematics Exam 2 (Section M001: Yellow) 10 November Points Possible

Math 116 First Midterm October 17, 2014

CS103 Handout 47 Spring 2018 Practice CS103 Final Exam V

Course Staff. Textbook

Midterm: CS 6375 Spring 2015 Solutions

ECS 20: Discrete Mathematics for Computer Science UC Davis Phillip Rogaway June 12, Final Exam

CS173 Lecture B, November 3, 2015

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

MODEL ANSWERS TO THE SEVENTH HOMEWORK. (b) We proved in homework six, question 2 (c) that. But we also proved homework six, question 2 (a) that

Reading 11 : Relations and Functions

University of California Berkeley CS170: Efficient Algorithms and Intractable Problems November 19, 2001 Professor Luca Trevisan. Midterm 2 Solutions


Midterm 2. DO NOT turn this page until you are instructed to do so

Read this before starting!

6c Lecture 14: May 14, 2014

CS1800 Discrete Structures Spring 2018 February CS1800 Discrete Structures Midterm Version A

Congratulations you're done with CS103 problem sets! Please evaluate this course on Axess!

NP-Completeness Part II

t-test for b Copyright 2000 Tom Malloy. All rights reserved. Regression

(Note that these points are to give a relative sense of the weights on the final exam and have no bearing on extra credit points)

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Math 51 Midterm 1 July 6, 2016

1 Counting Collections of Functions and of Subsets.

CMPSCI 611 Advanced Algorithms Midterm Exam Fall 2015

NP-Completeness Part I

Math 19 Practice Exam 2B, Winter 2011

Preparing for the CS 173 (A) Fall 2018 Midterm 1

Foundations of algebra

A Note on Turing Machine Design

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science ALGORITHMS FOR INFERENCE Fall 2014

Outline for Today. What is an Implication? Negations and their Applications. Proof by Contrapositive. Proof by Contradiction

Computer Science Foundation Exam

Nonregular Languages


COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017

NP-Completeness Part One

COMPSCI 611 Advanced Algorithms Second Midterm Exam Fall 2017

(a) We need to prove that is reflexive, symmetric and transitive. 2b + a = 3a + 3b (2a + b) = 3a + 3b 3k = 3(a + b k)

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Binary Relations Part II

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

Generating Permutations and Combinations

Proof: If (a, a, b) is a Pythagorean triple, 2a 2 = b 2 b / a = 2, which is impossible.

Math 116 Second Midterm November 13, 2017

MITOCW ocw f99-lec09_300k


Complexity Theory Part II

The Pigeonhole Principle & Functions

Essential facts about NP-completeness:

Math 115 Second Midterm November 12, 2018

Math 115 Second Midterm November 12, 2018

Automata Theory and Formal Grammars: Lecture 1

Recap from Last Time

Efficient Algorithms and Intractable Problems Spring 2016 Alessandro Chiesa and Umesh Vazirani Midterm 2

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

Page Points Score Total: 100

CS103 Handout 09 Fall 2012 October 19, 2012 Problem Set 4

Handout 2 (Correction of Handout 1 plus continued discussion/hw) Comments and Homework in Chapter 1

Exam Practice Problems

Guide to Proofs on Sets

Today s Menu. Administrativia Two Problems Cutting a Pizza Lighting Rooms

Concatenation. The concatenation of two languages L 1 and L 2

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

Outline for Today. What is an Implication? Negations and their Applications. Proof by Contrapositive. Proof by Contradiction

CSE 2001: Introduction to Theory of Computation Fall Suprakash Datta

PH 1120 Electricity and Magnetism Term B, 2009 STUDY GUIDE #2

CS1800 Discrete Structures Final Version A

Algorithms Exam TIN093 /DIT602

FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)

Qualifier: CS 6375 Machine Learning Spring 2015

Linear Algebra Prof. Dilip P Patil Department of Mathematics Indian Institute of Science, Bangalore

Graph Theory. Thomas Bloom. February 6, 2015

Complexity Theory Part Two

Class Note #20. In today s class, the following four concepts were introduced: decision

Midterm. Introduction to Machine Learning. CS 189 Spring Please do not open the exam before you are instructed to do so.

Transcription:

CS103 Handout 33 Fall 2018 November 2, 2018 Practice Second Midterm Exam I This exam is closed-book and closed-computer. You may have a double-sided, 8.5 11 sheet of notes with you when you take this exam. You may not have any other notes with you during the exam. You may not use any electronic devices (laptops, cell phones, etc.) during the course of this exam. Please write all of your solutions on this physical copy of the exam. You are welcome to cite results from the problem sets or lectures on this exam. Just tell us what you're citing and where you're citing it from. However, please do not cite results that are beyond the scope of what we've covered in CS103. On the actual exam, there'd be space here for you to write your name and sign a statement saying you abide by the Honor Code. We're not collecting or grading this exam (though you're welcome to step outside and chat with us about it when you're done!) and this exam doesn't provide any extra credit, so we've opted to skip that boilerplate. You have three hours to complete this practice midterm. There are 36 total points. This practice midterm is purely optional and will not directly impact your grade in CS103, but we hope that you find it to be a useful way to prepare for the exam. You may find it useful to read through all the questions to get a sense of what this practice midterm contains before you begin. Question Points (1) Binary Relations / 10 (2) Functions / 8 (3) Graph Theory / 8 (4) Induction / 10 / 36

2 / 9 Problem One: Binary Relations (10 Points) (Midterm Exam, Winter 2016) On Problem Set Three, you explored binary relations and formal definitions specified in first-order logic. This question explores a way of forming new binary relations and asks you to prove properties about them. In the course of doing so, we hope you ll be able to demonstrate what you ve learned about binary relations and proving results about terms defined in first-order logic. Let's suppose that we have an arbitrary strict order R over a set A. We can use R to define a new binary relation R over the set (A) as follows: XRY if This relation R is called the lift of R to (A). Y Ø x X. y Y. xry. Prove that if R is an arbitrary strict order over a set A, then R is a strict order over the set (A).

(Extra space for your answer to Problem One, if you need it.) 3 / 9

4 / 9 Problem Two: Functions (8 Points) (Midterm Exam, Fall 2015) On Problem Set Three, we introduced right inverses and asked you to prove some properties about them. In this question, we're going to ask you to revisit right inverses and prove another property about them. In the course of doing so, you'll get a chance to demonstrate what you've learned about injections, surjections, and bijections. Let's begin by refreshing some of the terminology from Problem Set Three. If f : A B is a function, then we say that a function g : B A is a right inverse of f if f(g(b)) = b for every b B. If f is a function that has a right inverse, then we say that f is right-invertible. On Problem Set Three, you proved that all right-invertible functions are surjective. Let f : A B be an arbitrary right-invertible function and let g : B A be one of its right inverses. Prove that if g is surjective, then f is a bijection.

(Extra space for your answer to Problem Two, if you need it.) 5 / 9

6 / 9 Problem Three: Graph Theory (8 Points) (Midterm Exam, Fall 2015) If you'll recall from Problem Set Four, an independent set in a graph G = (V, E) is a set I V with the following property: u I. v I. {u, v} E. Let's begin with a new definition. A dominating set in G is a set D V with the following property: v V. (v D u D. {u, v} E) For example, in the graph given below, the nodes in gray form a dominating set: This question explores the interplay between independent sets and dominating sets. i. (4 Points) Let G = (V, E) be a graph with the following property: every node in G is adjacent to at least one other node in G. Prove that if I is an independent set in G, then V I is a dominating set in G. (Notice that we're asking you to show that V I is a dominating set, not that I is a dominating set.)

7 / 9 As a refresher, a dominating set in G is a set D V with the following property: v V. (v D u D. {u, v} E) Now, let's introduce a new definition. We'll say that an independent set I in a graph G is a maximal independent set in G if there is no independent set I' in G where I I'. (Here, I I' denotes that I is a strict subset of I'). Intuitively, a maximal independent set is one that can't be enlarged to form an even bigger independent set. ii. (4 Points) Let G = (V, E) be any undirected graph. Prove that if I is a maximal independent set in G, then I is also a dominating set in G.

8 / 9 Problem Four: Induction (10 Points) (Midterm Exam, Fall 2016) This problem explores mathematical induction as applied to binary relations. We hope that it lets you show what you ve learned about how to set up and structure a proof by induction while calling back to terms defined in first-order logic. Given a binary relation R over a set A and a natural number n 1, we can define a new binary relation over A called the nth power of R, denoted R n. This relation is defined inductively as follows: (Note that R n is only defined for n 1.) xr 1 y if xry xr n+1 y if z A. (xrz zr n y). Let R be an arbitrary transitive relation over a set A. Prove, by induction, that the following statement is true for all natural numbers n 1: For any x, y A, if xr n y, then xry.

(Extra space for your answer to Problem Four, if you need it.) 9 / 9