-
From the book: 33.1-5 [page 1020]. Do not assume that the input polygon is simple.
- Show that Professor Amundsen's algorithm does not correctly tell whether a given polygon is convex.
- Show how to modify the algorithm so that it gives the correct answer.
-
From the book: 33-1(a) [page 1044]. Convex layers.
-
To within a constant factor, how much time does the
following algorithm take, in terms of n?
twoToTheN(n)
if n == 1
return 0
else
return twoToTheN(n-1) + twoToTheN(n-1)
-
From the book: 15-6 [page 408] Planning a company party.
Do not worry about the
details of how the tree is organized. Each person is
either invited or not invited. Consider computing two
scores for each persion (or, equivalently, for each
node of the tree).
- Define what the scores are.
- Derive equations that can be used to compute
each score for a given node. Shop around.
- Explain how to compute all of the scores and write them in
the nodes of the tree. Store the scores in an order
so that, any time you need to get another score,
you have already recorded that other score.
- Explain how to decide whom to invite, using a tree
with the scores recorded in its nodes.
-
How much time does it take, in terms of the number
of employees, to plan the party?