Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A hospital is attempting to schedule their doctors for night shifts over the next n nights. There are d doctors. Each doctor specifies a set

A hospital is attempting to schedule their doctors for night shifts over the next n nights. There are d doctors. Each doctor specifies a set of nights they are available for the night shift; let Si denote the set of nights that the ith doctor is available, 1≤i≤d. The hospital has determined its exact need for each night; for the jth night, 1≤j≤n, the hospital needs exactly pj doctors to do the night shift. There is one further constraint. To be fair, the hospital does not want any doctor to do more than k night shifts. Give a network flow algorithm to determine an assignment of the d doctors to the n nights so that all relevant constraints are met, that is, every night that the ith doctor is assigned to is in Si ; exactly pj doctors are assigned on night j; and no doctor is assigned to more than k nights. If no such assignment is possible, then your algorithm should indicate so. Provide running time analysis.

Step by Step Solution

3.40 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

To solve this problem using a network flow algorithm we can model it as a bipartite graph and formulate it as a maximum flow problem Here are the step... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Algorithms questions

Question

relatively high socioeconomic development

Answered: 1 week ago