Quiz Space

Programming, Data Structures and Algorithms using Python · Quiz 2 · 12 Apr 2026 · January 2026 term

Question 13: Consider the given weighted adjacency matrix for a compl…

Question 13

+4 marksWritten answer

Consider the given weighted adjacency matrix for a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Where in the matrix is the weight of the edge .

What is the total weight of the minimum spanning tree(MST) for the given graph?

Consider the given weighted adjacency matrix  for a complete undirected graph with vertex set {0, 1, 2, 3, 4}. Where  in
Show answer

A written answer, not marked automatically.

Question 13 of 16 in the IIT Madras BS Programming, Data Structures and Algorithms using Python (PDSA) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term (Programming, Data Structures And Algorithms Using Python 06 Apr 26). It carries 4 marks.

More questions from this paper

  1. Q1Which of the following statements is/are correct about Dijkstra's algorithm to find the shortest path? I. The shortest …
  2. Q2The Bellman–Ford algorithm can be used to detect the presence of a negative-weight cycle reachable from the source vert…
  3. Q3Which of the following correctly represents the final max-heap after inserting elements 1, 2, 3, 5, 7, 6, and 4 in the …
  4. Q4The maximum and minimum number of nodes possible in a binary search tree of height 8 are _. Assume that the height of a…
  5. Q5Consider a Binary Search Tree (BST) containing distinct keys. Each node of the BST is defined using the following class…
  6. Q6Suppose the letters {a, b, c, d, e} occur with the following frequencies. How many bits will be used to encode the lett…
  7. Q7Consider a set of activities , where each activity has: • a processing time (time required to complete the activity), a…
  8. Q8In a list , two elements and form a significant inversion if The total number of significant inversions for is _.
  9. Q9Consider the Quick Select algorithm for finding the smallest element in an input list of size containing distinct eleme…
  10. Q10Consider the following strategy to solve a problem of input size . Divide the problem into sub-problems, each of size ,…
  11. Q11Let be a connected complete graph with 4 vertices and 6 edges, where all edge weights are distinct and ordered as: Whic…
  12. Q12Consider a min-heap implemented using an array with distinct elements. Which of the following statements about the time…
  13. Q14In the table below, we have 9 activities with the corresponding start and finish times. It might not be possible to com…
  14. Q15An AVL tree contains 120 nodes. What is the maximum possible height of the AVL tree? Assume that the height of an empty…
  15. Q16Consider the following function What median value will be returned by the given function for the following list?