Homework 8. Sections Notes on Matrix Multiplication

Similar documents
1. (12 points) Give a table-driven parse table for the following grammar: 1) X ax 2) X P 3) P DT 4) T P 5) T ε 7) D 1

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Canonical Forms Some questions to be explored by high school investigators William J. Martin, WPI

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr.

Equivalence relations

(c) Give a proof of or a counterexample to the following statement: (3n 2)= n(3n 1) 2

Exam EDAF August Thore Husfeldt

Lynch 2017 Page 1 of 5. Math 150, Fall 2017 Exam 2 Form A Multiple Choice

2 hours THE UNIVERSITY OF MANCHESTER. 6 June :45 11:45

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

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

Just the Factors, Ma am HAROLD B. REITER.

Introduction to Graph Theory

Ranking Score Vectors of Tournaments

HW8. Due: November 1, 2018

Divisor Problems HAROLD B. REITER.

MITOCW Lec 11 MIT 6.042J Mathematics for Computer Science, Fall 2010

MA 161 EXAM 3 GREEN November 14, You must use a #2 pencil on the scantron sheet (answer sheet).

Chapter 3: Inequalities, Lines and Circles, Introduction to Functions

Hamiltonian paths in tournaments A generalization of sorting DM19 notes fall 2006

Math.3336: Discrete Mathematics. Chapter 9 Relations

MA EXAM 3 Green April 11, You must use a #2 pencil on the mark sense sheet (answer sheet).

Chapter 9: Relations Relations

Name Algebra 1 Midterm Review Period. = 10 4x e) x ) Solve for y: a) 6x 3y = 12 b) 4y 8x = 16

IS 709/809: Computational Methods in IS Research Fall Exam Review

MA EXAM 1 Green February 8, You must use a #2 pencil on the mark sense sheet (answer sheet).

Discrete Mathematics (CS503)

Constant Acceleration

Discrete Event Systems Exam

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

Solutions to Quiz 1. Problem 1 (20 points). Suppose S(n) is a predicate on natural numbers, n, and suppose. k N S(k) S(k + 2). (1)

CS 581: Introduction to the Theory of Computation! Lecture 1!

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

Lynch, October 2016 Page 1 of 5. Math 150, Fall 2016 Exam 2 Form A Multiple Choice Sections 3A-5A

X-MA2C01-1: Partial Worked Solutions

Assignment #2 COMP 3200 Spring 2012 Prof. Stucki

Discrete Mathematics, Spring 2004 Homework 9 Sample Solutions

CMPSCI 311: Introduction to Algorithms Second Midterm Exam

Understanding and Using Variables

Exam EDAF May Thore Husfeldt

5 Flows and cuts in digraphs

Computational Models

Welcome to CSE21! Lecture B Miles Jones MWF 9-9:50pm PCYN 109. Lecture D Russell (Impagliazzo) MWF 4-4:50am Center 101

North Seattle Community College Math 084 Chapter 1 Review. Perform the operation. Write the product using exponents.

