1 Greedy Graph Algorithms

Size: px
Start display at page:

Download "1 Greedy Graph Algorithms"

Transcription

1 +//+ Algorithms & Data Structures (DL) Exam of 7 December 5 Instructions: This is a multiple-choice exam, to save ou the time of tiding up the presentation of our answers. There is exactl one correct answer per question. You can keep the question sheets and should hand in onl the answer sheet at the end: ou are not expected to explain our answers. Normall, a teacher will attend this exam from 5: to :. Also read the instructions on the answer sheet before starting. Greed Graph Algorithms Consider the following connected weighted graph, provided twice for our convenience: t s u t s u v w v w Recall that Prim s minimum spanning tree algorithm and Dijkstra s single-source shortest paths algorithm both take (V ) T Extract-Min + (E) T Decrease-Ke time on a graph with vertex set V and edge/arc set E. Answer the following questions after performing both algorithms (all edges being bidirectional when seen as arcs) starting from vertex s and, when dequeueing, breaking ties b choosing the vertex that has had the minimum priorit for the longest time: Question : What is the sum of the priorities of vertex v after Prim s nd and rd iterations? A B C D E 8 Question : What is the sum of the priorities of vertex v after Dijkstra s nd and rd iterations? A 9 B C D E Answer the following general questions about Prim s and Dijkstra s algorithms for a graph with vertex set V and edge/arc set E: Question : Under what condition on V and E should one implement the min-priorit queue of these algorithms with a binar heap or a binomial heap, rather than with an arra, indexed b the vertices, which is generall worse? C if E = V B if E < V / lg V D if E > V / lg V

2 +//59+ Question : Assuming distinct weights, under what condition on V and E does the edge with the lowest weight belong to a minimum spanning tree? B if E < V / lg V C if E > V D if E > V / lg V Question 5: Assuming distinct weights and at least three edges, under what condition on V and E does the edge with the highest weight belong to a minimum spanning tree? B if E < V / lg V C if E = V D if E > V / lg V Question : Under what condition do the shortest paths computed b Dijkstra s algorithm form a spanning tree? B if there is optimal substructure C if the graph is strongl connected D if all arc weights satisf the triangle inequalit Dnamic Programming Given n objects of n volumes v,...,v n and prices p,...,p n, as well as a bag of n volume V, we would like to determine the total price of the most expensive subset of the given objects that fits into the given bag. All numbers are positive integers. For example, given four objects of volumes,,, and prices,,, 5 respectivel, the most expensive subset fitting into a bag of volume V = 5 includes all except the third object; it has total volume + + = 5 apple V and total price = 7. Consider the following recurrence for a quantit T [i, v], parameterised b,,..., 5, and : 8 >< if T [i, v] = T [i, ] if and v< >: (T [i, ], T[i, ]+ 5 ) if and v Question 7: If T [n, V ] is returned b a correct algorithm for the specification above, then the integer T [i, v], with apple i apple n and apple v apple V, denotes the total price of... A... the most expensive subset of exactl i objects that fits into a bag of volume v. B... the most expensive subset of at least i objects that fits into a bag of volume v. C... the most expensive subset of at most i objects that fits into a bag of volume v. D... the most expensive subset of the first i objects that fits into a bag of volume v. E... the most expensive subset of i random objects that fits into a bag of volume v. Question 8: For the instance in the example above, what is the sum T [, ] + T [, ]? A B C 5 D 5 E other Question 9: What is the logical condition? A i = B v = C v = V D v = i E v + i =

3 +//58+ Question : What is the sum of the numeric expressions,..., 5? A v v i + p i C v + p i B v v i + p i D v + p i Question : What is the two-argument operator E v + v i + p i (written in infix form above)? A + B C D max E min Question : What is an ordering of the indices i and v under which the elements T [i, v] of the arra T can be filled without performing an redundant computations? A an order B b lexicographicall increasing hv, ii C b lexicographicall decreasing hi, vi D b lexicographicall increasing h E b lexicographicall increasing h i, vi v, ii We sa that ha, bi is lexicographicall smaller than hc, di if either a<cor a = c ^ b<d. Disjoint Sets Consider the forest on the right, representing disjoint sets for the integers to 8. Assume the ranks of the trees initiall are equal to their heights, measured as numbers of arcs. Assume the Find-Set operation performs path compression. Assume the Union operation follows the union-b-rank strateg. (Ignore the fact that this forest cannot be obtained using this Union operation when starting from singleton sets.) Answer the following questions, continuing at each question from the result of performing the operation of the previous question: Question : Which element is the parent of element after Union(, )? A is a root B C D E another element Question : What is the rank of the tree with element after Union(, )? A B C D E another value Question 5: Which element is the parent of element after Find-Set()? A is a root B C D 5 E another element Question : What is the rank of the tree with element 8 after Find-Set(8)? A B C D E another value

