Computer Science EngineeringHardISRO SC (CS)
The number of distinct spanning trees of the complete bipartite graph K2,4 is:
- A. 35
- B. 31
- C. 8
- D. 32
Correct answer: D. 32
Kirchhoff's matrix-tree theorem: delete one row and column of the Laplacian and take the determinant = 32.
Practise more Algorithms, Data Structures & Programming (ISRO CS) questionsAlgorithms, Data Structures & Programming (ISRO CS): notes and key points
More Algorithms, Data Structures & Programming (ISRO CS) questions
- The number of distinct permutations of 1..6 that can be produced as output by pushing 1,2,...,6 in order onto a stack and popping at any…
- The number of distinct combinations (order ignored) of coins from [2, 5, 3, 6] (unlimited supply of each) that sum to 10 is:
- The minimum number of coins needed to make 6 from denominations [1, 3, 4] (unlimited supply) is:
- Consider the following C fragment. int c=0; for(int i=1;i<=1000;i=2) for(int j=1;j<=i;j++) c++; What is c at the end?
- The naive string-matching algorithm slides pattern AAB over text AAAAAAAB, comparing characters left to right and abandoning an alignment…
- A binary counter starts at 0 and is incremented 500 times. The total number of bit flips (0->1 and 1->0) over all increments is: