• Home
  • Australian National University
  • Artificial Intelligence
  • Search Formulations, Strategies, and Algorithms in Artificial Intelligence

Search Formulations, Strategies, and Algorithms in Artificial Intelligence

Comp3620/Comp6320 Artificial Intelligence Tutorial 1: Search Formulations, Strategies, and Algorithms March 17-20, 2020 Exercise 1 (problem formulation) For each of the following problem, explain how states and actions can be represented, and give the initial state, goal test, successor function, and a plausible step cost function. Remember from the lectures that these elements constitutes a search problem formulation. 1. Color a planar map using a minimum of colors in such a way that no two adjacent regions have the same color. 2. Using a water tap and three jugs of possibly different capacities (e.g. 12, 5, and 8 litres), collect a given amount of water (e.g. 9 litres) in one of the jugs as fast as possible. The available operations are: filling up a jug completely with the water tap, pouring the contents of one jug into another until one of them is full or empty, or completely emptying the contents of one jug onto the ground. Assume that moving 1 liter takes 1 unit of time. 3. Three superheroes and three supervillains are on the side of a river, along with a boat which can hold one or two people. Find a way of getting them all to the other side, without ever leaving superheroes outnumbered by supervillains at any place. Naturally, the boat cannot move across the river by itself, and none of our super-humans can fly! Exercise 2 (properties of search strategies) True or False? True False: Depth-first graph search is guaranteed to return a shortest solution. not optimal True False: Breadth-first graph search is guaranteed to return a shortest solution. yes if score = 1 True False: Uniform-cost graph search is guaranteed to return an optimal solution. True False: Greedy graph search is guaranteed to return an optimal solution. True False: Breadth-first graph search is a special case of uniform-cost search. score = 1 True False: A* graph search with an admissible heuristic is guaranteed to return an optimal solution. True False: A* graph search is guaranteed to expand no more nodes than depth-first graph search. True False: A* graph search with a consistent heuristic is guaranteed to expand no more nodes than uniform-cost graph search. Exercise 3 (search strategies at work) Consider the search space below, where S is the initial state and G1 and G2 both satisfy the goal test. Arcs are labelled with the cost of traversing them and the estimated cost to a goal is reported inside nodes. For each of the following search strategies: breadth-first, depth-first, iterative deepening, uniform cost, greedy search, and A*, indicate the path found (if any) by graph-search and list, in order, all the states 1 expanded - recall that a state is expanded when it is removed from the frontier. Everything else being equal, nodes should be removed from the frontier in alphabetical order. Assume that regardless of the strategy, the goal-test is performed when a node is dequeued from the fontier. For breadth-first and depth- first search, assume that newly generated nodes are not added