Utilizing tree as data structure has been implemented searching algorithms like BFS(Bread-First Search), DFS(Depth-First search) and some other search algorithm to find out the best action(s) for the problem.