uw.cs.cs341
  Home FAQ Contact Sign in
uw.cs.cs341 only
 
Advanced search
September 2008
motuwethfrsasuw
1234567 36
891011121314 37
15161718192021 38
22232425262728 39
2930      40
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
uw.cs.cs341 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Re: Some A1 questions         


Author: Vitalijs Ditmans
Date: Sep 22, 2008 17:43

> 1) I don't understand 2B at all. I overrode into this course with a coreq of
> MATH239 instead of a prereq (to avoid doing 341 and 350 together), and I
> don't know anything about connected graphs, and barely anything about weight
> functions, and certainly nothing about how they are related. Can someone
> help clarify exactly what the question is asking please?
>

2b simply say that if you have a graph G = (V,E), where V is a set of
vertices (V = {0,1,2,3,4,5}) and E is the set of edges ( E =
{(1,2),(3,4)}) where each edge has a weight - think of it as a length
between the vertices that this edge connects, if it's easier. So show this
graph - make 6 points, name them 0 through 5 and connect 1-2 and 3-4.
That's it... That's all you need about definition of Graph. Now try to
come up with situations where your input size would be n+m and n+m+(other
stuff)... It's not hard...

Vitaly...
no comments
  Re: Some A1 questions         


Author: Anna Lubiw
Date: Sep 22, 2008 10:32

In article ,
Lyle Waldman wrote:
>
>1) I don't understand 2B at all. I overrode into this course with a
>coreq of MATH239 instead of a prereq (to avoid doing 341 and 350
>together), and I don't know anything about connected graphs, and barely
>anything about weight functions, and certainly nothing about how they
>are related. Can someone help clarify exactly what the question is
>asking please?

This course will assume you know a bit of graph theory.
MATH 239 is a prerequisite. If you lack the prerequisite, please
catch up on your own -- read ahead in your 239 notes, try a Graph Theory text,
look in your Algorithms text, try wikipedia, etc. You need very
little for 2B -- just the definition of a graph.
>2) For 3D, how can we test for no edge? Again, this is probably related
>to the fact that I know nothing about connected graphs.
Show full article (1.19Kb)
no comments
  Question about A1 P6         


Author: MyFavouriteJava
Date: Sep 21, 2008 10:16

The question 6 said "matrix Mi has ki rows and ki+1 columns. I'm quite
confused about this. is ki+1: k(i+1) or (ki) + 1? What is k? Thanks.
1 Comment
  Question about how to proof the correctness of Greedy Algorithm         


Author: MyFavouriteJava
Date: Sep 19, 2008 08:33

HI all,

By looking at the notes taken from class, it is not obvious to see the
pattern of the proof easily.
It would be great if anyone or TA could provide a summary of the
procedures to prove the correctness of the Greedy Algorithm in
general. THanks.
1 Comment
  Sept 16 Lecture Notes         


Author: Kevin Chan
Date: Sep 18, 2008 16:21

Would anyone be able to lend / scan me a copy of the lecture notes from
Sept 16? Please and thank you.
1 Comment
  1st LECTURE NOTES NEEDED. THanks         


Author: MyFavouriteJava
Date: Sep 17, 2008 06:30

Could anyone borrow me the notes from the first lecture so that I
could make photocopy of it? Greatly appreciate that!
no comments
  A few questions about A1P1         


Author: Lyle Waldman
Date: Sep 16, 2008 22:07

1) I seem to remember from CS240 that there was a definition of Big-O
that used limits. I don't have my CS240 notes on me, and I forgot the
definition. I think it was something like f is O(g) if lim_n->inf(f/g)
<= 1, which I think makes intuitive sense. I'm not sure though. Does
anyone have these? They look to be really useful.

2) What is (log^2)n? I'm presuming it's (logn)^2.

3) Since I haven't touched Math138 for over a year (and barely touched
it even when I was taking it), I've completely forgotten my sequences
and series. Does anyone know the rule about the series n^k for k from 1
to inf? It was something like n < 0 -> series converges, but was there
any more to it?

Thanks. If I've said too much about any of the solutions, feel free to
moderate me, as I'm kinda getting back into the swing of newsgroups, and
never really used one for a non-programming course...

Lyle
3 Comments
  Room Change Notice         


Author: Caroline Kierstead
Date: Sep 5, 2008 06:37

Effective September 8, 2008, CS251 LEC 002 (11:30-12:50TTh) will be in MC1056
while CS341 LEC 001 (11:30-12:50TTh) will be in MC2038.

--
--
Caroline Kierstead, Undergraduate Operations Coordinator
David R. Cheriton School of Computer Science
University of Waterloo, DC3122 (519) 888-4567 x36226
no comments
  "time polynomial in the input size"         


Author: Martin
Date: Aug 6, 2008 13:55

On one of the finals given, a question is:

True or False: The DP algorithm for coin changing runs in time
polynomial in the input size. Justify your answer.

From what I gather, a reasonable input size in this case would be
log(n), where n is the amount that we're trying to make change for.
The DP coin changing problem takes O(N*K), where N is the input value,
and K is the number of coins in the currency. However, this is not the
input size, so in fact would it not be O(k*2^n), and so the answer is
False (or am I completely missing something here)?
1 Comment
  Posted Exams Q6         


Author: Carmen Bruni
Date: Aug 6, 2008 12:53

Was wondering if anyone else noticed this. I thought in class we
defined polynomial time reductions from decision problem to decision
problem. Clearly Q6 in both the sample exams, the questions asks for
a Turing polytime reduction from a non decision problem to a decision
problem - anyone know what they exactly mean here?

(From what I think they could mean, the Subset Sum to SSP should be
almost trivial and somehow would be worth 8 marks?)

Thanks
3 Comments
1 2 3 4 5 6 7 8 9