Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.97 KB

REVIEW4.md

File metadata and controls

60 lines (45 loc) · 1.97 KB


At a glance... | Syllabus | Models | Code | Lecturer

What is the problem with local maxima?

  1. In the following diagram, each square has the same x,y,z axis. What might the names of those x,y,z values?

  2. Explain the following, using the above diagram:

  • Holes
  • Poles
  • Saddles
  • Local minima
  • Flat
  • Brittle
  1. Explain the following term and describe how it handles the problem of flat: Retries.

  2. How does the following techniques avoid the problems of local maxima?

Simulated annealing - Retries - Momentum (make sure you explain momentum)

  1. Local search can be characterized as follows

    • Jump all around the hills
    • Sometimes, sitting still while rolling marbles left and right
    • Then taking one step along the direction where the marbles roll the furthest.
    • Go to 1.

In the following code snippet, explain where you'd find 5.

FOR i = 1 to max-tries DO
  solution = random assignment
  FOR j =1 to max-changes DO
    IF  score(solution) > threshold
        THEN  RETURN solution
    FI
    c = random part of solution 
    IF    p < random()
    THEN  change a random setting in c
    ELSE  change setting in c that maximizes score(solution) 
    FI
RETURN failure, best solution found

Copyright © 2015 Tim Menzies. This is free and unencumbered software released into the public domain.
For more details, see the license.