rabbott
Posts: 1649
|
Posted 15:32 Feb 19, 2014 |
- Table Legs. Do you understand this problem? Given n table legs of differing lengths how much total must be cut from some of the legs so that the table sits level. Presumably the answer requires that the three longest legs be the same length. The first example has lengths of 2000, 3000, 4000. The given answer is 3000. That makes sense if all the legs must be cut to length 2000. But the second example has legs of 2000, 2000, 1999, 2001. Why isn't the answer 1? [The given answer is 4.] Why can't the table sit level if three legs are of length 2000? (Not all legs are required to be the same length.) The third example has legs of length 2000, 2000, 1999, 2001, 1999. It would seem that the answer here should also be 1, which is the given answer. So I'm confused about the second example. Why does the addition of an additional short leg change the answer from example 2 to example 3?
- Sticks. asks you to group a set of input numbers into subsets so that each subset has the same total. (All the numbers must be used.) If there are multiple ways to do this, select the way in which the sums are smallest -- not the smallest number of sets. The first example has the numbers 5 2 1 5 2 1 5 2 1. These can be grouped as three sets of {5, 2, 1} or as 4 sets {5, 1}, {5, 1}, {5, 1}, and {2, 2, 2}. Since the second grouping results in sets with sums of 6 and the first grouping results in sets with sums of 8, the second grouping is the answer.
- Going Home. Find the set of paths with the smallest total distance from designated starting points to designated ending points on a grid. Every starting point must reach a unique ending point.
- Hard Life gives you a graph. You are asked to find the subgraph (subset of nodes) with the largest ratio of edges to nodes.
Last edited by rabbott at
13:33 Feb 24, 2014.
|