Author |
Message |
gilles557
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
tenniscrazy
![](http://compsci.ca/v3/uploads/user_avatars/16168420744a9c16d226a1c.jpg)
|
Posted: Mon Feb 23, 2009 1:40 pm Post subject: RE:grade 2 computer test in China |
|
|
lol im gonna find a grade 2 kid here see if they can do it |
|
|
|
|
![](images/spacer.gif) |
saltpro15
![](http://compsci.ca/v3/uploads/user_avatars/9776171634ced6278d14c2.png)
|
Posted: Mon Feb 23, 2009 2:05 pm Post subject: RE:grade 2 computer test in China |
|
|
got it second try lulz ![Very Happy Very Happy](http://compsci.ca/v3/images/smiles/icon_biggrin.gif) |
|
|
|
|
![](images/spacer.gif) |
Insectoid
![](http://compsci.ca/v3/uploads/user_avatars/13760332514cbd0ce972eaa.jpg)
|
Posted: Mon Feb 23, 2009 4:22 pm Post subject: RE:grade 2 computer test in China |
|
|
took a few tries, but got it to work after I started thinking and stopped clicking. |
|
|
|
|
![](images/spacer.gif) |
DanielG
|
Posted: Mon Feb 23, 2009 7:00 pm Post subject: RE:grade 2 computer test in China |
|
|
I messed up a few times as well, but this isn't actually a hard puzzle, all you have to remember is to check if a move is correct at any point (since you can find out if it was wrong right after) |
|
|
|
|
![](images/spacer.gif) |
SJ
|
Posted: Mon Feb 23, 2009 7:19 pm Post subject: RE:grade 2 computer test in China |
|
|
chinese children knows that frogs prefer to look at the opposite sex if they ahve a choice, so this puzzle cant be very challenging for them |
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Mon Feb 23, 2009 8:54 pm Post subject: Re: grade 2 computer test in China |
|
|
This is the shuttle puzzle, but using frogs instead...it was a question on the usaco training pages...it asked you to output the moves to solve a N shuttle puzzle (where there are N frogs on either side and an empty space between them)...
There is an algorithm for this |
|
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: Tue Feb 24, 2009 8:12 am Post subject: RE:grade 2 computer test in China |
|
|
lol i fail.... |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
andrew.
|
Posted: Tue Feb 24, 2009 9:02 am Post subject: Re: RE:grade 2 computer test in China |
|
|
ecookman @ Tue Feb 24, 2009 8:12 am wrote: lol i fail.... Me too ![Crying or Very sad Crying or Very sad](http://compsci.ca/v3/images/smiles/icon_cry.gif) |
|
|
|
|
![](images/spacer.gif) |
Tallguy
![](http://compsci.ca/v3/uploads/user_avatars/515706924539b443d32a6e.gif)
|
Posted: Tue Feb 24, 2009 2:21 pm Post subject: RE:grade 2 computer test in China |
|
|
i would so fail grade 2, lol
but i finally got it YAY!! |
|
|
|
|
![](images/spacer.gif) |
ecookman
![](http://compsci.ca/v3/uploads/user_avatars/5690458955648ca661c338.gif)
|
Posted: Tue Feb 24, 2009 3:20 pm Post subject: RE:grade 2 computer test in China |
|
|
if only they could jump backwards
and like tall guy...finally |
|
|
|
|
![](images/spacer.gif) |
bugzpodder
![](http://www.vbforums.com/avatar.php?userid=31755&dateline=1038631511)
|
Posted: Tue Feb 24, 2009 3:51 pm Post subject: RE:grade 2 computer test in China |
|
|
service unavailable
FAIL |
|
|
|
|
![](images/spacer.gif) |
saltpro15
![](http://compsci.ca/v3/uploads/user_avatars/9776171634ced6278d14c2.png)
|
Posted: Tue Feb 24, 2009 4:05 pm Post subject: RE:grade 2 computer test in China |
|
|
@A.J., I would like to see an algorithm for this, could it be done along the lines of dynamic programming with a BFS? it seems quite difficult to me |
|
|
|
|
![](images/spacer.gif) |
DanielG
|
Posted: Tue Feb 24, 2009 4:13 pm Post subject: RE:grade 2 computer test in China |
|
|
not really, look at the puzzle and you will notice that at any point only 1 move is accurate and the inaccurate can be noticed right away (after making the mistake), so even dfs should probably work. |
|
|
|
|
![](images/spacer.gif) |
A.J
![](http://compsci.ca/v3/uploads/user_avatars/119833057151651227b0d87.gif)
|
Posted: Tue Feb 24, 2009 4:29 pm Post subject: Re: grade 2 computer test in China |
|
|
saltpro15 wrote:
@A.J., I would like to see an algorithm for this, could it be done along the lines of dynamic programming with a BFS? it seems quite difficult to me
the algorithm doesn't have to do with DP, BFS, DFS, etc...
look at 'empty space'...what do you notice to the movement of it? |
|
|
|
|
![](images/spacer.gif) |
|