Question: Using C# Assignment 2- Heuristic Search 100 points 71 Oradea Neamt 087 151 78 Azerine Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu Vilcea
Using C#

Assignment 2- Heuristic Search 100 points 71 Oradea Neamt 087 151 78 Azerine Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu Vilcea Straight line distance to Bucharest Arad Bucharest Craiova Dobreta Eforie Fagaras Giurgiu Hirsova Tasi Lugoj Mehadia Neamt Oradea Pitesti Rimnicu Vikea Sibiu Timisoara Urziceni Vaslui Zerind Timisoara 142 11 Phesi 211 Lugoj 97 1 746 98 0 Urziceni 85 Hirsova Mehedia 101 75 7138 7 Bucharest Dobreta 120 Craiova Etorle 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 71 Oradea Neamt 087 151 78 Azerine Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu Vilcea Straight line distance to Bucharest Arad Bucharest Craiova Dobreta Eforie Fagaras Giurgiu Hirsova Tasi Lugoj Mehadia Neamt Oradea Pitesti Rimnicu Vikea Sibiu Timisoara Urziceni Vaslui Zerind Timisoara 142 11 Phesi 211 Lugoj 97 1 746 98 0 Urziceni 85 Hirsova Mehedia 101 75 7138 7 Bucharest Dobreta 120 Craiova Etorle 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
Get step-by-step solutions from verified subject matter experts
