Skip to content

Latest commit

 

History

History
73 lines (39 loc) · 1.91 KB

CODE5.md

File metadata and controls

73 lines (39 loc) · 1.91 KB


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

Code5: coding homework

What to Hand in

After doing all the following, you should be able to write one source files into hw/code/5 along with screen snaps of your work (if relevant).

Using some URL shortener (e.g. goo.gl), shorten the URL to hw/code/5 and paste into the submission page.

Basic Max Walk Sat

Read the lecture on Max Walk Sat.

Code MaxWalkSat for the Osyczka2 model.

Do not be clever. This is throw away code. As quick and as dirty as you like.

Use the same energy calcs as for SA.

Try and make a report that looks like the output from SA.

Tips

Not everything is "ok".

Note that this model has constraints-- so after you mutate a solution, you must check if it is ok (I.e. does not violate the constraints-- otherwise, mutate again until ok).

Local Search

When

Use p=0.5

How

Given min to max values for every value, try steps of (max - min)/steps for, say, steps=10.

Watch those evals

Note that now, when you report evals, then you are reporting steps * evals. So when you report how long it takes to reach a solution, remember to reports steps * evals.


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