90 likes | 398 Views
Branching Databases. A. Hancox 2008. We are going to sort a set of animals using a branching database. Cow. Sheep. Pig. Horse. (Pretend you do not know their names). A. Hancox 2008. Sort the objects into 2 groups with a clear yes/no question. Does the animal have horns?. Cow. Sheep.
E N D
Branching Databases. A. Hancox 2008
We are going to sort a set of animals using a branching database. Cow Sheep Pig Horse (Pretend you do not know their names) A. Hancox 2008
Sort the objects into 2 groups with a clear yes/no question. Does the animal have horns? Cow Sheep Pig Horse Yes No A. Hancox 2008
Sort the objects again using a simple yes/no question. Is the animal covered in wool? Cow Sheep Yes No A. Hancox 2008
Do the same with the remaining objects. Does the animal have a curly tail? Pig Horse Yes No A. Hancox 2008
You have now created a simple branching database. Yes Is the animal covered in wool? Yes No Cow Sheep Pig Does the animal have horns? Horse No Yes Does the animal have a curly tail? No A. Hancox 2008