Here is a sample solution to the RHP reduction worksheet.
As always, use this to catch up with the class, to clarify points you were struggling on, or to review, but not to replace working on the problems yourself!
2016W2
Here is a sample solution to the RHP reduction worksheet.
As always, use this to catch up with the class, to clarify points you were struggling on, or to review, but not to replace working on the problems yourself!
Today we continue the first stable marriage handout, although we may skip some pieces that you have a good sense of from the reading.
Brief notes on the pre-class quiz: The vast majority of students who took the quiz will earn 2/2. (We’re downweighting the hardest question, which (CORRECTION) just over half of students got correct: “Independent of execution order, with the same preference lists, a particular man always proposes to the exact same number of women.”) Thanks for doing the readings!
Next time, we expect to continue stable marriage but introduce reductions, which we’ll use frequently to relate one problem to another. (We’ll use reductions to solve new problems in terms of old ones. Intriguingly, we’ll also eventually use reductions in the opposite way: to establish that we don’t know how to (or cannot) efficiently solve new problems by relating them to—reducing to them from—old ones.)
Important notes for today:
Here is a sample solution to the SMP intro worksheet.
Use it to review what you’ve worked through, sparingly to get yourself unstuck when you’re entirely stuck on a problem, and to catch up to where we are in class.
But… don’t just look at the solution before you try the problems and assume you’re good! You’ll learn best by working problems, not by confirming that someone else can do it 🙂
NOTE: We’re still figuring out whether we’ll separately post handouts and notes for each section or use one combined post. For now, here are handouts and notes similar to those all three sections will use tomorrow. (If we split up by section, we’ll use categories so you can just click on your section’s category to get your section’s handouts/notes.)
Welcome to CPSC 320!
Our overall course goal is to learn about a common and important set of problem types, algorithmic solution approaches, and analysis techniques, and to gain the tools and experience necessary to judge how a new problem might fit one of these categories, how to approach solving the problem, and how to analyze and adjust your solution.
A few administrative notes for today, much longer than our usual since it’s the start of the term:
Next, here are today’s handouts:
Finally, if you wish to read ahead, we expect to read at least these sections in this order (changes may happen but probably not drastic ones):
We’re just getting the blog set up right now. In the meanwhile, please do set up your @ugrad.cs.ubc.ca e-mail account, which we’ll use regularly to contact you from the very start of the term!
Here are some old exams and sample exams (from previous terms).
Several caveats apply: Our term’s exams and course may differ from these term’s exams and courses in important ways (beyond, obviously, the specific questions used!). We do not have additional materials related to these exams that might be missing. We have not recently reviewed these, and we don’t know how well they relate to what our term has done so far.
Some of these require the login “cpsc320” and the solutions password for our term or a previous one to access, which are posted on Piazza:
Old samples I found through online searches:
Old course offerings are often available at http://www.ugrad.cs.ubc.ca/~cs320/YYYYSP, where YYYY is the 4-digit year, S is the session (W or S), and P is the part (1 or 2, often missing in summer). Here’s a few: