11.11 Three search procedures find1, find2 and find3 defined below use different search strategies. Identify these strategies....
Question:
11.11 Three search procedures find1, find2 and find3 defined below use different search strategies. Identify these strategies. find1(Node, [Node]) :- goal( Node). find1( Node, [Node | Path]) - s(Node, Nodel), find1(Nodel, Path). find2( Node, Path) :- conc( Path,), find1(Node, Path). find3(Node, Path) :- goal(Goal), find3( Node, [Goal], Path). find3(Node, [Node | Path], [Node | Path]). find3(Node, [Node2 | Path2], Path) :- s(Node1, Node2), find3( Node, [Node1, Node2 | Path2], Path). % Usual conc/3 for list concatenation
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Artificial Intelligence In Power System Optimization
ISBN: 9781578088058
1st Edition
Authors: Weerakorn Ongsakul, Vo Ngoc Dieu
Question Posted: