Will Schell's COG 366
Heuristic Problem Solving Part 3 - (hex rules applied)

The Rules

"production" is a rule such as oneP(...), zeroP(...), etc.
Rule 1: IF there are 1 or more productions in an output, THEN add .1 for each production.
Rule 2: IF there are 1 or more plus sign(+) THEN add .01 for each one.
Rule 3: IF there are 1 or more minus sign(-) THEN add .025 for each one.
Rule 4: IF there are 1 or more multiplication sign(*) THEN add .03 for each one.
Rule 5: IF there are 1 or more division sign(/) THEN add .1 for each one.
            

Rules Applied to Heuristic

if the heuristic is closer to 1.0, then it is harder.
if the heuristic is closer to 0.0, then it is easier.
H1 – if sameP(A,B) ^ zeroP(C,D,E) ^ oneP(G) then (( A / B ) + zeroX(C,D,E))

HEX(H1): .1 + .01 + .1 = .21

H2 – if sameP(A,B) and goalP(C,D,E) then (( A – B ) + goal(C,D,E))

HEX(H2): .025 + .01 + .1 = .126

H3 – if zeroP(A) and goalP(B) and numbersP(C,D,E) then ( B + ( A * ( C * ( D * E ) ) ) )

HEX(H3): .01 + .03 + .03 + .03 + .03 = 1.3

H4 – if sameP(A,B) and goalP(C) and numbersP(D,E) then (C + ( ( A - B ) * ( D * E ) ) )

HEX(H4): .01 + .025 + .03 + .03 = .095

H5 – if oneP(A) and zeroP(B,C,D), and onemoreP(E,G) then ( ( E - A ) + zeroX(C,D,E) )

HEX(H5): .025 + .01 + .1 = .126

H6 – if oneP(A) and oneP(B) and zeroP(C,D) and twomoreP(E,G) then ( ( E - ( A + B ) ) + zeroX(C,D) )

HEX(H6): .025 + .01 + .01 + .1 = .145

H7 – if sameP(A,B) and sameP(C,D) and twomoreP(E,G) then ( E - ( ( A / B ) + ( C / D ) ) )

HEX(H7): .025 + .1 + .01 + .1 = .235

H8 – if twoP(A,B) and zeroP(C,D) and twomoreP(E,G) then ( ( E - twoX(A,B) ) + zeroX(C,D) )

HEX(H8): .025 + .1 + .01 + .1 = .226

H9 – if sameP(A,B,C,D,E,G) then (A + ( ( B - C ) + ( D - E ) ) )

HEX(H9): .01 + .025 + .01 + .025 = .07