Can anyone explain me how this routine works I want to know
how routine understands if there is an even number of elements or odd number of elements. thanks
median(!list,!median)
median_2(!list,!list,!median)
$clauses
median(List, Median) :-
median_2(List, List, Median).
median_2([_]...
Can anyone write a prolog routine for me for
disjoint([1,2,3],[2,3,4],Ans) binds Ans to [1,4]
coz though i managed to understand the concept, i dont know how to implement it by programming.
I cant use reserved words found in prolog for my assignment.
thnx
lor
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.