Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2.2 Graduation The CS program at a University has m courses. In order to graduate, a student must satisfy several requirements. Each requirement is of

2.2 Graduation

The CS program at a University has m courses. In order to graduate, a student must satisfy several requirements. Each requirement is of the form you must take at least ki courses from subset Si. The problem is to determine whether or not a given student can graduate. The tricky part is that any given course cannot be used towards satisfying multiple requirements. For example if one requirement states that you must take at least two courses from {A, B, C}, and a second requirement states that you must take at least two courses from {C, D, E}, then a student who had taken just {B, C, D} would not yet be able to graduate. Your job is to give a polynomial-time algorithm for the following problem. Given a list of requirements r1, r2, . . . , rt (where each requirement ri is of the form: you must take at least ki courses from set Si), and given a list L of courses taken by some student, determine if that student can graduate. In particular, show how you can solve this using network flow

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions