10768 - Planarity

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

Moderator: Board moderators

misof
A great helper
Posts: 430
Joined: Wed Jun 09, 2004 1:31 pm

Re: 10768 Planarity -- what am I doing wrong?

Post by misof »

ReiVaX18 wrote:
misof wrote: ...
An example on where's the difference: Let N=9. Make a K_5 on vertices 1,2,3,4,5. Delete the edge 4-5. Add edges 4-6, 5-6. Make a K_4 on vertices 6,7,8,9. This graph cannot be reduced and thus it is NOT homeomorphic to any graph containing K_5 or K_{3,3}. But its subgraph (induced by vertices 1,2,3,4,5,6) IS homeomorphic to K_5 and THEREFORE this graph is NOT planar. (The problem statement says that it is.)

Does anybody know whether the test data was changed?
It's homeomorphic to itself, that contains the subgraph K_5, so the problem statement says it's not planar.
No, you're wrong. I agree that my graph is homeomorphic to itself - but it doesn't contain K_5 as a subgraph! (Note that the graph doesn't contain the edge 4-5.)

As the correct version of Kuratowski's theorem states, my graph isn't planar, because it contains K_5 as a minor -- in other words, it contains a subgraph homeomorphic to K_5.
Mohammad Mahmudur Rahman
Experienced poster
Posts: 154
Joined: Sat Apr 17, 2004 9:34 am
Location: EEE, BUET

Post by Mohammad Mahmudur Rahman »

I have got WA with your code submitting in both C & C++ but no CE. :roll: Most probably u r submitting by e-mail. If it is, then try using -
http://acm.uva.es/problemset/submit.php
You should never take more than you give in the circle of life.
medv
Learning poster
Posts: 85
Joined: Sun Jul 14, 2002 1:17 pm

All OK!

Post by medv »

Thank you!

I submitted through email and it cut lines of program
Niaz
Learning poster
Posts: 77
Joined: Fri Dec 17, 2004 11:06 am
Location: East West University, Dhaka, Bangladesh
Contact:

Post by Niaz »

It is better to submit problems using submit-o-matic and also not by pasting but by uploading the code. In case of pasting, some times I got CE and finally I found (from the reply mail) that some of the lines (specially from the bottom or big lines from the right side) have been broken/deleted automatically at the time of uploading raw text. That's why FILE uploading is a good practice for submitting your code. :)
Please join The ACM Solver Group at Yahoo
http://groups.yahoo.com/group/acm_solver/
lord_burgos
New poster
Posts: 43
Joined: Mon Oct 13, 2003 4:54 pm
Location: Mexico
Contact:

10768 I got AC , why?

Post by lord_burgos »

in my program , send condition

Code: Select all


 if(k33(0,0)) return 0;
 if(k5(0,0)) return 0;

I got ac,
but send the same code , changing condition to

Code: Select all

  number_nodos = 0;
  for(x = 1; x <= n; x++){ b = 0;
    for(y = 1; y <= n; y++) if(g[x][y]){ graph[x] |= ((int)1<<y); b = 1;}
    if(b == 1) number_nodos++;
  }


 if(number_nodos == 6 && k33(0,0)) return 0;  /*only search when number_nodos is 6 ???????????? */

 for(x = 1; x <= n; x++) graph[x] |= ((int)1<<x);


 if(number_nodos == 5 && k5(0,0)) return 0; /*only search when number_nodos is 5 ???????????? */

and I goto ac, too
:evil: why?

k5 is subset of k20 , or not? and k20 is nonreducible, or not?
-------------------------------------------
Shanghai mi primer mundial :D

Post Reply

Return to “Volume 107 (10700-10799)”