CSPs by local search Flashcards
describe tree search (symmetric search)
systematically search the space of
assignments in a constructive way.
◆ Start with an empty assignment.
◆ Assign a value to an unassigned variable and deal with constraints on
the way until a solution is found
why would we decide to use local search method
if soace is too big or infinte , may fail to consider space so we may not get te answer we desire
describe local search methods
systematically search environment , find solutions on averagesystematically seraches space but designed to find solution quickly on average
starts with an arbtrary complete assigments, constranits can be violated
works through assignment iteratively to improve it
how to do a local search
◆ A typical local search algorithm (i.e. hill climbing for CSPs):
◆ Randomly generate a complete assignment
◆ When a solution not found or stop criterion not met,
iteratively perform the following two steps; otherwise
return the assignment.
◆ Step 1: Explore all the neighbours of the assignment (i.e., try
every assignment that only has one variable difference from the
considered assignment).
◆ Step 2: Choose the assignment that violates the fewest
constraints
is local search always guaranteed to find a solution
can get stuck depending on problem’s landscape and serach strategy