4 +//57+ P versus NP Complete the two sentences and answer the next question, under current ledge: Question 7: A decision problem is in NP if and onl if its answer takes... A... non-polnomial time to check. B... non-polnomial time to compute. C... polnomial time to check. D... polnomial time to compute. E... possibl forever to compute. Question 8: A decision problem is NP-hard if and onl if... A... it can be reduced in polnomial time to ever problem in NP. B... it can be reduced in polnomial time to ever NP-complete problem. C... ever problem in P can be reduced in polnomial time to it. D... ever problem in NP can be reduced in polnomial time to it. E... ever NP-complete problem can be reduced in polnomial time to it. Question 9: When can all instances of an NP-complete problem be solved in poltime? B if and onl if P ( NP C if and onl if P = NP D never Give the smallest complexit class, as currentl n, for each of the next problems: Question : The decision version of the problem of Section, when the bag volume V must be exactl reached and the notion of price is dropped. Question : The problem of determining the existence of a flow of at least a given value within a flow network with rational capacities. Question : The problem of determining the existence of an occurrence of a given string within a given longer string. Question : The problem of determining the existence of a plan for a robotic arm to drill holes at given points on a computer chip and then to return to its starting point, all this within a given amount of time.

5 Corrected Answer Sheet Exam DL of 7 December 5 Instructions: Do not alter the drawing above. Using a dark colour, fill in entirel at most one answer box (A to E) per question: we will use an optical character recognition (OCR) sstem that ignores crosses, circles, etc. Transfer our answers from the question sheets to this answer sheet just before handing in; if an answer becomes ambiguous to an OCR sstem, then please request another answer sheet. Ever correct answer gives points. Ever multiple answer or incorrect answer gives points. Partial credit of point ma be given in exceptional circumstances. If ou think a question is unclear or wrong, then mark its number with a? on this sheet, and explain on the backside of this sheet what our di cult with the question is and what additional assumption underlies the candidate answer that ou have chosen or the new answer that ou have indicated. Grading: Your grade is as follows, when our mark is e points: Greed Graph Algorithms Disjoint Sets Grade Condition 5 8 apple e apple apple e apple 7 apple e apple 9 U apple e apple Question : A B C D E Question : A B C D E Question : A B C D E Question : A B C D E Question 5: A B C D E Question : A B C D E Dnamic Programming Question 7: A B C D E Question 8: A B C D E Question 9: A B C D E Question : A B C D E Question : A B C D E Question : A B C D E Question : A B C D E Question : A B C D E Question 5: A B C D E Question : A B C D E P versus NP Question 7: A B C D E Question 8: A B C D E Question 9: A B C D E Question : A B C D E Question : A B C D E Question : A B C D E Question : A B C D E Again: Please use a dark colour to fill in our chosen boxes entirel! Your anonmous exam code:

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005

CSCE 750 Final Exam Answer Key Wednesday December 7, 2005 CSCE 750 Final Exam Answer Key Wednesday December 7, 2005 Do all problems. Put your answers on blank paper or in a test booklet. There are 00 points total in the exam. You have 80 minutes. Please note

More information

FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016)

FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016) FINAL EXAM PRACTICE PROBLEMS CMSC 451 (Spring 2016) The final exam will be on Thursday, May 12, from 8:00 10:00 am, at our regular class location (CSI 2117). It will be closed-book and closed-notes, except

More information

4. How to prove a problem is NPC

4. How to prove a problem is NPC The reducibility relation T is transitive, i.e, A T B and B T C imply A T C Therefore, to prove that a problem A is NPC: (1) show that A NP (2) choose some known NPC problem B define a polynomial transformation

More information

CMPSCI 311: Introduction to Algorithms Second Midterm Exam

CMPSCI 311: Introduction to Algorithms Second Midterm Exam CMPSCI 311: Introduction to Algorithms Second Midterm Exam April 11, 2018. Name: ID: Instructions: Answer the questions directly on the exam pages. Show all your work for each question. Providing more

More information

Examination paper for TDT4120 Algorithms and Data Structures

Examination paper for TDT4120 Algorithms and Data Structures Examination paper for TDT4120 Algorithms and Data Structures Academic contact during examination Magnus Lie Hetland Phone 91851949 Examination date December 7, 2013 Examination time (from to) 0900 1300

More information

Solutions to the Math 1051 Sample Final Exam (from Spring 2003) Page 1

Solutions to the Math 1051 Sample Final Exam (from Spring 2003) Page 1 Solutions to the Math 0 Sample Final Eam (from Spring 00) Page Part : Multiple Choice Questions. Here ou work out the problems and then select the answer that matches our answer. No partial credit is given

More information

CSE 421 Introduction to Algorithms Final Exam Winter 2005

CSE 421 Introduction to Algorithms Final Exam Winter 2005 NAME: CSE 421 Introduction to Algorithms Final Exam Winter 2005 P. Beame 14 March 2005 DIRECTIONS: Answer the problems on the exam paper. Open book. Open notes. If you need extra space use the back of

More information

CS325: Analysis of Algorithms, Fall Final Exam

CS325: Analysis of Algorithms, Fall Final Exam CS: Analysis of Algorithms, Fall 0 Final Exam I don t know policy: you may write I don t know and nothing else to answer a question and receive percent of the total points for that problem whereas a completely

More information

Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths

Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths Matroids Shortest Paths Discrete Optimization 2010 Lecture 2 Matroids & Shortest Paths Marc Uetz University of Twente m.uetz@utwente.nl Lecture 2: sheet 1 / 25 Marc Uetz Discrete Optimization Matroids

More information

Module 3, Section 4 Analytic Geometry II

Module 3, Section 4 Analytic Geometry II Principles of Mathematics 11 Section, Introduction 01 Introduction, Section Analtic Geometr II As the lesson titles show, this section etends what ou have learned about Analtic Geometr to several related

