|
|
вернуться в форумvery easy It was very easy. Backtracking(перебор с возвратом) Re: very easy Послано svr 15 окт 2006 13:03 I think that it is hard problem and has exp(n) complexity. If remove psevdopractic decoration it is to solve a system boolean equation of 100 unknows Xi with type of Xi^Xj=0; (NotXi)^Xj=0;(NotXi)^(NotXj)=0. Amount of equation is near 10000. Thus we have easy problem for weak tests and very hard problem for detailed test. This situation was brightly shoun for identical Ships problems.Programmers should create code working on all possible tests in prescribed range of variables. Re: very easy Послано svr 16 окт 2006 22:59 Now I am also having Ac(0.031) by using backtracking. I have applied this method to boolean problem not to Graf. But I fear that we all will lost our submits if problem will be rejudged. Re: very easy In worst case in complexy is O(n^2) Re: very easy Yes, it's O(N^2). And resembles another problem of this type: 1382 Re: very easy Послано Stefan 26 май 2009 15:04 does transitive closure algorithm work here? Re: very easy Just a standard 2-SAT problem. |
|
|