Using Prolog to tell Summary of Cinderella's Story and Alternative self created versions, Using Bayesian Network and Forward Chaining

This is a project l did in Artificial Intelligence and l just want to share it with everyone. Its not the greatest but it might teach someone something new. So here goes the original Cinderella story             Cinderella’s father remarried after her mother died. Her step mother hated her and her step sisters hated her. […]

Read More

Prolog program to implement an predicate hsort(In,Out) where In is a list of structures, and Out is the sorted structures

Implement this predicate in Prolog. % hsort(In,Out): % In is a list of structures, node(X,H), where X is a node label % and H is h(X) the heuristic estimate assigned to X % Out is the same as In after the nodes have been sorted % in order by increasing H value. % Implementation: use […]

Read More