Implementation of AO Star Search Algorithm in python
www.vtupulse.com › artificial-intelligenceGraph – 2 as Input to AO Star Search Algorithm. print ("Graph - 2") h2 = {'A': 1, 'B': 6, 'C': 12, 'D': 10, 'E': 4, 'F': 4, 'G': 5, 'H': 7} # Heuristic values of Nodes graph2 = { # Graph of Nodes and Edges 'A': [ [ ('B', 1), ('C', 1)], [ ('D', 1)]], # Neighbors of Node 'A', B, C & D with repective weights 'B': [ [ ('G', 1)], [ ('H', 1)]], # Neighbors are included in a list of lists 'D': [ [ ('E', 1), ('F', 1)]] # Each sublist indicate a "OR" node or "AND" nodes } G2 = Graph (graph2, h2, 'A