More information

Course 15 Numbers and Their Properties

Course 15 Numbers and Their Properties Course Numbers and Their Properties KEY Module: Objective: Rules for Eponents and Radicals To practice appling rules for eponents when the eponents are rational numbers Name: Date: Fill in the blanks.

More information

Review Topics for MATH 1400 Elements of Calculus Table of Contents

Review Topics for MATH 1400 Elements of Calculus Table of Contents Math 1400 - Mano Table of Contents - Review - page 1 of 2 Review Topics for MATH 1400 Elements of Calculus Table of Contents MATH 1400 Elements of Calculus is one of the Marquette Core Courses for Mathematical

More information

University of Toronto Department of Electrical and Computer Engineering. Final Examination. ECE 345 Algorithms and Data Structures Fall 2016

University of Toronto Department of Electrical and Computer Engineering. Final Examination. ECE 345 Algorithms and Data Structures Fall 2016 University of Toronto Department of Electrical and Computer Engineering Final Examination ECE 345 Algorithms and Data Structures Fall 2016 Print your first name, last name, UTORid, and student number neatly

More information

Chapter 6. Self-Adjusting Data Structures

Chapter 6. Self-Adjusting Data Structures Chapter 6 Self-Adjusting Data Structures Chapter 5 describes a data structure that is able to achieve an epected quer time that is proportional to the entrop of the quer distribution. The most interesting

More information

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60

McGill University Faculty of Science. Solutions to Practice Final Examination Math 240 Discrete Structures 1. Time: 3 hours Marked out of 60 McGill University Faculty of Science Solutions to Practice Final Examination Math 40 Discrete Structures Time: hours Marked out of 60 Question. [6] Prove that the statement (p q) (q r) (p r) is a contradiction

More information

Decision Mathematics D1

Decision Mathematics D1 Pearson Edexcel GCE Decision Mathematics D1 Advanced/Advanced Subsidiary Friday 16 June 2017 Afternoon Time: 1 hour 30 minutes Paper Reference 6689/01 You must have: D1 Answer Book Candidates may use any

More information

Algorithm Design Strategies V

Algorithm Design Strategies V Algorithm Design Strategies V Joaquim Madeira Version 0.0 October 2016 U. Aveiro, October 2016 1 Overview The 0-1 Knapsack Problem Revisited The Fractional Knapsack Problem Greedy Algorithms Example Coin

More information

Randomized Algorithms

Randomized Algorithms Randomized Algorithms Prof. Tapio Elomaa tapio.elomaa@tut.fi Course Basics A new 4 credit unit course Part of Theoretical Computer Science courses at the Department of Mathematics There will be 4 hours

More information

NATIONAL UNIVERSITY OF SINGAPORE CS3230 DESIGN AND ANALYSIS OF ALGORITHMS SEMESTER II: Time Allowed 2 Hours

NATIONAL UNIVERSITY OF SINGAPORE CS3230 DESIGN AND ANALYSIS OF ALGORITHMS SEMESTER II: Time Allowed 2 Hours NATIONAL UNIVERSITY OF SINGAPORE CS3230 DESIGN AND ANALYSIS OF ALGORITHMS SEMESTER II: 2017 2018 Time Allowed 2 Hours INSTRUCTIONS TO STUDENTS 1. This assessment consists of Eight (8) questions and comprises

More information

Algorithms Exam TIN093 /DIT602

Algorithms Exam TIN093 /DIT602 Algorithms Exam TIN093 /DIT602 Course: Algorithms Course code: TIN 093, TIN 092 (CTH), DIT 602 (GU) Date, time: 21st October 2017, 14:00 18:00 Building: SBM Responsible teacher: Peter Damaschke, Tel. 5405

More information

9.1 HW (3+3+8 points) (Knapsack decision problem NP-complete)

9.1 HW (3+3+8 points) (Knapsack decision problem NP-complete) Algorithms CMSC-27200 http://alg15.cs.uchicago.edu Homework set #9. Due Wednesday, March 11, 2015 Posted 3-5. Updated 3-6 12:15am. Problem 9.6 added 3-7 1:15pm. Read the homework instructions on the website.

More information

MATH 0312 FINAL EXAM REVIEW ITEMS

MATH 0312 FINAL EXAM REVIEW ITEMS MATH 012 FINAL EXAM REVIEW ITEMS Name The items on this review are representative of the items that ou might see on our course final eam. No formul sheets are allowed and calculators are not allowed on

More information

3 Polynomial and Rational Functions

3 Polynomial and Rational Functions 3 Polnomial and Rational Functions 3.1 Quadratic Functions and Models 3.2 Polnomial Functions and Their Graphs 3.3 Dividing Polnomials 3.4 Real Zeros of Polnomials 3.5 Comple Zeros and the Fundamental

More information

NAME: Be clear and concise. You may use the number of points assigned toeach problem as a rough

NAME: Be clear and concise. You may use the number of points assigned toeach problem as a rough CS170 Second Midterm 28 Oct 1999 NAME: TA: Be clear and concise. You may use the number of points assigned toeach problem as a rough estimate for the number of minutes you want to allocate to the problem.

More information

Learning Goals. College of Charleston Department of Mathematics Math 101: College Algebra Final Exam Review Problems 1

