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#

Using c# Assignment 2- Heuristic Search 100 points 71 Oradea Neamt 087151 78 Azerine Arad 140 Sibiu 99 Fagaras 118 Vaslui 80 Rimnicu

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. Appendix Below, see an example of how f(n) is calculated for A* for a few nodes in the above graph. MA 22 Lugoj 75 11 A 140 22 f = 111 + 329 = 440 f = 70 +241 = 311 val Timon Timisoara Mehadia IN Der Straight line distance b Bucharest Arad Bucharest CrRBOVE 160 Dobreta Eforie lol 170 Mendi Oradea Pitesti Vike Timin Zerind Lugoj Porn 11 * f = 111 + 329 = 440 f = 70 + 241 = 311 Timisoara Mehadia f = (70 +75) + 242 = 387 Dobreta Straight-line distance Bucharest 170 Ci 72 220 L.RO Neamt Pesto Fake Vices Til Urziceni Zerind 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. Appendix Below, see an example of how f(n) is calculated for A* for a few nodes in the above graph. MA 22 Lugoj 75 11 A 140 22 f = 111 + 329 = 440 f = 70 +241 = 311 val Timon Timisoara Mehadia IN Der Straight line distance b Bucharest Arad Bucharest CrRBOVE 160 Dobreta Eforie lol 170 Mendi Oradea Pitesti Vike Timin Zerind Lugoj Porn 11 * f = 111 + 329 = 440 f = 70 + 241 = 311 Timisoara Mehadia f = (70 +75) + 242 = 387 Dobreta Straight-line distance Bucharest 170 Ci 72 220 L.RO Neamt Pesto Fake Vices Til Urziceni Zerind

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!