AO* algorithm - OpenGenus IQ
iq.opengenus.org › ao-algorithmStep-1 Starting from node A, we first calculate the best path. f (A-B) = g (B) + h (B) = 1+4= 5 , where 1 is the default cost value of travelling from A to B and 4 is the estimated cost from B to Goal state. f (A-C-D) = g (C) + h (C) + g (D) + h (D) = 1+2+1+3 = 7 , here we are calculating the path cost as both C and D because they have the AND-Arc.