Discussion Board
Go to the previous messageGo to the following message
Current Forum: 15-211 Main Forum
Date: Thu Dec 13 2001 4:33 pm
Author: Shi, Ying <shy@cmu.edu>
Subject: Re: Q on Quiz-3

I just copy them again for easy reference
-----
Correct Answer: check if the degree of any node is greater than the number of available rooms

Feedback: If any nodes have degree greater than the number of available rooms, then there are more exams scheduled for a particular time then there are rooms available.
"
MY answer is: Check if there are more edges in the graph than the number of available rooms.(given that's what I think the best of the four choices there) though if I were able to write down the answer it'd be" check if there are more edges in the graph than the number of available rooms minus one"
----
yes, i agree if the check in "correct answer" turns out to be true(there is a node that has degree biger than N) then not enough room available, but that's an overkill in checking whether we have enough rooms.

or

"correct answer" covers the senario in "my answer" or "my answer" which is the mininum lower bound(whether there are more than N edges in the graph

or

when you're asked to give a big O notation for quicksort, woudl you like a O(exp(n))--which is certainly a upper bound, or would you accept O(lgN) which is the minimum upper bound that give more practical guidance when applied

---
I might still have not got the point in the correct, but this is my reasoning

Thanks Angela for your explanation
Post response

Go to the previous messageGo to the following message
Current Thread Detail:
Q on Quiz-3      Shi, Ying      Thu Dec 13 2001 2:17 pm       
Re: Q on Quiz-3      Liu, Limin Angela      Thu Dec 13 2001 3:55 pm       
Re: Q on Quiz-3      Shi, Ying      Thu Dec 13 2001 4:33 pm       
Re: Q on Quiz-3      Liu, Limin Angela      Thu Dec 13 2001 5:01 pm       
Re: Q on Quiz-3      Shi, Ying      Thu Dec 13 2001 9:18 pm       

Back to previous screen