Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment 2- Heuristic Search 100 points z radea Neamt 087 75 Pzerind 151 si Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu Vilcea Straight-line
Assignment 2- Heuristic Search 100 points z radea Neamt 087 75 Pzerind 151 si Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu Vilcea Straight-line distance to Bucharest Arad Bucharest Craiova Dobreta Eforie Fagaras Giurgiu Hirsova Iasi Lugoj Mehadia Neamt Oradea Pitesti Rimnicu Vilcea Sibiu Timisoara Urziceni Vaslui Zerind Timisoara Lugoj L 97 Pitesti 98 146 85 Mehedia Hirsova 101 Urziceni 75 Dobreta Bucharest 120 CISIONS Eforte Glurgiu f(n) = g(n) + h(n) In the above graph, the source is located at Lugoj, and the goal state is Bucharest. The heuristic value h(n) (which is values at node) for each node is given in the table on the right as straight line distances to Bucharest. The g(n) values are distances of a node from the source state that is Lugoj. For a node that is not directly connected to Lugoj, add the distances of all the edges on the path leading to that node from Lugoj. Using the above calculations, implement A* and Uniform Cost Search Algorithms as a programming assignment. You may use a programming language of your choice (C#, Java, C++, Python, etc.). Also compare the number of states that each algorithm expands and implement a timer to measure and print the time taken by each algorithm to get to the goal state. Submit your code files as a zipped folder on Blackboard. If special instructions are needed to run your code, then also provide a separate readme file along with your code files. Assignment 2- Heuristic Search 100 points z radea Neamt 087 75 Pzerind 151 si Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu Vilcea Straight-line distance to Bucharest Arad Bucharest Craiova Dobreta Eforie Fagaras Giurgiu Hirsova Iasi Lugoj Mehadia Neamt Oradea Pitesti Rimnicu Vilcea Sibiu Timisoara Urziceni Vaslui Zerind Timisoara Lugoj L 97 Pitesti 98 146 85 Mehedia Hirsova 101 Urziceni 75 Dobreta Bucharest 120 CISIONS Eforte Glurgiu f(n) = g(n) + h(n) In the above graph, the source is located at Lugoj, and the goal state is Bucharest. The heuristic value h(n) (which is values at node) for each node is given in the table on the right as straight line distances to Bucharest. The g(n) values are distances of a node from the source state that is Lugoj. For a node that is not directly connected to Lugoj, add the distances of all the edges on the path leading to that node from Lugoj. Using the above calculations, implement A* and Uniform Cost Search Algorithms as a programming assignment. You may use a programming language of your choice (C#, Java, C++, Python, etc.). Also compare the number of states that each algorithm expands and implement a timer to measure and print the time taken by each algorithm to get to the goal state. Submit your code files as a zipped folder on Blackboard. If special instructions are needed to run your code, then also provide a separate readme file along with your code files
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started