” Comp 3710程序语言 写作、algorithms编程University of Windsor Winter 2021Comp 3710 Artificial Intelligence Concepts.Assignment 1 (Points 10)Due on 04/02/2021 Before 11:59pmPart I: (Points 8)The graph search algorithms are important in AI. This assignment considers the following uninformedgraph search algorithms in a given graph.1. Breadth First Search (BFS) (2 points)2. Depth First Search (DFS) (2 points)3. Iterative Deepening Search (IDS) (2 points)4. Uniform Cost Search (UCS) (2 points)Your task is to implement the above algorithms to find the traversal path and exact path of any givengraph (State Space Graph). You can use any programming language.Hint: A state-space graph Can be represented as a search tree; the start state is the root node, andchildren correspond to successors. There are two popular options for representing a graph: adjacencymatrix and adjacency list. You can insert the given graph using either of these options. Using anadjacency list is easy for smaller graph representation.Consider the following two Graphs to test your algorithms:Sample Output of Graph a:BFS:Traversal path: SABBDCDCDGExact path: SADGDFS:Traversal path: SABCDGExact path: SABCDGIDS:Traversal path: S SAB SABDBCD SABCDDGExact path: SADGUCS:Traversal path: SBABCDGExact path: SBDGUniversity of Windsor Winter 2021Part I: (Points 2)Implement the algorithms in the first part on a randomly generated space graph. To generate a randomspace graph, you can send two parameters to decide the number of edges and number of nodes. Thenyou can set the Start and goal state.For your Knowledge:How will you solve the famous Toy Problem, missionary-cannibal problem using BFS and DFSalgorithms? Understand the states clearly to represent in a table or a diagram.Practice the implement To solve the missionary-cannibal problem using BFS and DFS.如有需要,请加QQ:99515681 或WX:codehelp
“
添加老师微信回复‘’官网 辅导‘’获取专业老师帮助,或点击联系老师1对1在线指导。