Skip to content

Commit bb0a849

Browse files
author
aryan
committed
Added Mathematics Practice Assignment Solutions
1 parent 6b48dbc commit bb0a849

11 files changed

Lines changed: 2971 additions & 0 deletions

File tree

Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
---
2+
title: Week 10 Practice Assignment Solution
3+
weight: 10
4+
tags:
5+
- Mathematics
6+
- Mathematics for Data Science - 1
7+
- Practice Assignment
8+
- Week-10
9+
categories:
10+
- Mathematics Practice Assignment
11+
series:
12+
- Mathematics Practice Assignment
13+
---
14+
15+
Below are all the questions and their solutions extracted from the **Week-10-Practice-Assignment-Solution.pdf**[^1]. The PDF covers graph theory and discrete mathematics topics. The questions and solutions are organized by type and question number.
16+
17+
---
18+
19+
## **1. Multiple Choice Questions (MCQs)**
20+
21+
**Question 1:**
22+
*Suppose we obtain the following DFS tree rooted at node 0 for an undirected graph with vertices $\{0,1,2,3,4,5,6,7,8,9,10\}$.*
23+
24+
**Which of the following cannot be an edge in the original graph?**
25+
(a) $(1,4)$
26+
(b) $(0,4)$
27+
(c) $(7,10)$
28+
(d) $(2,9)$
29+
30+
**Solution:**
31+
In a DFS tree for an undirected graph, edges between vertices in different branches cannot be present in the original graph if they would have already been visited.
32+
33+
- **(a) $(1,4)$:** Both in the same branch—possible.
34+
- **(b) $(0,4)$:** Both in the same branch—possible.
35+
- **(c) $(7,10)$:** In different branches—**cannot be an edge**.
36+
- **(d) $(2,9)$:** Both in the same branch—possible.
37+
38+
**Answer:** **(c) $(7,10)$**[^1][^2][^3]
39+
40+
---
41+
42+
**Questions 2–4** use the following context:
43+
Ten friends in a college decide to have a night party at one of their homes. On the day, the government closes many routes in the city. The graph $G = (V, E)$ represents their homes (nodes) and the open routes (edges).
44+
45+
**Question 2:**
46+
**The possible place for the party is:**
47+
(a) Shiva's house
48+
(b) Abhi's house
49+
(c) Joe's house
50+
(d) Vishi's house
51+
52+
**Solution:**
53+
Shiva's house is reachable by everyone, so it is the best possible place for the party.
54+
**Answer:** **(a) Shiva's house**[^1]
55+
56+
---
57+
58+
**Question 3:**
59+
Let $V_1 = \{\text{Kristi, Shiva, Nia}\}$ and $E_1 = E \cap (V_1 \times V_1)$, i.e., edges with both endpoints in $V_1$.
60+
**Choose the correct option:**
61+
(a) $G_1 = (V_1, E_1)$ is an undirected graph
62+
(b) $G_1 = (V_1, E_1)$ is a cyclic graph
63+
(c) $G_1 = (V_1, E_1)$ will not be a graph
64+
(d) $G_1 = (V_1, E_1)$ is a directed graph
65+
66+
**Solution:**
67+
Given the edges in $E_1$ are directed, $G_1$ is a directed graph.
68+
**Answer:** **(d) $G_1 = (V_1, E_1)$ is a directed graph**[^1][^2][^3]
69+
70+
---
71+
72+
**Question 4:**
73+
**If Joe wants to have the party on his home, then at most how many members can join the party?**
74+
(a) 5
75+
(b) 6
76+
(c) 7
77+
(d) 8
78+
79+
**Solution:**
80+
Joe's home is not reachable by Kristi and Shiva. With 10 members total, 8 can join.
81+
**Answer:** **(d) 8**[^1][^2][^3]
82+
83+
---
84+
85+
## **2. Multiple Select Questions (MSQs)**
86+
87+
**Question 5:**
88+
*Suppose $G$ is a graph (shown in the figure). Let $V$ be the set of vertices of $G$, $V_i$ be the maximum independent set, and $V_c$ be the minimum vertex cover. Which of the following is/are true?*
89+
(a) Cardinality of $V_i$ is 4
90+
(b) Cardinality of $V_c$ is 3
91+
(c) Cardinality of $V_i$ is 5
92+
(d) Cardinality of $V_c$ is 4
93+
94+
**Solution:**
95+
From the figure, the maximum independent set has 4 vertices and the minimum vertex cover has 4 vertices.
96+
**Answer:** **(a) and (d)**[^1]
97+
98+
---
99+
100+
**Question 6:**
101+
*Consider the graph below. Suppose we perform BFS/DFS so that when we visit a vertex, we explore its unvisited neighbors in a random order. Which of the following options are correct?*
102+
(a) If we perform Breadth First Search at node 0, then one of the possible orders in which the nodes will be visited is 01423567
103+
(b) If we perform Depth First Search at node 0, then one of the possible orders in which the nodes will be visited is 04123576
104+
(c) If we perform Breadth First Search at node 0, then one of the possible orders in which the nodes will be visited is 01423576
105+
(d) If we perform Depth First Search at node 0, then one of the possible orders in which the nodes will be visited is 04132567
106+
107+
**Solution:**
108+
109+
- **(a) and (c):** Possible BFS orders from node 0.
110+
- **(d):** Possible DFS order from node 0.
111+
- **(b):** Not a valid BFS or DFS order as per the graph structure.
112+
113+
**Answer:** **(a), (c), and (d)**[^1][^2][^3]
114+
115+
---
116+
117+
**Question 7:**
118+
*Which of the following options are correct?*
119+
(a) In Depth First search of a directed graph, only back edges generate cycles.
120+
(b) If the maximum independent set of a graph $G$ contains only 1 element, then the graph must be connected.
121+
(c) If we add an edge to a tree $T$, then the resulting graph becomes cyclic.
122+
(d) In a connected graph $G$ having $n$ vertices, at least two vertices have the same degree.
123+
124+
**Solution:**
125+
126+
- **(a):** True for directed graphs—only back edges create cycles.
127+
- **(b):** True—if the maximum independent set is 1, the graph must be connected.
128+
- **(c):** True—adding any edge to a tree creates a cycle.
129+
- **(d):** True—in any connected graph with $n \geq 2$ vertices, at least two have the same degree.
130+
131+
**Answer:** **(a), (b), (c), and (d)**[^1][^2][^3]
132+
133+
---
134+
135+
**Question 8:**
136+
*Consider the following directed graph. Suppose DFS is performed from node A, exploring unvisited neighbors in alphabetical order. Which options are correct?*
137+
(a) $AC$ is a forward edge
138+
(b) $CE$ is a backward edge
139+
(c) $BD$ is a forward edge
140+
(d) $FC$ is a backward edge
141+
142+
**Solution:**
143+
144+
- **(a):** $AC$ is a forward edge.
145+
- **(d):** $FC$ is a backward edge.
146+
147+
**Answer:** **(a) and (d)**[^1][^2][^3]
148+
149+
---
150+
151+
## **3. Numerical Answer Type (NAT)**
152+
153+
**Question 9:**
154+
*The cardinality of the maximum independent set of the graph given below is:*
155+
156+
**Solution:**
157+
The maximum independent set has 4 vertices.
158+
**Answer:** **4**[^1][^2][^3]
159+
160+
---
161+
162+
**Question 10:**
163+
*The minimum coloring of the graph given below is:*
164+
165+
**Solution:**
166+
The minimum number of colors required to color the graph such that no two adjacent vertices have the same color is 2.
167+
**Answer:** **2**[^1]
168+
169+
---
170+
171+
*All questions and solutions from the PDF have been extracted as above.*
172+
173+
<div style="text-align: center">⁂</div>
174+
175+
[^1]: Week-10-Practice-Assignment-Solution.pdf
176+
177+
[^2]: https://www.studocu.com/in/document/indian-institute-of-technology-dharwad/mathematical-method/week-10-practice-assignment-solution/75879051
178+
179+
[^3]: https://www.studocu.com/in/document/indian-institute-of-technology-madras/iitm-online-degree-data-science-and-programming/week-10-practice-assignment-solution/114209262
180+
181+
[^4]: https://www.youtube.com/watch?v=WixAUZo9ycM
182+
183+
[^5]: https://archive.nptel.ac.in/content/storage2/courses/downloads_new/106105171/noc20-cs06_Week_10_Assignment_03.pdf
184+
185+
[^6]: https://www.youtube.com/watch?v=Win-qyjWuv8
186+
187+
[^7]: https://www.scribd.com/document/759779857/Week-10-Practice-Assignment-Solution
188+
189+
[^8]: https://archive.nptel.ac.in/content/storage2/courses/downloads_new/108106173/noc21_ee40_assignment_Week_10.pdf
190+
191+
[^9]: https://www.youtube.com/watch?v=7tt_5fg9ACI
192+
193+
[^10]: https://www.youtube.com/watch?v=4ylFoZ8Rp-8
194+
195+
[^11]: https://gradedassignments.github.io/iit-madras-graded-assignments/
196+

0 commit comments

Comments
 (0)