[SOLVED] SOLVED: Universe Knowledge Base

Original price was: 30.00 $.Current price is: 28.99 $.

Programming resource
Digital learning resource

Objective
Create and use trees
Simulate Artificial Intelligence
Instructions
Develop a java program that learns about a universe of your choice by asking the user yes/no questions.

Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Objective
Create and use trees
Simulate Artificial Intelligence
Instructions
Develop a java program that learns about a universe of your choice by asking the user yes/no questions.

Universe Knowledge Base
Develop a program that begins with minimal knowledge. When the program incorrectly guesses an answer, it asks for the answer and asks for a way to identify the item. The program builds a binary tree of questions and items. A YES response to a question is stored in the question’s left child while a NO answer is stored in the question’s right child.

The following is an example of the dialog for a universe of animals.

Think of an animal and I will guess it.

Does it have legs? YES

Is it a cat? YES

I win! Continue? YES

Think of an animal and I will guess it.

Does it have legs? NO

Is it a snake? YES

I win! Continue? YES

Think of an animal and I will guess it.

Does it have legs? NO

Is it a snake? NO

I give up. What is it? EARTHWORM

Please type a question whose answer is yes for an earthworm and no for a snake.

DOES IT LIVE UNDERGROUND?

Continue? YES

Think of an animal and I will guess it.

Does it have legs? NO

Does it live underground? NO

Is it a snake? NO

I give up. What is it? FISH

Please type a question whose answer is yes for an earthworm and no for a snake.

DOES IT LIVE IN WATER?

Continue? NO

Good-bye.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.