Practice Final Solutions. 1. Consider the following algorithm. Assume that n 1. line code 1 alg(n) { 2 j = 0 3 if (n = 0) { 4 return j

Exam EDAF May 2011, , Vic1. Thore Husfeldt

CIT 596 Theory of Computation Spring 2005, 212 Moore, TR PM. Homework Assignment 2

Relations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples.

1. A poset P has no chain on five elements and no antichain on five elements. Determine, with proof, the largest possible number of elements in P.

MA 113 Calculus I Fall 2016 Exam 3 Tuesday, November 15, True/False 1 T F 2 T F 3 T F 4 T F 5 T F. Name: Section:

Mathematics Sample Test Booklet Paper-Pencil Format Student Version, High School

Unit 1 A.CED.1 One step Inequalities September 22, 2015

Version A QP1-14,18-24, Calc ,App B-D

DETAILED SOLUTIONS AND CONCEPTS - SEQUENCES AND SERIES

Matrices and Vectors

Intro to Contemporary Math

3.6.1 Building Functions from Context. Warm Up

Show all work on separate grid and lined paper. Number each question clearly.

Exercises on chapter 0

Before we show how languages can be proven not regular, first, how would we show a language is regular?

Discrete Mathematics Fall 2018 Midterm Exam Prof. Callahan. Section: NetID: Multiple Choice Question (30 questions in total, 4 points each)

Diagnostic Test. Month Balance Change February $ March $ $13.10 April $1, $ May $ $ June $ $163.

Modeling Probability: Building Spinners

RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS

Precalculus Honors Problem Set: Elementary Trigonometry

Math 80a exam 1 review (Part I)

Discrete Mathematics. Spring 2017

MATH 114 Fall 2004 Solutions to practice problems for Final Exam

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

ECOM Discrete Mathematics

CMPT307: Complexity Classes: P and N P Week 13-1

Student s Printed Name:

University of Toronto MAT137Y1 Calculus! Test 2 1 December 2017 Time: 110 minutes

N-Q.2. Define appropriate quantities for the purpose of descriptive modeling.

Function Junction: Homework Examples from ACE

FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)

Packet #5: Binary Relations. Applied Discrete Mathematics

Math 164-1: Optimization Instructor: Alpár R. Mészáros

Solution: The graph is certainly not a line, since the variables are squared. Let s plot points and see what we get.

CSC 1700 Analysis of Algorithms: Warshall s and Floyd s algorithms

Motion Section 3 Acceleration

Advanced Precalculus Summer Assignment

EE595A Submodular functions, their optimization and applications Spring 2011

TRANSPORTATION & NETWORK PROBLEMS

HKUST. MATH1013 Calculus IB. Directions:

Test II Michael R. Gustafson II

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 224 Spring Test II. Michael R. Gustafson II

Algorithms: COMP3121/3821/9101/9801

Math 1320, Section 10 Quiz IV Solutions 20 Points

Elliptic Curves Spring 2013 Problem Set #5 Due: 03/19/2013

a. Do you think the function is linear or non-linear? Explain using what you know about powers of variables.

SY14-15 Algebra Exit Exam - PRACTICE Version

MA FINAL EXAM Green May 5, You must use a #2 pencil on the mark sense sheet (answer sheet).

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

Answer: Answer: 37! 3 How many five card hands are there that contain at least one club? Answer: How many one pair poker hands are there? Etc.

Two Applications of Maximum Flow

Lynch 2017 Page 1 of 5. Math 150, Fall 2017 Exam 1 Form A Multiple Choice

21-301, Spring 2019 Homework 4 Solutions

Without fully opening the exam, check that you have pages 1 through 11.

Transcription:

Homework 8 Sections 5.3-5.5 + Notes on Matrix Multiplication Please write your name and student ID number clearly at the top of your homework. If you have multiple pages, please make sure they are secured together. Please put your homework on standard 8.5x11 paper. Smaller pieces of paper tend to get lost in the pile. You should turn in your homework to the drop box located on the 3rd floor of Bren Hall, around the corner from room 3013. Problem 1 Here are two relations on the set {a, b, c, d}: S = { (b, b), (a, c), (c, d), (c, a) } R = { (b, c), (c, b), (a, d), (d, b) } Write down the set of pairs in S ο R. Problem 2 Define the following relations on the set R: R1 = { (x, y): x y } R2 = { (x, y): x > y } R3 = { (x, y): x < y } R4 = { (x, y): x = y } Use mathematical notation to describe the following relations: a. R 1 ο R 2 b. R 4 ο R 2 c. R 3 ο R 4 Problem 3 The diagram below shows a directed graph G:

a. Is (A, B) in G 2? b. Is (B, E) in G 3? c. Is (G G) in G 3? d. Is (G, G) in G 4? e. Is (B, B) in G 3? f. Is (B, D) in G 5? Problem 4 Let G be a directed graph with 10 vertices. Let A be the adjacency matrix for G 3 and B the adjacency matrix for G 4. Describe in words what the product AB represents. Problem 5 Give the adjacency matrix for the graph below. The use matrix multiplication to give the adjacency matrices for G 2, G 3, G 4,and G + G: Problem 6 Draw a picture of G+ for each of the digraphs below:

a. G 1 b. G 2 c. G 3 Problem 7 Consider a digraph G in which each vertex has in-degree at least one. Suppose that the relation defined by the edges of G is symmetric. Is G+ reflexive? Why or why not?

Problem 8 Below is a Hasse diagram for a partial order. a. Name the minimal elements. b. Name the maximal elements. c. Which of the following pairs are comparable? (A, D), (B, E), (G, F), (D, B), (C, F), (C, E) Problem 9 Draw a Hasse diagram for the following relation on the set A = {a, b, c, d, e, f}. R = {(b, e), (b, d), (c, a), (c, f), (a, f), (a, a), (b, b), (c, c), (d, d), (e, e), (f, f)}. Problem 10 For each relation defined below, indicate whether the relation is a partial order or strict order or neither. If it is neither, indicate which property is violated. In the case that it is a partial order or a strict order, indicate whether it is also a total order. Note that in some cases "not necessarily" can be a correct answer. a. The domain is the set of all positive integers. a is related to b if b = a 3n, for some positive integer n. b. The domain is the power set of a finite set. X is related to Y if X-Y is not empty. c. The domain is the set of all words in the Engilsh language (as defined by, say, Webster's dictionary). Word x is related to word y if x appears before y in alphabetical order. d. The domain is the set of all words in the Engilsh language (as defined by, say, Webster's dictionary). Word x is related to word y if x appears as a substring of y. For example, "ion" is related to the word "companions" because the letters i-o-n appear in order in the word "companions". e. The domain is the set of all students in a class. Student x is related to student y if x knows student y's phone number.

f. The domain is the set of all cell phone towers in a network. Two towers can communicate if they are within a distance of three miles from each other. x is related to y, if x can send information to y through a path of communication links. g. The domain is the set of members of a chess club. x is related to y if x has ever beaten y in a game of chess. Problem 11 Give two different topological sorts for the digraph below: Problem 12 Given the graph below, Which orderings of the vertices are topological sorts for the graph? a. b, e, c, g, f, a, d b. b, g, f, c, e, a, d c. b, e, g, c, f, d, a d. b, e, c, g, a, f, d Problem 13 Below is a set of required courses for a degree. The directed acyclic graph shows the prerequisite structure for the courses.

Your job is to devise an academic plan for a student. An academic plan is a set of courses for the student to take in each quarter. In each case, you need to devise an academic plan which respects the prerequisites and takes the fewest number of quarters. You can assume that every course is offered in every quarter. a. Devise an academic plan for the student if he can only take one course per quarter. b. Devise an academic plan for the student if he can take up to two courses per quarter. c. Devise an academic plan for the student if he can take up to three courses per quarter. d. What's the fewest number of quarters the degree will take if the student can take an unlimited number of courses per quarter? Problem 14 Which of the following graphs are acylic? a. DAG F a. DAG G

a. DAG H