


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Assignment No. 02 Spring 2025 CS502- Fundamentals of Algorithms Total Marks: 15 Due Date: 23-06- Instructions Please read the following instructions carefully before solving & submitting assignment: It should be clear that your assignment will not get any credit (zero marks) if: The assignment is submitted after the due date. The submitted assignment is other than MS Word file. The submitted assignment does NOT open, or file is corrupted. Uploading instructions For clarity and simplicity, you are required to upload/submit only one .doc/docx file. Lectures: Lectures 24 to 28 are covered in this assignment. Objectives The objectives of this assignment are: To be able to understand the concept of Graphs and Adjacency list. To be able to understand the concept of In-Degree and Out-Degree. For any query about the assignment, contact at [email protected]
Question No. 1 Marks: 05 The following Graph shows the road connections among four cities labeled as A, B, C, and D. Your task is to create an adjacency list to accurately represent it. Note: You can either use MS word/Any tool for creating the adjacency list OR you can draw it on paper and paste the image in solution.
List down In and Out- Degrees of vertices of the given directed graph. Vertex In Degree Out Degree A 3 2 B 3 0 C 2 1 D 1 2 E 0 4 Good Luck! Total Marks: 15