Learning Goals. College of Charleston Department of Mathematics Math 101: College Algebra Final Exam Review Problems 1 College of Charleston Department of Mathematics Math 0: College Algebra Final Eam Review Problems Learning Goals (AL-) Arithmetic of Real and Comple Numbers: I can classif numbers as natural, integer,

More information

TO THE STUDENT: To best prepare for Test 4, do all the problems on separate paper. The answers are given at the end of the review sheet.

TO THE STUDENT: To best prepare for Test 4, do all the problems on separate paper. The answers are given at the end of the review sheet. MATH TEST 4 REVIEW TO THE STUDENT: To best prepare for Test 4, do all the problems on separate paper. The answers are given at the end of the review sheet. PART NON-CALCULATOR DIRECTIONS: The problems

More information

6. This sum can be rewritten as 4( ). We then recall the formula n =

6. This sum can be rewritten as 4( ). We then recall the formula n = . c = 9b = 3 b = 3 a 3 = a = = 6.. (3,, ) = 3 + + 3 = 9 + + 3 = 6 6. 3. We see that this is equal to. 3 = ( +.) 3. Using the fact that (x + ) 3 = x 3 + 3x + 3x + and replacing x with., we find that. 3

More information

C) x m A) 260 sq. m B) 26 sq. m C) 40 sq. m D) 364 sq. m. 7) x x - (6x + 24) = -4 A) 0 B) all real numbers C) 4 D) no solution

C) x m A) 260 sq. m B) 26 sq. m C) 40 sq. m D) 364 sq. m. 7) x x - (6x + 24) = -4 A) 0 B) all real numbers C) 4 D) no solution Sample Departmental Final - Math 46 Perform the indicated operation. Simplif if possible. 1) 7 - - 2-2 + 3 2 - A) + - 2 B) - + 4-2 C) + 4-2 D) - + - 2 Solve the problem. 2) The sum of a number and its

More information

California. Performance Indicator. Form B Teacher s Guide and Answer Key. Mathematics. Continental Press

California. Performance Indicator. Form B Teacher s Guide and Answer Key. Mathematics. Continental Press California Performance Indicator Mathematics Form B Teacher s Guide and Answer Key Continental Press Contents Introduction to California Mathematics Performance Indicators........ 3 Answer Key Section

More information

PreCalculus. Ocean Township High School Mathematics Department

PreCalculus. Ocean Township High School Mathematics Department PreCalculus Summer Assignment Name Period Date Ocean Township High School Mathematics Department These are important topics from previous courses that ou must be comfortable doing before ou can be successful

More information

AQA Higher Practice paper (calculator 2)

AQA Higher Practice paper (calculator 2) AQA Higher Practice paper (calculator 2) Higher Tier The maimum mark for this paper is 8. The marks for each question are shown in brackets. Time: 1 hour 3 minutes 1 One billion in the UK is one thousand

More information

2, find c in terms of k. x

2, find c in terms of k. x 1. (a) Work out (i) 8 0.. (ii) 5 2 1 (iii) 27 3. 1 (iv) 252.. (4) (b) Given that x = 2 k and 4 c 2, find c in terms of k. x c =. (1) (Total 5 marks) 2. Solve the equation 7 1 4 x 2 x 1 (Total 7 marks)

More information

Decision Mathematics D1

Decision Mathematics D1 Pearson Edexcel International Advanced Level Decision Mathematics D1 Advanced/Advanced Subsidiary Friday 17 June 016 Afternoon Time: 1 hour 30 minutes Paper Reference WDM01/01 You must have: D1 Answer

More information

Exam in Discrete Mathematics

Exam in Discrete Mathematics Exam in Discrete Mathematics First Year at the Faculty of Engineering and Science and the Technical Faculty of IT and Design June 4th, 018, 9.00-1.00 This exam consists of 11 numbered pages with 14 problems.

More information

University of New Mexico Department of Computer Science. Final Examination. CS 561 Data Structures and Algorithms Fall, 2006

University of New Mexico Department of Computer Science. Final Examination. CS 561 Data Structures and Algorithms Fall, 2006 University of New Mexico Department of Computer Science Final Examination CS 561 Data Structures and Algorithms Fall, 2006 Name: Email: Print your name and email, neatly in the space provided above; print

More information

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

IS 709/809: Computational Methods in IS Research Fall Exam Review IS 709/809: Computational Methods in IS Research Fall 2017 Exam Review Nirmalya Roy Department of Information Systems University of Maryland Baltimore County www.umbc.edu Exam When: Tuesday (11/28) 7:10pm

More information

Math 10850, fall 2017, University of Notre Dame

Math 10850, fall 2017, University of Notre Dame Math 10850, fall 2017, University of Notre Dame Notes on first exam September 22, 2017 The key facts The first midterm will be on Thursday, September 28, 6.15pm-7.45pm in Hayes-Healy 127. What you need

More information

Lecture 1 : Data Compression and Entropy

Lecture 1 : Data Compression and Entropy CPS290: Algorithmic Foundations of Data Science January 8, 207 Lecture : Data Compression and Entropy Lecturer: Kamesh Munagala Scribe: Kamesh Munagala In this lecture, we will study a simple model for

More information

CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines. Problem 1

CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines. Problem 1 CSE 591 Foundations of Algorithms Homework 4 Sample Solution Outlines Problem 1 (a) Consider the situation in the figure, every edge has the same weight and V = n = 2k + 2. Easy to check, every simple

More information

f(x) = 2x 2 + 2x - 4

f(x) = 2x 2 + 2x - 4 4-1 Graphing Quadratic Functions What You ll Learn Scan the tet under the Now heading. List two things ou will learn about in the lesson. 1. Active Vocabular 2. New Vocabular Label each bo with the terms

More information

CMPS 6610 Fall 2018 Shortest Paths Carola Wenk

CMPS 6610 Fall 2018 Shortest Paths Carola Wenk CMPS 6610 Fall 018 Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with changes and additions by Carola Wenk Paths in graphs Consider a digraph G = (V, E) with an edge-weight function w

More information

Honors Algebra

Honors Algebra Honors Algebra 08-09 Honors Algebra is a rigorous course that requires the use of Algebra skills. The summer work is designed to maintain and reinforce these prerequisite skills so as to prepare ou for

More information

Data Structures in Java

Data Structures in Java Data Structures in Java Lecture 20: Algorithm Design Techniques 12/2/2015 Daniel Bauer 1 Algorithms and Problem Solving Purpose of algorithms: find solutions to problems. Data Structures provide ways of

More information

Final Exam December 12, 2017

Final Exam December 12, 2017 Introduction to Artificial Intelligence CSE 473, Autumn 2017 Dieter Fox Final Exam December 12, 2017 Directions This exam has 7 problems with 111 points shown in the table below, and you have 110 minutes

More information

FINAL EXAM REVIEW ITEMS Math 0312: Intermediate Algebra Name

FINAL EXAM REVIEW ITEMS Math 0312: Intermediate Algebra Name FINAL EXAM REVIEW ITEMS Math 0312: Intermediate Algebra Name 1) Find the SUM of the solutions of the equation. 82 + 0 = 16 Use the quadratic formula to solve the equation. (All solutions are real numbers.)

More information

CSC 421: Algorithm Design & Analysis. Spring 2018

CSC 421: Algorithm Design & Analysis. Spring 2018 CSC 421: Algorithm Design & Analysis Spring 2018 Complexity & Computability complexity theory tractability, decidability P vs. NP, Turing machines NP-complete, reductions approximation algorithms, genetic

More information

review math0410 (1-174) and math 0320 ( ) aafinm mg

review math0410 (1-174) and math 0320 ( ) aafinm mg Eam Name review math04 (1-174) and math 0320 (17-243) 03201700aafinm0424300 mg MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Simplif. 1) 7 2-3 A)

More information

Math 115 First Midterm February 8, 2017

Math 115 First Midterm February 8, 2017 EXAM SOLUTIONS Math First Midterm Februar 8, 07. Do not open this eam until ou are told to do so.. Do not write our name anwhere on this eam.. This eam has pages including this cover. There are problems.

More information

Limitations of Algorithm Power

Limitations of Algorithm Power Limitations of Algorithm Power Objectives We now move into the third and final major theme for this course. 1. Tools for analyzing algorithms. 2. Design strategies for designing algorithms. 3. Identifying

More information

Approximation of Continuous Functions

Approximation of Continuous Functions Approximation of Continuous Functions Francis J. Narcowich October 2014 1 Modulus of Continuit Recall that ever function continuous on a closed interval < a x b < is uniforml continuous: For ever ɛ > 0,

More information

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours) 1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours) Student Name: Alias: Instructions: 1. This exam is open-book 2. No cooperation is permitted 3. Please write down your name

More information

MATH 115: Final Exam Review. Can you find the distance between two points and the midpoint of a line segment? (1.1)

MATH 115: Final Exam Review. Can you find the distance between two points and the midpoint of a line segment? (1.1) MATH : Final Eam Review Can ou find the distance between two points and the midpoint of a line segment? (.) () Consider the points A (,) and ( 6, ) B. (a) Find the distance between A and B. (b) Find the

More information

Decision Mathematics D1

Decision Mathematics D1 Pearson Edexcel International Advanced Level Decision Mathematics D1 Advanced/Advanced Subsidiary Monday 1 February 2016 Afternoon Time: 1 hour 30 minutes Paper Reference WDM01/01 You must have: D1 Answer

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

Algebra II Practice Semester Exam Specification Sheet

Algebra II Practice Semester Exam Specification Sheet Algebra II Practice Semester Exam Specification Sheet 1. Properties of real numbers. Procedure (write procedure or process) 3. Concept development/linkage. Theorem/factual knowledge (of theorems and rules)

More information

Combinatorial Optimization

Combinatorial Optimization Combinatorial Optimization Problem set 8: solutions 1. Fix constants a R and b > 1. For n N, let f(n) = n a and g(n) = b n. Prove that f(n) = o ( g(n) ). Solution. First we observe that g(n) 0 for all

More information

Design and Analysis of Algorithms April 16, 2015 Massachusetts Institute of Technology Profs. Erik Demaine, Srini Devadas, and Nancy Lynch Quiz 2

