Ds 4
Ds 4
-2-
SE-37
xii) The property of binary tree is
a) The first subset is called left subtree
b) The second subtree is called right subtree
c) The root cannot contain NULL
d) The right subtree can be empty
xiii) In general, the binary search method needs no more than ______
comparisons.
a) [log2n]–l b) [logn]+l
c) [log2n] d) [log2n]+l
xiv) A graph is a collection of nodes, called _________ And line segments
called arcs or that connect pair of nodes.
a) vertices, edges b) edges, vertices
c) vertices, path d) graph node, edge
details.
b) Explain working of the Selection Sort Algorithm. Comment on Complexity
of Merge Sort.
c) Convert the following infix expression to postfix using stack
(a + b) * (c / d – e) show the contents of stack at every step of conversion.
-3-
SE-37
Q4) Solve any 2 of the following (7 Marks Each) :
a) Explain following tree terminologies with suitable example :
i) Terminal Nodes
ii) Degree of a Node
iii) Degree of a Tree
b) What is use of Binary Search Tree? Construct BST for foflowing set of
key values. 55, 45, 30, 65, 54, 32, 35, 50, 61
c) Explain Graph basic concepts and its storage representation.
iii) Postorder
-4-