Sedang Disiapkan

SWI Prolog- Tennis Homework

My project has 3 parts:

first part: program should read a text file which contains a dataset, and should generate a

factbase file( Tennis_Dataset.txt------Part 1------>[url removed, login to view])

[url removed, login to view] is containing:

outlook temperature humidity wind play_tennis

sunny hot high weak no

sunny hot high strong no

overcast hot high weak yes


Tennis_Factbase should be like:

example(1, no,[outlook=sunny, temperature=hot, humidity=high, wind=weak]).

example(2, no,[outlook=sunny, temperature=hot, humidity=high, wind=strong]).

example(3, yes,[outlook=overcast, temperature=hot, humidity=high, wind=weak]).

consult [url removed, login to view] and [url removed, login to view](attached to this site) than execute "showtree." command(which is a part of [url removed, login to view]) when you execute "showtree" you will see something like this:


wind=strong => [no/2]

wind=weak => [yes/3]

outlook=overcast => [yes/4]


humidity=normal => [yes/2]

humidity=high => [no/3]

Put the screen output of the decision tree in a file named [url removed, login to view]

second part: read the [url removed, login to view] file that you generated using the [url removed, login to view]

program, and should generate the [url removed, login to view] Your output file should have the following format:

% node(Name, Type, QuestionText, List_of_Choices, List_of_Children)

node( root, question, 'Outlook?', [rain, overcast, sunny], [n1, n3, n2] ).

node( n1, question, ‘Wind?', [weak, strong], [n3, n4] ).

node( n2, question, ‘Humidity?', [high, normal], [n4, n3] ).

third(final) part:

Using the decision tree file that you generated ([url removed, login to view]), this part should traverse the tree starting from root, asking questions to user, and finally displaying

the answer (at a leaf node).

First, user will load (consult) the tree file ([url removed, login to view])

Kemahiran: Prolog

Lihat lagi: prolog tennis, tennis prolog, SWI Prolog, prolog tennis_factbase, tree node, parts tree, node in tree, n3, N2, temperature, rain, my tennis, decision tree, traverse, generate node, id3 tree, program tree using, tree program using, mdb210, program tree, example tree, humidity, prolog tennis tree, prolog id3, project temperature

Tentang Majikan:
( 0 ulasan ) niigata, Turkey

ID Projek: #1547491

Dianugerahkan kepada:


Hi, please check pmb, thanks

$60 USD dalam 5 hari
(2 Ulasan)

4 pekerja bebas membida secara purata $93 untuk pekerjaan ini


Hello, we can do this for you

$100 USD dalam 5 hari
(0 Ulasan)

Prolog expert available.

$150 USD dalam 3 hari
(0 Ulasan)

Hi, I am confident to handle this project. Please check your inbox,Thanks

$60 USD dalam 3 hari
(0 Ulasan)