






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







2
Inductive step: a new question has yes and no branches that are decision trees. Application: the classic game of "animals".
Decision trees
["Is it a mammal?", "horse", "fish"]; Step 1: Distinguish between a horse and a fish Step 2: Distinguish between a horse and a pig. ["Is it rideable", "horse", "pig"] Step 3: Combine the above into one "tree": ["Is it a mammal?", ["Is it rideable", "horse", "pig"], "fish"] This is a recursively defined array structure. Step 4: distinguish between a fish and a lizard: ["Does it live in the desert?", "lizard", "fish"] Step 5: combine steps 3 and 4: ["Is it rideable?", "horse", "pig"] ["Does it live in the desert?", "lizard", "fish"] [ "Is it a mammal?", ] We can continue this as long as we want, refining lower levels. Building a decision tree