Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL: PROGRAMMING DATA STRUCTURES AND ALGORITHMS USING PYTHON"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Solution
A list of n strings, each of lengthn, is sorted in lexicographic order using the merge-sort algorithm. The worst case running time of this computation is__.
Solution
Solution
Solution
Solution
Which one of the following algorithm design techniques is used in Floyd-Warshall algorithm for finding all pairs of shortest distances in a graph?
Solution
Let G = (V, E) be an undirected graph having distinct positive edge weights. Let V be partitioned into two non-empty sets X and Y. Let e = (s, t) be the minimum cost edge, with s belonging to X and t belonging to Y. Which of the following statement(s) is/are true?
1. The edge e must definitely belong to each path from s to t.
2. The edge e must definitely belong to the minimum cost spanning tree of G.
1. The edge e must definitely belong to each path from s to t.
2. The edge e must definitely belong to the minimum cost spanning tree of G.
Solution
Consider the following binary search tree. The letters indicate the names of the nodes, not the
values that are stored.

Which of the following nodes is 4thlargest node (in terms of value) in the given binary search tree?
values that are stored.
Which of the following nodes is 4thlargest node (in terms of value) in the given binary search tree?
Solution
The maximum and the minimum number of nodes possible in a binary search tree of height7 are__________. Consider that the height of the empty tree is 0.
Solution
Solution
Solution
A problem in NP is NP-complete if __
Solution
Solution
Which of the following statements is/are true about adjacency list representation and adjacency matrix representation of a graph?
Solution
Which of the following statements istrueabout Dijkstra's algorithm to find the shortest path?
Solution
Which of the following is/aretrueabout AVL Tree? Assume that the height of the empty tree is 0.
Solution
Which of the following statements is/aretrueabout Huffman coding algorithm?
Solution
Solution
Solution
Which of the following options represents the fail function (or prefix function) for pattern 'ABABAABA'in the Knuth-Morris-Pratt (KMP) algorithm?
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Solution
Let G be a graph. The size of the minimum vertex cover of G is 12 and the size of the maximum independent set of G is 18. What are the number of the vertices in graph G?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Solution
Shape
Thickness [ / ]
3
All colors