Блог пользователя mufasa

Автор mufasa, 15 лет назад, По-английски

How many unique cycles of length 4 present in a complete Undirected graph of 6 vertices? My answer is 45 and i think its not correct because there are only 4 options 1)15 2)30 3)90 4)360 please share your view

  • Проголосовать: нравится
  • -18
  • Проголосовать: не нравится

»
15 лет назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

What's source of the problem? It looks like test question.

»
15 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

the answer is 90, if we consider cycles 1 -> 2 -> 3 -> 1 and 1 -> 3 -> 2 -> 1 as different cycles (directed graph).

  • »
    »
    15 лет назад, скрыть # ^ |
     
    Проголосовать: нравится -16 Проголосовать: не нравится

    sorry i forgot to mention that graph is undirected.SO obviously 90 reduces to 45

    • »
      »
      »
      15 лет назад, скрыть # ^ |
      ← Rev. 4  
      Проголосовать: нравится +5 Проголосовать: не нравится

      It is not so obviously. Forget about directed graph or not, but we can go from x to y, and from y to x for any pair of vertices. The question is: consider we such cycles as one, or they are two different cycles? It is matter for you to go in order Paris, London, Moscow, Berlin, or Berlin, Moscow, London, Paris? Just example. John wants to bring souvenir from Paris to his grandmother in London. And Ivan want to go from Moscow to London. So, for John and Ivan order is matter. Especially if you need to bring a souvenir as soon as possible (perishable food e.g.)

»
15 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится 0 Проголосовать: не нравится

If order and starting vertex don't matter, any set with 4 vertices will uniquely describe a cycle, won't it? The cycle certainly exists, since the graph is complete. So isn't the answer just (6 4) = 6!/(4!2!) = 15 ? [UPD: No, the answer is 90 because of permutations]