Unit summary

A graph has vertices and edges; the sum of degrees equals twice the number of edges. Complete graphs Kₙ have n(n−1)/2 edges. Graphs may be connected, directed or weighted. A connected graph has an Euler circuit when all degrees are even and an Euler path when exactly two are odd; Hamiltonian cycles visit every vertex once and have no simple test. A tree has n − 1 edges and a unique path between vertices; spanning trees and minimum spanning trees (Kruskal, Prim) connect all vertices cheaply. Planar graphs satisfy v − e + f = 2 and e ≤ 3v − 6; K₅ and K₃,₃ are non-planar.

Glossary

Term Meaning
Vertex A node of a graph
Edge A line joining two vertices
Degree Number of edges at a vertex
Complete graph Every pair of vertices is joined
Euler circuit Closed walk using every edge once
Hamiltonian cycle Cycle visiting every vertex once
Tree Connected graph with no cycle
Spanning tree Tree containing all vertices of a graph
Planar graph Graph that can be drawn without crossings
Region A face of a planar drawing

Question bank

Short answer questions

  1. State the handshaking lemma.
  2. Condition for an Euler circuit.
  3. How many edges does a tree with 12 vertices have?
  4. State Euler's formula for planar graphs.
  5. Why is K₅ not planar?

Long answer questions

  1. Explain types of graphs and graph terminology.
  2. Explain Euler and Hamiltonian graphs with examples.
  3. Explain trees and find a minimum spanning tree using Kruskal's algorithm.
  4. Explain planar graphs and Euler's formula.
  5. Prove that a tree with n vertices has n − 1 edges.

Sources

  • Official BCA syllabus Mathematics Foundations to Computer Science I, course code CC101, Unit III