Six questions, four to pick from and two for paper. A point such as 1 2 t is a triangle at 1 across, 2 up (s is a square). After the semicolon comes the greatest depth. Each answer stays hidden until you open it.
Points 1 2 t, 2 6 t, 5 1 s, 6 7 s, 8 3 s and 9 9 s, grown at most 2 deep. How many looks in all, each question reading each point of its group once?
the answer, and why
the answer is B
The 6 points stand at 6 places across and 6 up, so 5 + 5 = 10 questions, each reading 6 points. Across below 3.5 leaves two groups of one shape, so no other group is weighed: 10 × 6 = 60 looks.
if you chose another
AThat counts the questions, not the points each reads.
CThat counts each point once.
DThat counts only the 5 questions across.
2question 2
On the same points, what does across below 3.5 gain?
the answer, and why
the answer is B
The group, 2 triangles and 4 squares, has entropy 2/6 × 1.585 + 4/6 × 0.585, about 0.918. 1.585 is the log to base 2 of 6/2, and 0.585 of 6/4. Both sides are one shape, entropy 0, so the gain is all of it.
AThat is the gain of a perfect question on half and half; this group is 2 and 4.
CThat is the triangles' share alone, 2 of 6.
DThat would be a question leaving both sides as mixed as the group.
3question 3
Four points 2 2 t, 2 8 s, 8 2 s and 8 8 t, the corners crossed, grown at most 3 deep. How many leaves does the tree have?
the answer, and why
the answer is D
Each question, across below 5 or up below 5, leaves 1 triangle and 1 square on each side, as mixed as the group. No question gains, so the root is a leaf.
if you chose another
AThat would need questions that gain; here none does.
BThat is the number of shapes, not of leaves.
CThat is the greatest depth, which the tree never reaches.
4question 4
Which is true of a decision tree on n points?
the answer, and why
the answer is A
A question's gain needs each side's count of triangles and squares, so it reads every point of the group.
BA tree stops once every group is one shape, however deep it may grow.
CEach point is looked at once for each question its group weighs.
DWhere the points stand changes how many questions there are, not how far apart they are.
pen and paper
5question 5about 12 minutes
Seven points, 2 1 t, 1 4 t, 3 6 t, 6 2 s, 7 5 s, 8 8 s and 9 3 s, grown at most 1 deep.
List every question the root weighs.
Work out the gain of across below 4.5, and say what each leaf becomes.
Count the points looked at, and check them against the questions times .
a hint
The points stand at 7 places across and 7 up. The group is 3 triangles and 4 squares.
a worked answer
Across below 1.5, 2.5, 4.5, 6.5, 7.5 and 8.5; up below 1.5, 2.5, 3.5, 4.5, 5.5 and 7: 12 questions. Across below 4.5 leaves 3 triangles on one side and 4 squares on the other. So it gains the group's whole entropy, 3/7 × 1.222 + 4/7 × 0.807, about 0.985. 1.222 is the log to base 2 of 7/3, and 0.807 of 7/4. The left leaf is a triangle and the right a square. The run looks at 12 × 7 = 84 points.
Take section 5's four points on the diagonal, 0 0 t, 1 1 s, 2 2 t and 3 3 s, grown at most 3 deep.
How many questions does each group weigh, and how many points does each look at?
Add the looks, and check them against .
Grown at most 1 deep instead, how many looks?
a hint
Each question that gains most peels off one end point.
a worked answer
The root's 4 points weigh 6 questions, 24 looks. Then 3 points weigh 4, 12 looks, and 2 points weigh 2, 4 looks. The total is 40, and 6 × 16 - 18 × 4 + 16 is 40. Grown 1 deep, only the root is weighed: 24 looks.
Why does the diagonal by turns, grown 3 deep, look times?11 of 11 shown
1the move: see the questions
the line:
why it is allowed: On the diagonal no two points share a place across or up. A group of points has gaps each way, so questions, and each looks at all points.
2the move: an end point peels off
the line:
points
gain of each cut across, left to right
3
0.252, 0.252
4
0.311, 0, 0.311
5
0.171, 0.020, 0.020, 0.171
6
0.191, 0, 0.082, 0, 0.191
Every cut's gain on the diagonal by turns. The two end cuts gain most, and up has the same cuts, so the first cut across is asked. The same holds at every size measured, 3 to 1,000.
why it is allowed: On the diagonal by turns, the end cuts leave one point alone, of one shape, and gain most, as the table shows. A tie goes to the smaller cut. That point is a leaf and weighs nothing. What is left is again a diagonal by turns.
guess it, then
3the move: three groups weighed
the line:
group
points
questions
looked
the root
4
6
24
after one end point leaves
3
4
12
after another
2
2
4
The 4 points of section 5, grown 3 deep. Each question that gains most peels off one end point, a leaf of one shape. 24 + 12 + 4 = 40.
why it is allowed: is the points looked at. By lines 1 and 2, the groups weighed hold , then , then points. After 3 questions in a row the groups are leaves. At 3 points the third group holds 1 point and weighs nothing: 2 × 1 × 0 = 0. At 2 points the second group holds 1 point, 2 × 1 × 0 = 0, and the third holds none, 2 × 0 × (−1) = 0.
guess it, then
4the move: multiply out
the line:
why it is allowed: By line 3, each pair of brackets multiplied out.
guess it, then
5the move: add like terms
the line:
why it is allowed: By line 4, the squares add to , the terms to , and the numbers to 16. For 4 points, 40.
guess it, then
6the move: a ceiling
the line:
why it is allowed: By line 5, is with 18 times taken away and 16 put back. From 1 point on, more is taken away than put back.
guess it, then
7the move: read it as a bound
the line:
why it is allowed: By line 6, is at most 6 times .
guess it, then
8the move: drop the later groups
the line:
why it is allowed: By line 3, the other two terms are never below 0 from 2 points on, so is at least its first term.
guess it, then
9the move: a floor
the line:
points
2
4
4
3
12
9
4
24
16
5
40
25
The first term against . They meet at 2 points, and the first term pulls ahead from there.
why it is allowed: By line 8. From 2 points on, is at least half of ; times , line 8's term is at least , as the table shows.
guess it, then
10the move: read it as a bound
the line:
why it is allowed: By line 9, never drops below 1 times .
guess it, then
11the move: ceiling and floor together
the line:
why it is allowed: Lines 7 and 10 bound by the same growth, .
guess it, then
try it with a small : at , line 3 gives , which you can work out by hand