Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Reframing The Problem - DCJS July 2016

Reframing The Problem - DCJS July 2016

Daniel Cousineau

July 14, 2016
Tweet

More Decks by Daniel Cousineau

Other Decks in Technology

Transcript

  1. 4 1 2 6 3 7 5 8 1 2

    4 6 3 7 5 8 up
  2. 4 1 2 6 3 7 5 8 1 2

    4 6 3 7 5 8 up 1 2 4 6 3 7 5 8 right
  3. 4 1 2 6 3 7 5 8 1 2

    4 6 3 7 5 8 up 1 2 4 6 3 7 5 8 right 4 1 2 6 3 7 5 8 right
  4. A* -> queue = expand(initial) while queue is not empty:

    dequeue move from queue if move is solution: return move concat expand(move) to queue sort queue by heuristic
  5. expand(state) -> moves = [] if left valid move: add

    state.move(left) to moves if right valid move: add state.move(left) to moves if up valid move: add state.move(left) to moves if down valid move: add state.move(left) to moves return moves
  6. 4 1 2 6 3 7 5 8 4 2

    6 1 3 7 5 8 4 1 2 6 3 7 5 8 4 1 2 6 5 3 7 8 4 1 2 6 3 7 5 8
  7. Balance as of 12/31/2013 Less Payment 02/14 /2014 Chk#00062440 SUMMER

    DAY 8889-2 DA The Tymes: So Much In Love 0.09100 11 1.00 1.00 Digital Royalty Earned 1.00 BRISTOL STOMP 8896 -2 CD Top Teen Dance Hits (1958-1964) 0.09100 30 2. 73 2.73 DANCE THE MESS AROUND 8897-2 CD The Very Best of Chubby Checker 0 .09100 254 23 . 11 23. 11
  8. fin