Design and Analysis of Algorithms April 16, 2015 Massachusetts Institute of Technology Profs. Erik Demaine, Srini Devadas, and Nancy Lynch Quiz 2 Design and Analysis of Algorithms April 16, 2015 Massachusetts Institute of Technology 6.046J/18.410J Profs. Erik Demaine, Srini Devadas, and Nancy Lynch Quiz 2 Quiz 2 Do not open this quiz booklet until

More information

LESSON #42 - INVERSES OF FUNCTIONS AND FUNCTION NOTATION PART 2 COMMON CORE ALGEBRA II

LESSON #42 - INVERSES OF FUNCTIONS AND FUNCTION NOTATION PART 2 COMMON CORE ALGEBRA II LESSON #4 - INVERSES OF FUNCTIONS AND FUNCTION NOTATION PART COMMON CORE ALGEBRA II You will recall from unit 1 that in order to find the inverse of a function, ou must switch and and solve for. Also,

More information

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

Class Note #20. In today s class, the following four concepts were introduced: decision Class Note #20 Date: 03/29/2006 [Overall Information] In today s class, the following four concepts were introduced: decision version of a problem, formal language, P and NP. We also discussed the relationship

More information

UNIVERSITY OF CALIFORNIA, RIVERSIDE

UNIVERSITY OF CALIFORNIA, RIVERSIDE UNIVERSITY OF CALIFORNIA, RIVERSIDE DEPARTMENT OF COMPUTER SCIENCE 2006 DEPTH EXAMINATION IN THEORY OF OF COMPUTATION AND ALGORITHMS There are 10 problems on the test. Each problem is worth 10 points.

More information

You have 3 hours to complete the exam. Some questions are harder than others, so don t spend too long on any one question.

You have 3 hours to complete the exam. Some questions are harder than others, so don t spend too long on any one question. Data 8 Fall 2017 Foundations of Data Science Final INSTRUCTIONS You have 3 hours to complete the exam. Some questions are harder than others, so don t spend too long on any one question. The exam is closed

More information

CS 170 Algorithms Spring 2009 David Wagner Final

CS 170 Algorithms Spring 2009 David Wagner Final CS 170 Algorithms Spring 2009 David Wagner Final PRINT your name:, (last) SIGN your name: (first) PRINT your Unix account login: Your TA s name: Name of the person sitting to your left: Name of the person

More information

Design and Analysis of Algorithms May 12, 2011 Massachusetts Institute of Technology. Practice Final Exam. Problem Title Points Parts Grade Initials

Design and Analysis of Algorithms May 12, 2011 Massachusetts Institute of Technology. Practice Final Exam. Problem Title Points Parts Grade Initials Design and Analysis of Algorithms May 12, 2011 Massachusetts Institute of Technology 6.046J/18.410J Profs. Dana Moshkovitz and Bruce Tidor Practice Final Exam Practice Final Exam Do not open this quiz

More information

Solve the equation for the specified variable. Use the distributive property to factor as necessary. 2) -9s + 8p = tp - 8 for p

Solve the equation for the specified variable. Use the distributive property to factor as necessary. 2) -9s + 8p = tp - 8 for p College Readiness Math Final Eam Review Sheet Solve the equation. 1) r + 6 = r + 8 3 6 Solve the equation for the specified variable. Use the distributive propert to factor as necessar. 2) -9s + 8p = tp

More information

Unit 2 Notes Packet on Quadratic Functions and Factoring

Unit 2 Notes Packet on Quadratic Functions and Factoring Name: Period: Unit Notes Packet on Quadratic Functions and Factoring Notes #: Graphing quadratic equations in standard form, verte form, and intercept form. A. Intro to Graphs of Quadratic Equations: a

More information

please strongly consider purchasing a TI-84 Plus or N-Spire calculator to use throughout the school year

please strongly consider purchasing a TI-84 Plus or N-Spire calculator to use throughout the school year June 2009 Dear Algebra II Parents and Students, In preparation for Algebra II it is important for students to have a solid foundation in the understanding of linear functions, which is a large topic in

More information

HOMEWORK #2 - MATH 3260

HOMEWORK #2 - MATH 3260 HOMEWORK # - MATH 36 ASSIGNED: JANUARAY 3, 3 DUE: FEBRUARY 1, AT :3PM 1) a) Give by listing the sequence of vertices 4 Hamiltonian cycles in K 9 no two of which have an edge in common. Solution: Here is

More information

California Content Standard. Essentials for Algebra (lesson.exercise) of Test Items. Grade 6 Statistics, Data Analysis, & Probability.

California Content Standard. Essentials for Algebra (lesson.exercise) of Test Items. Grade 6 Statistics, Data Analysis, & Probability. California Content Standard Grade 6 Statistics, Data Analysis, & Probability 1. Students compute & analyze statistical measurements for data sets: 1.1 Compute the mean, median & mode of data sets 1.2 Understand

More information

Math Review Packet #5 Algebra II (Part 2) Notes

Math Review Packet #5 Algebra II (Part 2) Notes SCIE 0, Spring 0 Miller Math Review Packet #5 Algebra II (Part ) Notes Quadratic Functions (cont.) So far, we have onl looked at quadratic functions in which the term is squared. A more general form of

More information

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

Efficient Algorithms and Intractable Problems Spring 2016 Alessandro Chiesa and Umesh Vazirani Midterm 2 CS 170 Efficient Algorithms and Intractable Problems Spring 2016 Alessandro Chiesa and Umesh Vazirani Midterm 2 Name: SID: GSI and section time: Write down the names of the students around you as they

