Diffing "thing 1" and "deadmau5 unhooked"

 Title: thing 1 deadmau5 unhooked Author: Cameron Nowzari Cameron Nowzari Submitted: 2010-11-17 15:46:05 UTC 2010-11-17 15:53:55 UTC Status: Passed Passed Score: 808.719 808.817 Result: 4009 (cyc: 10, node: 2467) 4009 (cyc: 10, node: 2476) CPU Time: 67.083 67.301 Code: ```function [thrustRow, thrustCol] = solver(chart, aIndex, bIndex, maxThrottle) [thrustRow1, thrustCol1] = nickelfelpeterv3(chart, aIndex, bIndex, maxThrottle); score1 = runsolution(thrustRow1, thrustCol1, chart(:,:,2), chart(:,:,1), aIndex, bIndex); if score1<18 thrustRow=thrustRow1; thrustCol=thrustCol1; return end [thrustRow0, thrustCol0, score0] = nickelfelpeterv2(chart, aIndex, bIndex, maxThrottle); if score0 ay) - ONE; x_dir = 2*(bx > ax) - ONE; fuel = Inf(ny,nx); fuel = Inf*repmat([ones(1,nx)],ny,1); fuel(aIndex) = 0; fuel_to_reverse = fuel; xvel = zeros(ny,nx); yvel = zeros(ny,nx); checked = zeros(ny,nx); previous_stop = zeros(ny,nx); min_fuel = 0; [cost_to_B cost_to_B_idx] = min(fuel_to_reverse(:) + dist_to_B(:)); zoon = nx*ny*SDBzoom.^2; for i = 1:2 SDB_tf = dist_to_B(:)<=zoon(i); SDB_idx = find(SDB_tf); SDBchecked = checked(SDB_tf); SDBfuel = fuel(SDB_tf); SDBfuel_to_reverse = fuel_to_reverse(SDB_tf); SDBdist_to_B_w = dist_to_B_w(SDB_tf); SDBdist_to_B = dist_to_B(SDB_tf); SDBxvel = xvel(SDB_tf); SDByvel = yvel(SDB_tf); SDBX = X(SDB_tf); SDBY = Y(SDB_tf); SDBprevious_stop = previous_stop(SDB_tf); SDBcost_to_B_idx = find(cost_to_B_idx==SDB_idx); it = 0; slowDown = maxThrottle+SDBdist_to_B/4-4; while ( min_fuel <= cost_to_B && ~all(SDBchecked) && it < SDBiter(i)) it = it + 1; metrix = SDBfuel + SDBchecked + SDBdist_to_B_w; [dummy,i_p] = min(metrix(:)); i_p_full = SDB_idx(i_p); min_fuel = SDBfuel(i_p); i_y = rem(i_p_full - 1,ny) + ONE; i_x = (i_p_full - i_y)/ny + ONE; i_vy = SDByvel(i_p) + y_winds(i_p_full); i_vx = SDBxvel(i_p) + x_winds(i_p_full); i_new_vy = SDBY - i_y; i_new_vx = SDBX - i_x; i_thrust = abs(i_new_vx - i_vx) + abs(i_new_vy - i_vy); i_fuel = i_thrust + min_fuel; i_reacheable = (i_thrust <= maxThrottle) & (abs(i_new_vy+y_winds(i_p_full))+abs(i_new_vx+x_winds(i_p_full))