Search found 5 matches
- Sun Sep 27, 2009 10:36 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11685 - Moveable maze
- Replies: 1
- Views: 2759
11685 - Moveable maze
Have no idea how to solve this problem. Any hints?
- Sun Sep 27, 2009 10:31 pm
- Forum: Algorithms
- Topic: 15 queens
- Replies: 1
- Views: 2611
Re: 15 queens
I think you can try implementing dancing links technique proposed by Knuth. Look at his paper:
http://www.google.com/url?q=http://www-cs-faculty.stanford.edu/~uno/papers/dancing-color.ps.gz&ei=a8u_SrD4CojS8AbenOS5AQ&sa=X&oi=spellmeleon_result&resnum=2&ct=result&usg=AFQjCNFdmx1RwjzHXqprQeg1RaBKlw6o4w ...
http://www.google.com/url?q=http://www-cs-faculty.stanford.edu/~uno/papers/dancing-color.ps.gz&ei=a8u_SrD4CojS8AbenOS5AQ&sa=X&oi=spellmeleon_result&resnum=2&ct=result&usg=AFQjCNFdmx1RwjzHXqprQeg1RaBKlw6o4w ...
- Sun Oct 21, 2007 11:41 am
- Forum: Volume 113 (11300-11399)
- Topic: 11311 - Exclusively Edible
- Replies: 5
- Views: 6180
- Sun Oct 21, 2007 11:10 am
- Forum: Volume 113 (11300-11399)
- Topic: 11311 - Exclusively Edible
- Replies: 5
- Views: 6180
11311 - Exclusively Edible
Trying to solve this problem using dp as follows:
d[n][m][pi][pj][player] - stores who is will win if we have field n x m, and the bad piece is at cell (pi,pj) and current turn to cut the cake is at the hensel (player = 0) and at gretel(player = 1). But I'm constantly getting WA. Could this approach ...
d[n][m][pi][pj][player] - stores who is will win if we have field n x m, and the bad piece is at cell (pi,pj) and current turn to cut the cake is at the hensel (player = 0) and at gretel(player = 1). But I'm constantly getting WA. Could this approach ...
- Sun Oct 21, 2007 3:32 am
- Forum: Volume 113 (11300-11399)
- Topic: 11312 - Flipping Frustration
- Replies: 4
- Views: 2832
11312 - Flipping Frustration
I got that this problem is solved using diophant's method. In case the given test case has a solution and after we get a general solution for x (number of left flips) and y (number of right flips), how shall we get the minimum one?