GATE CSE 2018 Q53: Degree plus ten times components in adjacent-swap permutation graph
- Engineering Mathematics
- 2 marks
- NAT
- No negative marking
Syllabus topic: Graphs: connectivity, matching and colouring
Question
Let be a graph with vertices, with each vertex labelled by a distinct permutation of the numbers . There is an edge between vertices and if and only if the label of can be obtained by swapping two adjacent numbers in the label of . Let denote the degree of a vertex in , and denote the number of connected components in .
Then, _____.
Try it: numerical answer: type the value
Show answer and explanation
Answer: 109 (official GATE 2018 final answer key)
Concept used: A permutation of n items has n − 1 adjacent positions to swap, and adjacent transpositions generate every permutation, so the graph is connected.
First step: Count the adjacent pairs in a sequence of 100 numbers to get , then ask whether any permutation can be reached from any other by adjacent swaps (think of bubble sort) to get .
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
Source: official GATE 2018 CS question paper and final answer key, organised by IIT Guwahati. Question paper · Answer key
More Engineering Mathematics PYQs
- 2026 Session 1 · Q11Pólya urn: equal red and blue after two steps
- 2026 Session 1 · Q124×4 binary matrices with even parity in every row and column
- 2026 Session 1 · Q13Maximum multiplicity of an eigenvalue of an n×n real matrix
- 2026 Session 1 · Q20Matrix with e2 in its null space: determinant and rank
- 2026 Session 1 · Q32Continuity at 0 of c1·e^x − c2·ln(1/x)
- 2026 Session 1 · Q46Extrema and smoothness of (|x|/2 − x)(x − |x|/2)