More information

Final Exam December 12, 2017

Final Exam December 12, 2017 Introduction to Artificial Intelligence CSE 473, Autumn 2017 Dieter Fox Final Exam December 12, 2017 Directions This exam has 7 problems with 111 points shown in the table below, and you have 110 minutes

More information

CS 161: Design and Analysis of Algorithms

CS 161: Design and Analysis of Algorithms CS 161: Design and Analysis of Algorithms Greedy Algorithms 3: Minimum Spanning Trees/Scheduling Disjoint Sets, continued Analysis of Kruskal s Algorithm Interval Scheduling Disjoint Sets, Continued Each

More information

MATH College Algebra Review for Test 2

MATH College Algebra Review for Test 2 MATH 4 - College Algebra Review for Test Sections. and.. For f (x) = x + 4x + 5, give (a) the x-intercept(s), (b) the -intercept, (c) both coordinates of the vertex, and (d) the equation of the axis of

More information

Name: UW CSE 473 Final Exam, Fall 2014

Name: UW CSE 473 Final Exam, Fall 2014 P1 P6 Instructions Please answer clearly and succinctly. If an explanation is requested, think carefully before writing. Points may be removed for rambling answers. If a question is unclear or ambiguous,

More information

Decision Mathematics Module D1

Decision Mathematics Module D1 GCE Examinations Decision Mathematics Module D1 Advanced Subsidiary / Advanced Level Paper B Time: 1 hour 30 minutes Instructions and Information Candidates may use any calculator except those with a facility

More information

Factoring Polynomials

Factoring Polynomials 5. TEXAS ESSENTIAL KNOWLEDGE AND SKILLS 2A.7.D 2A.7.E Factoring Polnomials Essential Question How can ou factor a polnomial? Factoring Polnomials Work with a partner. Match each polnomial equation with

More information

Greedy. Outline CS141. Stefano Lonardi, UCR 1. Activity selection Fractional knapsack Huffman encoding Later:

Greedy. Outline CS141. Stefano Lonardi, UCR 1. Activity selection Fractional knapsack Huffman encoding Later: October 5, 017 Greedy Chapters 5 of Dasgupta et al. 1 Activity selection Fractional knapsack Huffman encoding Later: Outline Dijkstra (single source shortest path) Prim and Kruskal (minimum spanning tree)

More information

UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS )

UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS ) UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS ) CHAPTER : Limits and continuit of functions in R n. -. Sketch the following subsets of R. Sketch their boundar and the interior. Stud

More information

Discrete Wiskunde II. Lecture 5: Shortest Paths & Spanning Trees

Discrete Wiskunde II. Lecture 5: Shortest Paths & Spanning Trees , 2009 Lecture 5: Shortest Paths & Spanning Trees University of Twente m.uetz@utwente.nl wwwhome.math.utwente.nl/~uetzm/dw/ Shortest Path Problem "#$%&'%()*%"()$#+,&- Given directed "#$%&'()*+,%+('-*.#/'01234564'.*,'7+"-%/8',&'5"4'84%#3

More information

Review of Essential Skills and Knowledge

Review of Essential Skills and Knowledge Review of Essential Skills and Knowledge R Eponent Laws...50 R Epanding and Simplifing Polnomial Epressions...5 R 3 Factoring Polnomial Epressions...5 R Working with Rational Epressions...55 R 5 Slope

More information

CS 170, Fall 1997 Second Midterm Professor Papadimitriou

CS 170, Fall 1997 Second Midterm Professor Papadimitriou CS 170, Fall 1997 Second Midterm Professor Papadimitriou Problem #1 (10 Points) Remember the change-maker problem: We are given k integers d 1,..., d k > 0 (the coin denominations) and an integer n. We

More information

Contents Lecture 4. Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression

Contents Lecture 4. Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression Contents Lecture 4 Greedy graph algorithms Dijkstra s algorithm Prim s algorithm Kruskal s algorithm Union-find data structure with path compression Jonas Skeppstedt (jonasskeppstedt.net) Lecture 4 2018

More information

PRINCIPLES OF MATHEMATICS 11 Chapter 2 Quadratic Functions Lesson 1 Graphs of Quadratic Functions (2.1) where a, b, and c are constants and a 0

PRINCIPLES OF MATHEMATICS 11 Chapter 2 Quadratic Functions Lesson 1 Graphs of Quadratic Functions (2.1) where a, b, and c are constants and a 0 PRINCIPLES OF MATHEMATICS 11 Chapter Quadratic Functions Lesson 1 Graphs of Quadratic Functions (.1) Date A. QUADRATIC FUNCTIONS A quadratic function is an equation that can be written in the following

More information

Computational Complexity and Intractability: An Introduction to the Theory of NP. Chapter 9

Computational Complexity and Intractability: An Introduction to the Theory of NP. Chapter 9 1 Computational Complexity and Intractability: An Introduction to the Theory of NP Chapter 9 2 Objectives Classify problems as tractable or intractable Define decision problems Define the class P Define

More information

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35.

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35. NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson, W.H. Freeman and Company, 1979. NP-Completeness 1 General Problems, Input Size and

More information

Introduction to Algorithms

