Skip to content

Instantly share code, notes, and snippets.

@brogand93
Last active January 2, 2016 14:49
Show Gist options
  • Select an option

  • Save brogand93/0bad101b3e3a228e3138 to your computer and use it in GitHub Desktop.

Select an option

Save brogand93/0bad101b3e3a228e3138 to your computer and use it in GitHub Desktop.

Artificial Intelligence: 2013

Multiple Choice

1.  4
2.  5
3.  3
4.  3
5.  Didn't do
6.  Didn't do
7.  6
8.  7
9.  6
10. 5

Long Questions

Question 2

Part A

Go down the most promising state first.

Part B

Best first search with a random heuristic would be equivilant to random.

Part C

Constant evaluation function would be equivilant to breath first search, search first discovered.

Part D

Our heuristic function is inaccurate.

Part E

We can get stuck at a certain amount of steps from goal continuasly if we get stuck in a cyle when transversing children.

Part F

Algorithim A is similar to best-first except it handles loops, it accounts for distance from start at each level with the formula h(n) + g(n) = f(h). Where h(n) is evaluation function and g(n) is distance from start.

Part G

Dinstance from the start will stop an inaccurate heuristic from progressing too far down in terms of plys, at each ply 1 is added to the g(n) value, when the total output of the formula exceeds the previous best we backtrack and go down that one instead.

Question 3

Part A

Necessary for genetic algorithim:

  • Mutation rate
  • Crossover rate
  • Population size
  • Population of creatures with varied DNA

Part B

It has no idea what the global maximum looks like. It could possibly find it over an infinte period of time but even then it can't be sure.

Part C

If variable population size is allowed it's possible that the population will grow too large, exceeding expected size (explode) or they could go entirely extinct.

Part D

Formula

i f(i)
1 0
2 0
3 0
4 1

i)

if i = (1,2,3) then f(i) = 0

Solution (i) p1

if i = (4) then f(i) = 1

Solution (i) p2

  • p(1,2,3) = 0.1748
  • p(4) = 0.4753

ii)

if i = (1,2,3) then f(i) = 0

Solution (ii) p1

if i = (4) then f(i) = 1

Solution (ii) p2

  • p(1,2,3) = 0.2436
  • p(4) = 0.2692

iii)

Limits question, will revise later

Part E

Formula

i)

if i = (1,3) then f(i) = 0.2

Solution (iii) p1

if i = (2,4) then f(i) = 1

Solution (iii) p2

  • p(1,3) = 0.08993
  • P(2,4) = 0.4910

ii)

Limits question, will revise later

Bonus Question

;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment