Top Banner Ad

BCS303 — Unit 5: Graphs

Table of Contents (42 sections)

BCS303 · Discrete Structures & Theory of Logic · Unit 5

Graphs

Unit Scope & Exam Weightage: This unit covers Definition and terminology, Representation of graphs, Multigraphs, Bipartite graphs, Planar graphs, Isomorphism and Homeomorphism of graphs, Euler and Hamiltonian paths, Graph coloring, Combinatorics: Introduction, Counting Techniques and Pigeonhole Principle. The corpus records 14 PYQ clusters worth about 73 marks, the largest BCS303 unit. Handshaking, 3-regular graphs, pigeonhole proofs and planarity inequalities account for most 7-mark questions, while counting and representation supply reliable 2-mark marks.


Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)

Priority Topic (Exact Syllabus) PYQs Asked Marks Weightage Tag
1 Pigeonhole Principle 3 (2023-24, 2024-25, 2025-26) 7m × 3 Survival Mode Proof
2 Definition and terminology 3 (2025-26 ×3) 7m × 3 Survival Mode Proof
3 Planar graphs 2 (2023-24 ×2) 7m + 7m Diagram Proof
4 Counting Techniques 2 (2024-25, 2025-26) 2m + 2m Numerical
5 Representation of graphs 1 (2024-25) 2m Numerical
6 Euler and Hamiltonian paths 2 (2023-24, 2025-26) 2m + 2m Diagram
7 Isomorphism and Homeomorphism of graphs 1 (2024-25) 7m Comparison
8 Graph coloring integrated in Definition & terminology PYQ 7m (shared) Supporting Concept
9 Bipartite graphs integrated in Planar graphs PYQ 7m (shared) Supporting Concept
10 Multigraphs 0 direct — Predicted
11 Combinatorics: Introduction 0 direct — Predicted

2-Hour Last-Night Survival Checklist:

  1. Handshake theorem (#2): ∑v∈Vdeg⁡(v)=2∣E∣\sum_{v\in V}\deg(v)=2|E|. Possible degrees are 0,…,n−10,\dots,n-1, but degree 0 and degree n−1n-1 cannot coexist, so nn people have at most n−1n-1 distinct degree values — two must match.
  2. 3-regular and decomposition (#2): sum of degrees =3n=2∣E∣=3n=2|E|, hence nn is even; if a connected graph splits into two subgraphs with disjoint vertex sets, a crossing edge/path contradicts connectedness.
  3. Pigeonhole (#1): if NN objects go into kk boxes, some box has at least ⌈N/k⌉\lceil N/k\rceil. Hence 13 people / 12 months → 2, and 37 homes / 6 colours → ⌈37/6⌉=7\lceil37/6\rceil=\mathbf{7}.
  4. Planarity (#3): K5K_5: ∣E∣=10>3∣V∣−6=9|E|=10>3|V|-6=9; K3,3K_{3,3} satisfies 9≤129\le12 but violates the bipartite bound ∣E∣≤2∣V∣−4=8|E|\le2|V|-4=8; K3,4K_{3,4} contains K3,3K_{3,3}.
  5. Fast 2-marks (#4/#5/#6): 4 digits with repetition → 44=2564^4=256; DISCRETE → 8!/2!=201608!/2!=20160; cycle A ⁣− ⁣B ⁣− ⁣C ⁣− ⁣D ⁣− ⁣AA\!-\!B\!-\!C\!-\!D\!-\!A adjacency rows 0110/1010/0101/10100110/1010/0101/1010; subdividing an edge of K3K_3 gives a homeomorphic, non-isomorphic graph.

1. Definition and Terminology

Graph: G=(V,E)G=(V,E) consists of a finite non-empty vertex set VV and an edge set EE of unordered pairs {u,v}\{u,v\} (undirected graph) or ordered pairs (directed graph). The degree deg⁡(v)\deg(v) is the number of edges incident with vv (a loop counts twice).

1.1 Core Terms

Term Meaning
Adjacent vertices joined by an edge
Incident edge has the vertex as an endpoint
Degree / valency number of incident edges
Regular graph every vertex has the same degree rr
Complete graph KnK_n every pair of nn vertices is joined
Path walk with no repeated vertices
Circuit / cycle closed path with no repeated vertex except start = end
Connected graph a path exists between every pair of vertices

1.2 Handshaking Theorem

∑v∈Vdeg⁡(v)=2 ∣E∣\sum_{v\in V}\deg(v)=2\,|E|

Every edge contributes exactly 1 to the degree of each of its two endpoints, so the degree sum counts every edge twice. Consequently the number of odd-degree vertices is always even.

Application — equal handshake counts: in a room of n≥2n\ge2 people, degrees lie in {0,1,…,n−1}\{0,1,\dots,n-1\}. A person with degree n−1n-1 shook everyone's hand, so nobody can have degree 0; thus either 0 or n−1n-1 is missing. At most n−1n-1 different degree values are available for nn people, so two degrees coincide by the pigeonhole principle.

1.3 Regular Graphs and Decomposition

For a rr-regular graph on nn vertices, ∑deg⁡(v)=rn=2∣E∣\sum\deg(v)=rn=2|E|. A 3-regular graph therefore satisfies 3n=2∣E∣3n=2|E|; since 2∣E∣2|E| is even and 3 is odd, nn must be even.

If a connected GG is decomposed into subgraphs g1,g2g_1,g_2 whose vertex sets are disjoint, take u∈g1,v∈g2u\in g_1,v\in g_2. A uu–vv path must cross from g1g_1 to g2g_2; the crossing edge has an endpoint in each set and cannot belong wholly to either subgraph. This contradicts the decomposition covering GG, so g1,g2g_1,g_2 must share a vertex.

Examiner Tip: Use the four-beat proof for graph statements: name the formula, apply the given degree condition, derive the parity/count, then state the conclusion. For decomposition, the crossing-edge contradiction is the scored sentence.

After-Topic PYQ (2025-26 — 7 Marks | Survival Mode): Show that in any room of people who have been doing handshaking there will always be at least two people who have shaken hands the same number of times.

After-Topic PYQ (2025-26 — 7 Marks | Survival Mode): Let GG be a 3‑regular graph with nn vertices. What is the sum of the degrees of the vertices? Show that in such a graph nn must be even.

After-Topic PYQ (2025-26 — 7 Marks | Survival Mode): Prove that if a connected graph GG is decomposed into two subgraphs g1g_1 and g2g_2, there must be at least one vertex common between g1g_1 and g2g_2.

After-Topic PYQ (2024-25 — 7 Marks): Express the following (i) Euler graph and Hamiltonian graph (ii) Chromatic number of a graph (iii) Walk and path (iv) Bipartite graph


2. Representation of Graphs

Adjacency matrix: for a simple graph with vertices v1,…,vnv_1,\dots,v_n, the n×nn\times n matrix AA has Aij=1A_{ij}=1 when vivj∈Ev_i v_j\in E, else 0. For an undirected graph AA is symmetric and its diagonal is 0 (no loops).

2.1 Worked — Cycle on Four Vertices

For V={A,B,C,D}V=\{A,B,C,D\} and E={(A,B),(B,C),(C,D),(D,A)}E=\{(A,B),(B,C),(C,D),(D,A)\}:

A=[0110101001011010]rows/columns in order A,B,C,DA=\begin{bmatrix} 0&1&1&0\\ 1&0&1&0\\ 0&1&0&1\\ 1&0&1&0 \end{bmatrix} \quad\text{rows/columns in order } A,B,C,D

Each row has two 1s because every vertex of the cycle has degree 2. Other representations are the adjacency list A:[B,D]A:[B,D], B:[A,C]B:[A,C], C:[B,D]C:[B,D], D:[C,A]D:[C,A] and the incidence matrix (rows = vertices, columns = edges).

Examiner Tip: State the row/column order before writing the matrix. Check symmetry and row sums: for an undirected graph the matrix must be symmetric and each row sum must equal that vertex's degree.

After-Topic PYQ (2024-25 — 2 Marks): Illustrate the following graph using an adjacency matrix: A graph with vertices V={A,B,C,D}V = \{A, B, C, D\} and edges E={(A,B),(B,C),(C,D),(D,A)}E = \{(A, B), (B, C), (C, D), (D, A)\}.


3. Multigraphs Predicted

Multigraph: a graph in which more than one edge may join the same pair of vertices (parallel edges). A pseudograph additionally allows loops, edges from a vertex to itself.

Graph type Parallel edges? Loops? Degree effect
Simple graph No No degree = number of neighbours
Multigraph Yes No parallel edges each add 1
Pseudograph Yes Yes a loop adds 2 to the degree

The adjacency matrix of a multigraph stores the number of parallel edges AijA_{ij} rather than just 0/1; the handshaking theorem still holds. This topic has no PYQ yet, so a short definition plus the loop-counting rule is enough for a predicted 2-mark answer.

Examiner Tip: For a predicted multigraph question, define parallel edges, state that a loop contributes 2 to degree, and verify ∑deg⁡=2∣E∣\sum\deg=2|E| on a tiny example with two parallel edges and one loop.


4. Bipartite Graphs

Bipartite graph: G=(V1∪V2,E)G=(V_1\cup V_2,E) where V1∩V2=∅V_1\cap V_2=\varnothing and every edge has one endpoint in V1V_1 and one in V2V_2. Equivalently, GG contains no odd cycle.

4.1 Complete vs Bipartite

Feature Complete graph KnK_n Complete bipartite graph Km,nK_{m,n}
Edges every pair of vertices only across the two parts
Edge count n(n−1)/2n(n-1)/2 mnmn
Degrees n−1n-1 for every vertex nn in part 1, mm in part 2
Triangles present for n≥3n\ge3 none
Example K5K_5 has 10 edges K3,4K_{3,4} has 12 edges
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
    L1 --- R1
    L1 --- R2
    L1 --- R3
    L1 --- R4
    L2 --- R1
    L2 --- R2
    L2 --- R3
    L2 --- R4
    L3 --- R1
    L3 --- R2
    L3 --- R3
    L3 --- R4

K3,4K_{3,4} has ∣V∣=7|V|=7, ∣E∣=12|E|=12 and contains K3,3K_{3,3} as the subgraph induced by any three of the four right-hand vertices. Because K3,3K_{3,3} is non-planar, K3,4K_{3,4} is non-planar.

Examiner Tip: The comparison question wants one structural difference and one count: K5K_5 joins all pairs, K3,4K_{3,4} joins only across parts; then use the K3,3K_{3,3} subgraph for non-planarity.


5. Planar Graphs

Planar graph: a graph drawable in the plane with no edge crossings. A drawing without crossings divides the plane into regions (faces); Euler's formula for a connected planar graph is ∣V∣−∣E∣+∣F∣=2|V|-|E|+|F|=2.

5.1 Necessary Inequalities

simple planar, ∣V∣≥3:∣E∣≤3∣V∣−6\text{simple planar, } |V|\ge3:\quad |E|\le 3|V|-6 bipartite planar, ∣V∣≥3:∣E∣≤2∣V∣−4\text{bipartite planar, } |V|\ge3:\quad |E|\le 2|V|-4

The first follows because every face has at least 3 edges, so 2∣E∣≥3∣F∣2|E|\ge3|F| with Euler's formula. In a bipartite planar graph there are no triangles, so every face has at least 4 edges and 2∣E∣≥4∣F∣2|E|\ge4|F|, giving the stronger second bound.

5.2 K5K_5 and K3,3K_{3,3}

Graph VV EE Test Verdict
K5K_5 5 10 10>3(5)−6=910>3(5)-6=9 non-planar
K3,3K_{3,3} 6 9 9≤3(6)−6=129\le3(6)-6=12 passes, but 9>2(6)−4=89>2(6)-4=8 non-planar
K3,4K_{3,4} 7 12 contains K3,3K_{3,3}; also 12>2(7)−4=1012>2(7)-4=10 non-planar
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
    A --- B
    A --- C
    A --- D
    A --- E
    B --- C
    B --- D
    B --- E
    C --- D
    C --- E
    D --- E

The K5K_5 drawing is shown with all ten pairwise edges; any attempt to redraw it without crossings fails by the inequality above.

Examiner Tip: When a graph passes ∣E∣≤3∣V∣−6|E|\le3|V|-6, do not declare it planar — that test is only necessary. For bipartite graphs use ∣E∣≤2∣V∣−4|E|\le2|V|-4, and for K3,4K_{3,4} cite the K3,3K_{3,3} subgraph.

After-Topic PYQ (2023-24 — 7 Marks): Compare bipartite and complete graph with example. Draw K3,4K_{3,4} and K5K_{5}. Explain why these two graphs are not planar.

After-Topic PYQ (2023-24 — 7 Marks): Show that K3,3K_{3,3} satisfies the inequality ∣E∣≤3∣V∣−6|E|\le 3|V|-6, but it is non‑planar. (VV = number of vertices, EE = number of edges, RR = number of regions)


6. Isomorphism and Homeomorphism of Graphs

Isomorphic: G1≅G2G_1\cong G_2 if a bijection f:V1→V2f:V_1\to V_2 preserves adjacency. Necessary checks include equal ∣V∣|V|, equal ∣E∣|E| and the same degree sequence. Homeomorphic: two graphs become isomorphic after replacing edges by paths (subdivision) — i.e. one is obtained from the other by inserting degree-2 vertices on edges.

6.1 Worked — K3K_3 and Its Subdivided Edge

Let K3K_3 have vertices A,B,CA,B,C and edges AB,BC,CAAB,BC,CA. Insert a new vertex SS in the middle of ABAB, giving edges AS,SB,BC,CAAS,SB,BC,CA.

%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
    A --- S
    S --- B
    B --- C
    C --- A
  • Not isomorphic: K3K_3 has 3 vertices and 3 edges; the subdivided graph has 4 vertices and 4 edges. A bijection of vertex sets is impossible.
  • Homeomorphic: the subdivided graph is obtained from K3K_3 by subdividing edge ABAB exactly once, which is the defining operation of homeomorphism. Both reduce to K3K_3 when degree-2 subdivision vertices are suppressed.

Examiner Tip: Give both verdicts explicitly: "not isomorphic" with the vertex-count invariant, and "homeomorphic" with the subdivision construction. Writing only one of the two loses half the marks.

After-Topic PYQ (2024-25 — 7 Marks): Examine whether the graphs K3K_3 and a graph formed by adding a single vertex in the middle of one edge of K3K_3 are homeomorphic or not.


7. Euler and Hamiltonian Paths

Euler path/circuit: a trail using every edge exactly once; if it starts and ends at the same vertex it is an Euler circuit. Hamiltonian path/circuit: a path/cycle visiting every vertex exactly once.

7.1 Conditions

Concept Condition
Euler circuit connected and every vertex has even degree
Euler path (not circuit) connected and exactly two vertices have odd degree
Hamiltonian circuit no simple necessary-and-sufficient condition; Dirac: $\deg(v)\ge

7.2 Path Graph P4P_4

%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
    A --- B
    B --- C
    C --- D

The sequence A−B−C−DA-B-C-D is a Hamiltonian path because it visits every vertex once. It has no Hamiltonian circuit: the endpoints A,DA,D have degree 1, so any cycle returning to AA would have to reuse edge ABAB.

Examiner Tip: Contrast edge-coverage (Euler) with vertex-coverage (Hamiltonian). For "path but no circuit", a simple path P4P_4 is the cleanest drawing: degree-1 endpoints make a cycle impossible.

After-Topic PYQ (2025-26 — 2 Marks): Draw a graph that has a Hamiltonian path but does not have a Hamiltonian circuit.

After-Topic PYQ (2023-24 — 2 Marks): Compare Euler circuit and Hamiltonian circuit.


8. Graph Coloring

Proper vertex coloring: assigning colors to vertices so adjacent vertices receive different colors. The chromatic number χ(G)\chi(G) is the minimum number of colors needed.

Graph χ(G)\chi(G) Reason
Bipartite graph with at least one edge 2 color the two parts differently
Cycle CnC_n 2 if nn even, 3 if nn odd odd cycles need a third color
Complete graph KnK_n nn every pair is adjacent
Empty graph on nn vertices 1 no edges to conflict

A greedy algorithm using at most Δ(G)+1\Delta(G)+1 colors always works: color vertices one by one, avoiding the colors of already-colored neighbours. The 37-homes/6-colours question in Section 11 is a pigeonhole count, not a proper-coloring constraint.

Examiner Tip: Define proper coloring, give χ(G)\chi(G) with one example each for bipartite, odd cycle and complete graph, and mention the Δ+1\Delta+1 bound. That is a complete predicted answer.


9. Combinatorics: Introduction Predicted

Combinatorics: the mathematics of counting discrete arrangements. The two basic rules are the product rule (independent stages multiply) and the sum rule (mutually exclusive cases add).

P(n,r)=n!(n−r)!,C(n,r)=n!r!(n−r)!P(n,r)=\frac{n!}{(n-r)!},\qquad C(n,r)=\frac{n!}{r!(n-r)!}

PP counts ordered selections (permutations); CC counts unordered selections (combinations). Repetition allowed means each position independently has all choices, giving nrn^r.

This topic has no direct PYQ. A predicted question should state product/sum rules and solve one small arrangement, such as forming 3-letter codes from 5 distinct letters: 5×4×3=605\times4\times3=60 without repetition and 53=1255^3=125 with repetition.

Examiner Tip: Before computing, decide whether order matters and whether repetition is allowed. Write that sentence; it earns the reasoning mark even if the arithmetic is small.


10. Counting Techniques

Repeated-letter arrangement: for a multiset of nn objects with n1,n2,…n_1,n_2,\dots identical of each kind, the number of distinct arrangements is n!n1! n2!⋯\dfrac{n!}{n_1!\,n_2!\cdots}.

10.1 Worked — Four-Digit Numbers

Digits {2,4,6,8}\{2,4,6,8\}, repetition allowed, four positions: each position has 4 independent choices. Hence 44=2564^4=\mathbf{256} numbers. No leading-zero adjustment is needed because 0 is not among the digits.

10.2 Worked — Arranging DISCRETE

DISCRETE has 8 letters: D,I,S,C,R,E,T,E. Only E repeats, twice. Distinct arrangements =8!2!=403202=20160=\dfrac{8!}{2!}=\dfrac{40320}{2}=\mathbf{20160}.

Examiner Tip: For repetition-allowed digits write 4⋅4⋅4⋅44\cdot4\cdot4\cdot4, not 4P44P4. For repeated-letter words, divide by the factorial of each multiplicity — here just 2!2! for the two E's.

After-Topic PYQ (2025-26 — 2 Marks): How many 4‑digit numbers can be formed by using the digits 2, 4, 6, 8 when the repetition of digits is allowed?

After-Topic PYQ (2024-25 — 2 Marks): Solve in how many ways can you arrange the letters in the word "DISCRETE"?


11. Pigeonhole Principle

Pigeonhole principle: if NN objects are placed into kk boxes and N>kN>k, some box contains at least two objects. Generalized form: some box contains at least ⌈N/k⌉\left\lceil N/k\right\rceil objects.

11.1 Proof of the Generalized Form

Suppose every box held at most m=⌊(N−1)/k⌋m=\lfloor (N-1)/k\rfloor objects. Then the total would be at most km≤N−1<Nkm\le N-1<N, a contradiction. Hence some box holds at least ⌈N/k⌉\lceil N/k\rceil objects.

11.2 Applications

  • 13 people, 12 months: 13>1213>12, so at least two people share a birth month.
  • 37 homes, 6 colours: ⌈37/6⌉=⌈6.166…⌉=7\lceil37/6\rceil=\lceil6.166\ldots\rceil=\mathbf7 homes share a colour.
  • Handshake degrees: nn people but at most n−1n-1 usable degree values (0 and n−1n-1 cannot both occur), so two people have equal handshake counts.

Examiner Tip: Identify pigeons and holes in the first line of every solution: people→months, homes→colours, people→possible degree values. Then cite N>kN>k or ⌈N/k⌉\lceil N/k\rceil as the final step.

After-Topic PYQ (2024-25 — 7 Marks): Prove that in any group of 13 people, at least two must have their birthdays in the same month.

After-Topic PYQ (2023-24 — 7 Marks): Explain the Pigeonhole principle. Describe its generalized form. If 6 colors are to paint 37 homes, show that at least 7 of them will be of the same color.


Solved Exam-Ready Questions

Solved Q1 (2025-26 — 7 Marks | Survival Mode)

Q: Show that in any room of people who have been doing handshaking there will always be at least two people who have shaken hands the same number of times.

Solution:

  1. Let there be n≥2n\ge2 people; represent them by vertices and handshakes by edges.
  2. A person's handshake count is a degree in {0,1,…,n−1}\{0,1,\dots,n-1\} — at most nn candidate values.
  3. Degrees 0 and n−1n-1 cannot both occur: if someone shook every other person's hand, nobody can have shaken 0 hands.
  4. Therefore the actual degree values lie in either {0,…,n−2}\{0,\dots,n-2\} or {1,…,n−1}\{1,\dots,n-1\} — at most n−1n-1 distinct values.
  5. The nn people are pigeons and the at-most n−1n-1 degree values are holes.
  6. Since n>n−1n>n-1, the pigeonhole principle forces two people into the same degree value.
  7. Conclusion: at least two people have shaken hands the same number of times.

Solved Q2 (2025-26 — 7 Marks | Survival Mode)

Q: Let GG be a 3‑regular graph with nn vertices. What is the sum of the degrees of the vertices? Show that in such a graph nn must be even.

Solution:

  1. Every vertex has degree 3, so ∑v∈Vdeg⁡(v)=3n\sum_{v\in V}\deg(v)=3n.
  2. By the handshaking theorem, ∑deg⁡(v)=2∣E∣\sum\deg(v)=2|E|, where ∣E∣|E| is the number of edges.
  3. Hence 3n=2∣E∣3n=2|E|.
  4. The right side 2∣E∣2|E| is even, so 3n3n is even.
  5. Since 3 is odd, nn must be even.
  6. Equivalently ∣E∣=3n/2|E|=3n/2 must be an integer, which again requires even nn.
  7. Conclusion: degree sum is 3n3n, and nn must be even.

Solved Q3 (2025-26 — 7 Marks | Survival Mode)

Q: Prove that if a connected graph GG is decomposed into two subgraphs g1g_1 and g2g_2, there must be at least one vertex common between g1g_1 and g2g_2.

Solution:

  1. Assume for contradiction that V(g1)∩V(g2)=∅V(g_1)\cap V(g_2)=\varnothing.
  2. Pick u∈V(g1)u\in V(g_1) and v∈V(g2)v\in V(g_2). Since GG is connected, some path u=w0,w1,…,wk=vu=w_0,w_1,\dots,w_k=v exists.
  3. Along this path there is a first index ii with wi∉V(g1)w_i\notin V(g_1); the edge wi−1wiw_{i-1}w_i leaves g1g_1.
  4. That edge cannot belong to g1g_1, because wi∉V(g1)w_i\notin V(g_1).
  5. It cannot belong to g2g_2 either, because wi−1∉V(g2)w_{i-1}\notin V(g_2) under the disjointness assumption.
  6. Hence the edge is in GG but in neither subgraph, contradicting that g1,g2g_1,g_2 decompose GG.
  7. Conclusion: the assumption is false; g1g_1 and g2g_2 share at least one vertex.

Solved Q4 (2024-25 — 7 Marks)

Q: Express the following (i) Euler graph and Hamiltonian graph (ii) Chromatic number of a graph (iii) Walk and path (iv) Bipartite graph

Solution:

  1. Euler graph: a connected graph with a closed trail that uses every edge exactly once; equivalently every vertex has even degree. Example: C4C_4.
  2. Hamiltonian graph: a graph with a cycle that visits every vertex exactly once. Example: K4K_4. C4C_4 is both Eulerian and Hamiltonian.
  3. Chromatic number χ(G)\chi(G): the minimum number of colours needed so adjacent vertices get different colours; χ(Kn)=n\chi(K_n)=n, χ(C4)=2\chi(C_4)=2, χ(C5)=3\chi(C_5)=3.
  4. Walk: an alternating sequence v0,e1,v1,…,ek,vkv_0,e_1,v_1,\dots,e_k,v_k of vertices and edges. Path: a walk with no repeated vertex.
  5. Bipartite graph: V=V1∪V2V=V_1\cup V_2 with V1∩V2=∅V_1\cap V_2=\varnothing and every edge joining V1V_1 to V2V_2; equivalently no odd cycle. Example: K2,3K_{2,3}.
  6. Contrast: Euler concerns edges, Hamiltonian concerns vertices, colouring concerns conflicts, bipartiteness concerns vertex partition.
  7. Conclusion: these four notions are independent; a graph may have any combination of them.

Solved Q5 (2024-25 — 7 Marks)

Q: Prove that in any group of 13 people, at least two must have their birthdays in the same month.

Solution:

  1. Treat the 13 people as objects (pigeons).
  2. Treat the 12 calendar months as boxes (holes).
  3. N=13>k=12N=13>k=12.
  4. If each month contained at most one birthday, the total would be at most 12 people.
  5. But there are 13 people, so at least one month contains two or more birthdays.
  6. This is exactly the pigeonhole principle.
  7. Conclusion: at least two people share a birth month.

Solved Q6 (2023-24 — 7 Marks)

Q: Explain the Pigeonhole principle. Describe its generalized form. If 6 colors are to paint 37 homes, show that at least 7 of them will be of the same color.

Solution:

  1. Basic principle: if N>kN>k objects are placed into kk boxes, some box contains at least 2 objects.
  2. Generalized form: some box contains at least ⌈N/k⌉\lceil N/k\rceil objects.
  3. Proof: if every box had at most ⌈N/k⌉−1\lceil N/k\rceil-1 objects, the total would be at most k(⌈N/k⌉−1)<Nk(\lceil N/k\rceil-1)<N, impossible.
  4. Here N=37N=37 homes and k=6k=6 colours.
  5. ⌈37/6⌉=⌈6.166…⌉=7\lceil37/6\rceil=\lceil6.166\ldots\rceil=7.
  6. Therefore at least one colour is used on at least 7 homes.
  7. Conclusion: the generalized pigeonhole principle guarantees 7 same-coloured homes.

Solved Q7 (2023-24 — 7 Marks)

Q: Compare bipartite and complete graph with example. Draw K3,4K_{3,4} and K5K_{5}. Explain why these two graphs are not planar.

Solution:

  1. Complete graph KnK_n: every two vertices are joined; K5K_5 has 55 vertices and (52)=10\binom52=10 edges.
  2. Complete bipartite K3,4K_{3,4}: vertices split into parts of sizes 3 and 4; every left vertex joins every right vertex, no edges inside a part; ∣E∣=3×4=12|E|=3\times4=12.
  3. Drawings: use the two Mermaid sketches in Sections 4 and 5 — K3,4K_{3,4} has rows L1–L3 and columns R1–R4; K5K_5 joins all five vertices pairwise.
  4. K5K_5 test: a simple planar graph with ∣V∣≥3|V|\ge3 satisfies ∣E∣≤3∣V∣−6|E|\le3|V|-6. Here 10>3(5)−6=910>3(5)-6=9, so K5K_5 is non-planar.
  5. K3,4K_{3,4} test: it contains K3,3K_{3,3} by taking any three of the four right vertices; since K3,3K_{3,3} is non-planar, any graph containing it is non-planar. Additionally, bipartite planarity requires ∣E∣≤2∣V∣−4=10|E|\le2|V|-4=10, but 12>1012>10.
  6. Conclusion: both graphs fail the necessary planarity tests, hence cannot be drawn without crossings.

Solved Q8 (2023-24 — 7 Marks)

Q: Show that K3,3K_{3,3} satisfies the inequality ∣E∣≤3∣V∣−6|E|\le 3|V|-6, but it is non‑planar. (VV = number of vertices, EE = number of edges, RR = number of regions)

Solution:

  1. K3,3K_{3,3} is bipartite with ∣V∣=3+3=6|V|=3+3=6 and ∣E∣=3×3=9|E|=3\times3=9.
  2. 3∣V∣−6=3(6)−6=123|V|-6=3(6)-6=12, and 9≤129\le12; the general planar inequality is satisfied.
  3. Therefore ∣E∣≤3∣V∣−6|E|\le3|V|-6 is only a necessary condition, not sufficient.
  4. K3,3K_{3,3} is bipartite, so it has no triangles. In any planar bipartite embedding every face has at least 4 boundary edges, so 2∣E∣≥4∣R∣2|E|\ge4|R|, i.e. ∣R∣≤∣E∣/2|R|\le|E|/2.
  5. Euler's formula gives ∣V∣−∣E∣+∣R∣=2|V|-|E|+|R|=2. Substituting ∣R∣≤∣E∣/2|R|\le|E|/2: 2≤∣V∣−∣E∣/22\le |V|-|E|/2, so ∣E∣≤2∣V∣−4|E|\le2|V|-4.
  6. For K3,3K_{3,3}: 2∣V∣−4=12−4=82|V|-4=12-4=8, but ∣E∣=9>8|E|=9>8, contradiction.
  7. Conclusion: K3,3K_{3,3} passes the weak test yet is non‑planar; the bipartite bound proves it.

Solved Q9 (2024-25 — 7 Marks)

Q: Examine whether the graphs K3K_3 and a graph formed by adding a single vertex in the middle of one edge of K3K_3 are homeomorphic or not.

Solution:

  1. K3K_3 has vertices A,B,CA,B,C and edges AB,BC,CAAB,BC,CA; ∣V∣=3|V|=3, ∣E∣=3|E|=3.
  2. Inserting SS into edge ABAB gives edges AS,SB,BC,CAAS,SB,BC,CA; ∣V∣=4|V|=4, ∣E∣=4|E|=4.
  3. Isomorphism test: isomorphic graphs need the same number of vertices; 3≠43\ne4, so they are not isomorphic.
  4. Homeomorphism test: the second graph is obtained from the first by subdividing one edge once.
  5. Suppressing the degree-2 vertex SS merges AS,SBAS,SB back into ABAB, recovering K3K_3.
  6. Graphs related by edge subdivision are homeomorphic by definition.
  7. Conclusion: the graphs are homeomorphic but not isomorphic.

Solved Q10 (2025-26 — 2 Marks)

Q: How many 4‑digit numbers can be formed by using the digits 2, 4, 6, 8 when the repetition of digits is allowed?

Solution: Four positions, each with 4 independent digit choices because repetition is allowed: 4×4×4×4=44=2564\times4\times4\times4=4^4=\mathbf{256}. There is no leading-zero restriction since 0 is not among the given digits.


Solved Q11 (2025-26 — 2 Marks)

Q: Draw a graph that has a Hamiltonian path but does not have a Hamiltonian circuit.

Solution: Take the path graph P4P_4: A−B−C−DA-B-C-D. The sequence A,B,C,DA,B,C,D visits every vertex exactly once, so a Hamiltonian path exists. Vertices AA and DD have degree 1; any circuit through AA would need to enter and leave AA using the same edge ABAB, which is not allowed. Hence no Hamiltonian circuit exists.


Solved Q12 (2024-25 — 2 Marks)

Q: Solve in how many ways can you arrange the letters in the word "DISCRETE"?

Solution: DISCRETE has 8 letters, with E occurring twice and all other letters distinct. The number of distinct arrangements is 8!2!=403202=20160\dfrac{8!}{2!}=\dfrac{40320}{2}=\mathbf{20160}.


Solved Q13 (2023-24 — 2 Marks)

Q: Compare Euler circuit and Hamiltonian circuit.

Solution: An Euler circuit traverses every edge exactly once and returns to the start; it exists iff the graph is connected and every vertex has even degree. A Hamiltonian circuit visits every vertex exactly once and returns to the start; no comparable simple criterion exists (Dirac's deg⁡(v)≥∣V∣/2\deg(v)\ge |V|/2 is sufficient only). Example: K3K_3 has both; the path A−B−C−DA-B-C-D has neither circuit.


Solved Q14 (2024-25 — 2 Marks)

Q: Illustrate the following graph using an adjacency matrix: A graph with vertices V={A,B,C,D}V = \{A, B, C, D\} and edges E={(A,B),(B,C),(C,D),(D,A)}E = \{(A, B), (B, C), (C, D), (D, A)\}.

Solution: With rows and columns ordered A,B,C,DA,B,C,D, place 1 where an edge joins the pair and 0 otherwise:

[0110101001011010]\begin{bmatrix} 0&1&1&0\\ 1&0&1&0\\ 0&1&0&1\\ 1&0&1&0 \end{bmatrix}

The matrix is symmetric and every row sums to 2, matching the degree of each vertex in the 4-cycle.


Practice Questions (Self-Test)

  1. (2 Marks) State the handshaking theorem and one consequence about odd-degree vertices.
  2. (7 Marks) Prove that a simple graph with nn vertices cannot have two vertices of degrees 0 and n−1n-1 simultaneously.
  3. (7 Marks) For a 4-regular graph with 18 vertices, find the number of edges.
  4. (7 Marks) Prove that a connected graph decomposed into three subgraphs must have at least two subgraphs sharing a vertex.
  5. (2 Marks) Write the adjacency matrix of the complete graph K4K_4.
  6. (7 Marks) Draw K2,3K_{2,3} and state its degree sequence and edge count.
  7. (7 Marks) Use Euler's formula to prove ∣E∣≤2∣V∣−4|E|\le2|V|-4 for simple bipartite planar graphs.
  8. (7 Marks) Show that K3,3K_{3,3} is not planar even though 9≤3(6)−69\le3(6)-6.
  9. (7 Marks) Give an example of two graphs that are homeomorphic but not isomorphic, and justify both parts.
  10. (7 Marks) In how many ways can the letters of SUCCESS be arranged? State whether any pair of these graphs has the same chromatic number as C5C_5.