11700 - Pipes

All about problems in Volume CXVII. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

11700 - Pipes

Postby koosha » Tue Oct 27, 2009 7:02 am

Hi !
I don't think this problem can be solved by backtracking algorithm in efficient time, isn't it? could you introduce me an algorithm to solve it? tnx!
koosha
New poster
 
Posts: 1
Joined: Wed Apr 02, 2008 10:03 pm

Re: 11700 - Pipes

Postby Angeh » Fri Sep 03, 2010 9:50 am

of course A simple Backtracking with A little Pruning Will work well...
notice that the Branching factor is not 4 ...
1-there are only 2 valid rotation for cell row=1,col=1 if the number of lines in it is 1 , else you have only one valid rotation ...
2-never you need to rotate an empty or complete Full Grid ...
>>>>>>>>> A2
Beliefs are not facts, believe what you need to believe;)
Angeh
Experienced poster
 
Posts: 108
Joined: Sat Aug 08, 2009 2:53 pm


Return to Volume CXVII

Who is online

Users browsing this forum: No registered users and 0 guests