Introduction to Algorithms Introduction to Algorithms 6.046J/18.401J LECTURE 14 Shortest Paths I Properties of shortest paths Dijkstra s algorithm Correctness Analysis Breadth-first search Prof. Charles E. Leiserson Paths in graphs

More information

Constraint Technology for Solving Combinatorial Problems

Constraint Technology for Solving Combinatorial Problems First Exam for Course 1DL023: Constraint Technology for Solving Combinatorial Problems Autumn 2009, Uppsala University, Sweden Prepared by Pierre Flener Wednesday 21 October 2009, from 08:00 to 13:00,

More information

Algebra II Notes Unit Five: Quadratic Functions. Syllabus Objectives: 5.1 The student will graph quadratic functions with and without technology.

Algebra II Notes Unit Five: Quadratic Functions. Syllabus Objectives: 5.1 The student will graph quadratic functions with and without technology. Sllabus Objectives:.1 The student will graph quadratic functions with and without technolog. Quadratic Function: a function that can be written in the form are real numbers Parabola: the U-shaped graph

More information

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis

UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis UCSD CSE 21, Spring 2014 [Section B00] Mathematics for Algorithm and System Analysis Final Exam Review Session Class URL: http://vlsicad.ucsd.edu/courses/cse21-s14/ Notes 140608 Review Things to Know has

More information

Introduction to Algorithms

Introduction to Algorithms Introduction to Algorithms 6.046J/8.40J/SMA550 Lecture 7 Prof. Erik Demaine Paths in graphs Consider a digraph G = (V, E) with edge-weight function w : E R. The weight of path p = v v L v k is defined

More information

NATIONAL QUALIFICATIONS

NATIONAL QUALIFICATIONS H Mathematics Higher Paper Practice Paper E Time allowed hour minutes NATIONAL QUALIFICATIONS Read carefull Calculators ma NOT be used in this paper. Section A Questions ( marks) Instructions for completion

More information

Discrete Event Systems Exam

Discrete Event Systems Exam Computer Engineering and Networks Laboratory TEC, NSG, DISCO HS 2016 Prof. L. Thiele, Prof. L. Vanbever, Prof. R. Wattenhofer Discrete Event Systems Exam Friday, 3 rd February 2017, 14:00 16:00. Do not

More information

CSE 431/531: Analysis of Algorithms. Dynamic Programming. Lecturer: Shi Li. Department of Computer Science and Engineering University at Buffalo

CSE 431/531: Analysis of Algorithms. Dynamic Programming. Lecturer: Shi Li. Department of Computer Science and Engineering University at Buffalo CSE 431/531: Analysis of Algorithms Dynamic Programming Lecturer: Shi Li Department of Computer Science and Engineering University at Buffalo Paradigms for Designing Algorithms Greedy algorithm Make a

More information

Decision Mathematics D1 Advanced/Advanced Subsidiary. Tuesday 9 June 2015 Morning Time: 1 hour 30 minutes

Decision Mathematics D1 Advanced/Advanced Subsidiary. Tuesday 9 June 2015 Morning Time: 1 hour 30 minutes Paper Reference(s) 6689/01 Edexcel GCE Decision Mathematics D1 Advanced/Advanced Subsidiary Tuesday 9 June 2015 Morning Time: 1 hour 30 minutes Materials required for examination Nil Items included with

More information

Exam EDAF May Thore Husfeldt

Exam EDAF May Thore Husfeldt Exam EDAF05 29 May 13 Thore Husfeldt Instructions What to bring. You can bring any written aid you want. This includes the course book and a dictionary. In fact, these two things are the only aids that

More information

CMPS 2200 Fall Carola Wenk Slides courtesy of Charles Leiserson with small changes by Carola Wenk. 10/8/12 CMPS 2200 Intro.

CMPS 2200 Fall Carola Wenk Slides courtesy of Charles Leiserson with small changes by Carola Wenk. 10/8/12 CMPS 2200 Intro. CMPS 00 Fall 01 Single Source Shortest Paths Carola Wenk Slides courtesy of Charles Leiserson with small changes by Carola Wenk 1 Paths in graphs Consider a digraph G = (V, E) with edge-weight function

More information

University of New Mexico Department of Computer Science. Final Examination. CS 362 Data Structures and Algorithms Spring, 2007

University of New Mexico Department of Computer Science. Final Examination. CS 362 Data Structures and Algorithms Spring, 2007 University of New Mexico Department of Computer Science Final Examination CS 362 Data Structures and Algorithms Spring, 2007 Name: Email: Print your name and email, neatly in the space provided above;

More information

CS781 Lecture 3 January 27, 2011

CS781 Lecture 3 January 27, 2011 CS781 Lecture 3 January 7, 011 Greedy Algorithms Topics: Interval Scheduling and Partitioning Dijkstra s Shortest Path Algorithm Minimum Spanning Trees Single-Link k-clustering Interval Scheduling Interval

More information

CSE 355 Test 2, Fall 2016

CSE 355 Test 2, Fall 2016 CSE 355 Test 2, Fall 2016 28 October 2016, 8:35-9:25 a.m., LSA 191 Last Name SAMPLE ASU ID 1357924680 First Name(s) Ima Regrading of Midterms If you believe that your grade has not been added up correctly,

More information

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

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 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 } 5 else 6 j = 2n+ alg(n 1) 7 return j } } Set up a recurrence relation

More information