Question: PROLOG QUESTION PLEASE ANSWER THIS QUESTION CAREFULLY Question 12 What are all possible solutions for X and Y. templ((), L.L). temp([HLI), L2, (H L3):- templ(L1,
PROLOG QUESTION
PLEASE ANSWER THIS QUESTION CAREFULLY
Question 12 What are all possible solutions for X and Y. templ((), L.L). temp([HLI), L2, (H L3):- templ(L1, L2, L3). temp2(S, L):- templ(. S, L). temp2(X, (a, b, c, d]). temp3([H].H). temp3(LT), H):- temp3(T, H). temp3 [1, 2, 3], Y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
