8 |
|
so, basically, we got this question for homework, and i have literally no idea what to do. the only thing i know is that the formula will be quadratic. so heres the problem |
|
8 |
|
I don't think this has anything to do with quadratics..? |
|
i think your misunderstanding the moves. lets say we start out with this G G - B B. we CAN swap a B or G with an adjacent -, but we can't SWAP a B/G with a B/G, we have to leapfrog them. |
|
So, one person, can jump over one and only one other person (irrespective of gender..?), if this lands them where the empty space is? |
|
yes that is completely right |
|
Hum, how could we use mathematics to represent this then? I can see how a program can use an array to simulate and shift the values around according to the rules to achieve the desired result, but as far as obtaining the least number of moves.. |
|
Bookmarks