Answer to Question #248848 in Prolog for Renee

Question #248848

maximum(

    [minimum(

     [maximum([minimum([l(2),l(12)]),minimum([l(6),l(10)])]),

      maximum([minimum([l(8),l(19)]),minimum([l(17),l(21)])])]),

     minimum(

     [maximum([minimum([l(5),l(4)]),minimum([l(15),l(9)])]),

      maximum([minimum([l(12),l(16)]),minimum([l(2),l(12)])])])])

For this question you must author prolog code that allows you to apply alpha/beta pruning to a tree in this form using the top-level syntax: ?- alphabeta(T,V) where < T > is a tree in the form above and < V > is the final value. When called your code should also print out the value for each node processed and the pruning steps as it goes of the form:

"Leaf Value: 2" "Max node Value: 4" "Min node Value: 2" "Alpha Prune." "Beta Prune."


1
Expert's answer
2022-01-19T10:29:41-0500
Dear Renee, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS