Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Part II of the Computer Science Tripos at Cambridge, students take two Units of Assessment (UA). Some UAs have a maximum capacity, set by

In Part II of the Computer Science Tripos at Cambridge, students take two Units of Assessment (UA). Some UAs have a maximum capacity, set by the lecturer. Students are asked to shortlist three or more UAs, and the department tries to find class rosters such that each student is assigned two of the UAs they shortlisted.

(a) Give an efficient algorithm for finding such rosters, if they can be found. [5 marks]

(b) State an appropriate correctness property, and prove it. [7 marks]

(c) Derive the running time, in big-O notation, as a function of the number of students. Treat the number of courses as fixed. [3 marks]

Oxbridge Academy has a similar program, but larger: students are required to take three UAs, and they shortlist at least four. Some UAs are in Michaelmas term, others in Lent, and the Academy wishes to create class rosters such that no student has all three of their UAs in a single term.

(d) Modify your algorithm to accommodate this requirement. [5 marks]

Step by Step Solution

3.57 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

The detailed answer for the above question is provided below a Here is an efficient algorithm for finding class rosters such that each student is assigned two of the UAs they shortlisted if they can b... 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

Auditing and Assurance services an integrated approach

Authors: Alvin a. arens, Randal j. elder, Mark s. Beasley

14th Edition

133081605, 132575957, 9780133081602, 978-0132575959

More Books

Students also viewed these Algorithms questions

Question

Define deferred revenue. Why is it a liability?

Answered: 1 week ago

Question

What are the three categories of auditor responses to fraud risks?

Answered: 1 week ago

Question

10. What is amyloid-b and how does it relate to Alzheimers disease?

Answered: 1 week ago