There are n students in the CS program, and each of them must take the Algorithms...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
There are n students in the CS program, and each of them must take the Algorithms course. There are m sections of Algorithms of- fered: A₁,..., Am. They begin at times T₁,..., Tm. Each student can sign up for at most one section. Because students also have other courses to take, each student can only attend some subset of the Algorithms sections. This varies by student: some may only be free during one or two sections, while others might be able to attend all of them. In addition, each section A, has a cap C, on the total enrollment, so you cannot put more than C; students in that section. Your goal is to assign students to sections so that as many stu- dents as possible are enrolled in a section of Algorithms (note that it might be impossible to enroll everybody into a section: this is fine). Design an algorithm to solve this problem by using network flows. Be pre- cise about the structure of the graph. It is sufficient to explain how to create the graph, and then say to apply the existing network flow algorithm to the graph. There are n students in the CS program, and each of them must take the Algorithms course. There are m sections of Algorithms of- fered: A₁,..., Am. They begin at times T₁,..., Tm. Each student can sign up for at most one section. Because students also have other courses to take, each student can only attend some subset of the Algorithms sections. This varies by student: some may only be free during one or two sections, while others might be able to attend all of them. In addition, each section A, has a cap C, on the total enrollment, so you cannot put more than C; students in that section. Your goal is to assign students to sections so that as many stu- dents as possible are enrolled in a section of Algorithms (note that it might be impossible to enroll everybody into a section: this is fine). Design an algorithm to solve this problem by using network flows. Be pre- cise about the structure of the graph. It is sufficient to explain how to create the graph, and then say to apply the existing network flow algorithm to the graph.
Expert Answer:
Answer rating: 100% (QA)
To solve the problem of assigning students to sections of the Algorithms course using network flows we can model it as a flow network In this network ... View the full answer
Related Book For
Introduction to Operations Research
ISBN: 978-1259162985
10th edition
Authors: Frederick S. Hillier, Gerald J. Lieberman
Posted Date:
Students also viewed these algorithms questions
-
Key Figures ($ millions) Sales Net income Average assets Required: Cola Company $ 41,399 7,956 68,000 Pop Company $ 58,471 5,952 62,000 1. Compute return on assets for Cola Company and Pop Company....
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
List three specific parts of the Case Guide, Objectives and Strategy Section (See below) that you had the most difficulty understanding. Describe your current understanding of these parts. Provide...
-
Is informing the consumer about any toxic substances used in the manufacture of a product sufficient to produce an efficient level of toxic substance use for that product? Why or why not?
-
To remove a nail, a small block of wood is placed under a crowbar, and a horizontal force P is applied as shown. Knowing that l = 3.5 in. and P = 30 lb, determine the vertical force exerted on the...
-
51. 10 mole of KOH is dissolved in 10 litres of water. The pH of the solution is - (1) 12 (3) 3 (2) 2 (4) 11 52. The solubility of a sparingly soluble compound MX2 at 25C is 5.0 103 mol/L. Its...
-
A lot of compensation information is available to employees today on the Web (e.g., www.salary.com), and much of it is inaccurate. How can an organization assure employees that they are fairly...
-
Using the data in BE7-8, indicate (a) The items that will result in an adjustment to the depositors records and (b) Why the other items do not require adjustment.
-
Adhering to social, business and ethical standards is important for a business to both develop and secure positive referrer relationships. For a Finance Broker, these standards could be acting in the...
-
1. Table 1 can be used to obtain the demand curve for a monopolist who manufactures and sells a unique type of camera. The first column gives several production quantities in thousands of cameras,...
-
1.)The table below summarizes the expected impacts of a potential investment project. Complete the table by entering the taxable income and taxes for years 1 through 5, and NATCF values for years 0...
-
Why should managers consider the global implication when looking at the demographics in the general environment? to understand the impact of the economy on the global market to understand competition...
-
On June 10, Diaz Company purchased $8,000 of merchandise on account from Taylor Company, FOB shipping point, terms 2/10, n/30. Diaz paid the freight costs of $400 on June 11. Goods totaling $300 were...
-
Both Country Delta and Country Theta initially have the real GDP per capita equal to $300. Country Delta experiences no economic growth, while Country Theta grows at a sustained rate of 2 percent. In...
-
The work done by a piston is measured to be 1000 J. If the pressure is a constant 1000 Pa, what is the change in volume of the piston?
-
What mechanisms underlie the phenomenon of antibiotic resistance in pathogenic microorganisms, and how can this knowledge inform the development of novel antimicrobial therapies ?
-
A battery is constructed based on the oxidation of magnesium andthe reduction of Cu2+. The initial concentrationsof Mg2+ and Cu2+ are1.210 ?4 M and 1.5 M , respectively,in 1.0-liter half-cells....
-
Is it a breach of fiduciary duty for a director of a real estate investment trust (REIT) negotiating a joint venture on behalf of the REIT with another director for the development of a portfolio of...
-
Reconsider Prob. 18.7-5. The bakery owner, Ken Swanson, now wants you to conduct a financial analysis of various inventory policies. You are to begin with the policy obtained in the first four parts...
-
A large paper manufacturing company, the Quality Paper Corporation, has 10 paper mills from which it needs to supply 1,000 customers. It uses three alternative types of machines and four types of raw...
-
For each of the following cases, prove that the key property of separable programming given in Sec. 13.8 must hold. (a) The special case of separable programming where all the gi(x) are linear...
-
Why can staging investment decisions add value?
-
How do you use a decision tree to make the best investment decision?
-
How can you identify a real option in a decision tree?
Study smarter with the SolutionInn App