PPT Slide
mem1(2,[1,2,3])
mem1(2,[2,3])
mem1(2,[3])
mem1(2,[])
B
B
B
B
A
A
A
A
/*A*/ mem1(X,[X|_]).
/*B*/ mem1(X,[_|T]) :- mem1(X,T).
*
mem1 search tree
Previous slide
Next slide
Back to first slide
View graphic version