Professional Documents
Culture Documents
Assignment 2
1. Consider the ingredient network where a node represents an ingredient and an edge exists between two nodes
if there is a dish where both the ingredients are used. Which of the following statements is true for the nodes
of the same community in such a network?
(a) Only I
(b) Only II
(c) Both I and II
(d) Neither I nor II
1
NPTEL - JAN 2023
(a) 0
(b) 1
(c) 0.5
(d) 0.25
Figure 1: Graph G
(a) 5
(b) 6
(c) 7
(d) 8
Figure 2: Graph H
(a) 0.1
(b) 0.2
(c) 0.3
(d) 0.4
2
NPTEL - JAN 2023
(a) O(log n)
(b) O(n2 )
(c) O(n3 )
(d) O(n log n)