Week 6 - Quiz (Programming, Datastructures and Algorithms using Python) (NPTEL 2022 - CS26)

 Suppose u and v both denote sets in Python. Under what condition can we guarantee that u-(v-u) == u?

 
 
 
 
2.5 points
Suppose u and v both denote sets in Python. and u|v != u^v. What can we conclude about u and v?
 
 
 
 
2.5 points
Which of the following does not correspond to a min-heap on the list of values [19,97,83,45,72,55,31,28,31,29].
 
 
 
 
2.5 points
Consider the min-heap [19, 28, 31, 31, 29, 83, 55, 97, 45, 72]. Suppose we apply the operation delete_min() to this min-heap. The resulting min-heap is:
 
 
 
 

Comments

Popular posts from this blog

Week 7 - Quiz (Programming, Datastructures and Algorithms using Python) (NPTEL 2022 - CS26)

Week 4 - Quiz (Programming, Datastructures and Algorithms using Python) (NPTEL 2022 - CS26)