Assume the prolog predicate gt(A, B) is true when A is greater than B. Use this predicate to define the predicate addLeaf(Tree, X, NewTree) which is true if NewTree is the Tree produced by adding the item X in a leaf node. Tree and NewTree are binary search trees. The empty tree is represented by the atom nil.
๐ป Solution
week10.pl
The program file week10.pl
was not found in the ai folder.
๐ค Output
w10.txt
The output file w10.txt
was not found in the ai/outputs folder.