Skip to content
GATEiit

GATE CSE 2019 Q22: Number of Hamiltonian cycles in complete graph Kn, n > 2

Syllabus topics: Graphs: connectivity, matching and colouring; Combinatorics: counting, recurrence relations and generating functions

Question

Let G be an undirected complete graph on n vertices, where n>2. Then, the number of different Hamiltonian cycles in G is equal to

Try it: multiple choice: exactly one correct option

Select one option
Wrong answer costs 1/3 mark in GATE.
Show answer and explanation

Answer: C (or D) (official GATE 2019 final answer key)

Concept used: Counting Hamiltonian cycles in Kn depends on what 'different' means: as edge sets there are (n−1)!/2 (fix a start vertex, divide by the two directions); up to relabelling of vertices all are the same cycle, which is why the official key accepts 1 as well.

Concept notes

Loading notes…

First step: Fix one starting vertex, count the orderings of the remaining n−1 vertices, and decide whether a cycle and its reverse (and relabellings) count as different.

Full step-by-step solution

Loading…

Answer from the official final answer key. Found a mistake? Use Report issue and we will fix it.

More questions on Graphs: connectivity, matching and colouring

Every PYQ on this topic →

Share this question

WhatsAppDownload image

Source: official GATE 2019 CS question paper and final answer key, organised by IIT Madras. Question paper · Answer key