|
CS 3343/3341 Analysis of Algorithms Fall 2012 Recitation 6 Heaps, etc. Week 6: Oct 2-4 Due (on time): 2012-10-08 23:59:59 Due (late): 2012-10-12 23:59:59 |
Recitation 6 should be submitted following directions at:
submissions
with deadlines
|
There may seem like quite a few problems for the in-class set, but they are designed to make you familiar with heaps, heapsort, and priority queues. Most of the earlier problems have a short answer and are not hard.
Your Teaching Assistant, Ms. Mahmuda Ahmed, will be monitoring the lab sessions this week. You are not to repeatedly ask her: "Is this right?" for your short answers to questions. Instead you can utilize her to understand the questions and to get to a solution yourselves.
n! C(n,k) = ------------- k! * (n-k)!Thus C(7,3) = 7!/(3!*4!) = 7*6*5/(3*2*1) = 35.)