Docsity

Dividing - Biological and Cognitive Sciences - Lecture Notes, Study notes of Biogenetics and Computers

Partial preview of the text

Download Dividing - Biological and Cognitive Sciences - Lecture Notes and more Study notes Biogenetics and Computers in PDF only on Docsity!

if f(x) is O(x) then f(x) is O(x

2

Homework problem:

Docsity.com

Docsity.com

Basis: a question and yes and no branches.

Inductive step: a new question has yes and no branches that are decision trees. Application: the classic game of "animals".

A decision tree

Decision trees

Docsity.com

Goal: traverse a decision tree to guess an animal.

A decision is a question with two consequences,

corresponding to "yes" and "no" answers.

a guess as to an animal.

another decision to make.

A consequence can be either

Form of the tree:

Animals

Docsity.com

a question.

a yes consequence.

a no consequence.

Each decision has three parts:

Representing a decision tree:

Docsity.com

["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

Docsity.com

A program can learn new decisions to correct its

mistakes!

Key is to modify the structure of the array to codify new

knowledge.

Just as we did in building the original tree.

Can learn from example: "supervised learning".

Point of decision trees

Docsity.com