Assignment#2 Deadline:12/5/2025
1. Define the following graph terminologies with examples:
• Vertex
• Edge
• Degree of a vertex
• Path
• Cycle
2. How can graphs be represented in computer memory? Explain with an example using:
• Adjacency Matrix
• Adjacency List
3. What is the difference between connectedness in directed and undirected graphs?
Provide a simple diagram for each.
4. What is the difference between an Euler path and a Hamiltonian path? Give one
example of each using a small graph.
5. Determine whether a path exists between vertex A and vertex D in the following
undirected graph:
Vertices: A, B, C, D
Edges: (A, B), (B, C), (C, D)
Does a path exist between vertex A and vertex D? If yes, list the path.