Question: To implement Depth - First Search ( DFS ) , Uniform - Cost Search ( UCS ) , Best - First Search ( BFS )
To implement DepthFirst Search DFS UniformCost Search UCS BestFirst Search BFS and Algorithm to solve the following puzzle problem ie find the goal:
puzzle Problem:
The puzzle consists of eight numbered, movable tiles set in a frame. One tile of the puzzle is always empty thus making it possible to move an adjacent numbered file into the empty tile position. Start with a random state Do not make it a fixed starting state The goal state is listed below.
table
The program is to solve the initial configuration and find the goal configuration. A solution to the problem is an appropriate sequence of moves. You must write your own codes for the algorithms. Make sure your submission meets all of the requirements and free of plagiarism.
Your program should be able to address any initial configuration and provide a table of statistics below in your PDF file.
tableAlgorithmtableAverage number of nodesvisited you need repeat eachalgorithm several times withdifferent initial configurationtableGive the best runtime the worst runtime and average runtime when you runyour program: runeach algorithm atleast for timestableYour comment on thesealgorithmsDFStableBest:Worst:Average:tableBest:Worst:Average:tableUCS using thedepth as thecosttableBest:Worst:Average:tableBest:Worst:Average:tableBFS usingManhattandistance as theheuristicstableBest:Worst:Average:tableBest:Worst:Average:tableAusingNilssonsSequence as theheuristicstableBest:Worst:Average:tableBest:Worst:Average:
You may write your code in a contemporary language of your choice; typical languages would include CC Python, Java, Ada, Pascal, Smalltalk, Lisp, and Prolog. A GUI interface is preferred.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
