Search Introduction and Problem Formulation Alice Gao Lecture 3 - - PowerPoint PPT Presentation

search introduction and problem formulation
SMART_READER_LITE
LIVE PREVIEW

Search Introduction and Problem Formulation Alice Gao Lecture 3 - - PowerPoint PPT Presentation

1/16 Search Introduction and Problem Formulation Alice Gao Lecture 3 Based on work by K. Leyton-Brown, K. Larson, and P. van Beek 2/16 Outline Learning Goals Applications of Search Defjnition of a Search Problem Problem Formulation


slide-1
SLIDE 1

1/16

Search Introduction and Problem Formulation

Alice Gao

Lecture 3 Based on work by K. Leyton-Brown, K. Larson, and P. van Beek

slide-2
SLIDE 2

2/16

Outline

Learning Goals Applications of Search Defjnition of a Search Problem Problem Formulation Revisiting the Learning Goals

slide-3
SLIDE 3

3/16

Learning goals

By the end of the lecture, you should be able to

▶ Formulate a real world problem as a search problem. ▶ Given a search problem, draw a portion of the search graph.

slide-4
SLIDE 4

4/16

Example: Sliding puzzles

Initial State

5 3 8 7 6 2 4 1

Goal State

1 2 3 4 5 6 7 8

slide-5
SLIDE 5

5/16

Example: Hua Rong Pass Puzzle

slide-6
SLIDE 6

6/16

Example: Rubik’s cube

slide-7
SLIDE 7

7/16

Example: River Crossing Puzzle

A parent and two children are trying to cross a river using a boat.

▶ The capacity of the boat is 100kg. ▶ The parent weighs 100kg. ▶ Each child weighs 50kg.

How can they get across the river?

slide-8
SLIDE 8

8/16

Example: N-Queens Problem

The n-queens problem: Place n queens on an n × n board so that no pair of queens attacks each other.

slide-9
SLIDE 9

9/16

Example: Propositional Satisfjability

Given a formula in propositional logic, determine if there is a way to assign truth values to the Boolean variables to make the formula true. ((((a ∧ b) ∨ c) ∧ d) ∨ (¬e)) Applications:

▶ FCC spectrum auction ▶ Circuit design ▶ Planning in AI

slide-10
SLIDE 10

10/16

Example: Traveling Salesperson Problem

What is the shortest path that starts at city A, visits each city only

  • nce, and returns to A?

Applications of TSP: https://bit.ly/2i9JdIV

slide-11
SLIDE 11

11/16

Why search?

We would like to fjnd a solution when we are

▶ Not given an algorithm to solve a problem ▶ Given a specifjcation of what a solution looks like ▶ (Given costs associated with certain actions)

Idea: search for a solution (with the minimum cost)

slide-12
SLIDE 12

12/16

A Search Problem

Defjnition (Search Problem)

A search problem is defjned by

▶ A set of states ▶ A start state ▶ A goal state or goal test

▶ a boolean function which tells us whether a given state is a

goal state

▶ A successor function

▶ a mapping/action which takes us from one state to other states

▶ A cost associated with each action

slide-13
SLIDE 13

13/16

Learning Goals Applications of Search Defjnition of a Search Problem Problem Formulation Revisiting the Learning Goals

slide-14
SLIDE 14

14/16

Example: 8-Puzzle

Initial State

5 3 8 7 6 2 4 1

Goal State

1 2 3 4 5 6 7 8

slide-15
SLIDE 15

15/16

Draw the search graph

slide-16
SLIDE 16

16/16

Revisiting the learning goals

By the end of the lecture, you should be able to

▶ Formulate a real world problem as a search problem. ▶ Given a search problem, draw a portion of the search graph.