Question Paper Code: 57236: Cseannauniv - Blogspot.in
Question Paper Code: 57236: Cseannauniv - Blogspot.in
Question Paper Code: 57236: Cseannauniv - Blogspot.in
PART B (5 16 = 80 marks)
11 (a) i. Describe the different mechanisms for accessing data members and
member functions in a class with a suitable example. (10)
OR
cseannauniv.blogspot.in
12 (a) i. Write a C++ program to overload the decrement operator with
prefix and postfix forms. (8)
OR
(b) With suitable C++ program explain how the polymorphism is achieved at
compile time and run time. (16)
ii. Illustrate about how exceptions are handled using multiple catch
handlers. (8)
OR
ii. Write a C++ program that reads a text file and creates another file
that is identical except that every sequence of consecutive blank
spaces is replaced by a single space. (8)
14 (a) i. Define AVL tree and starting with an empty AVL search tree,
insert the following elements in the given order: 2, 1, 4, 5, 9, 3, 6, 7 (8)
OR
(b) Implement the Fibonacci heaps and compare their performance with binary
heaps when used in Dijkstras algorithm. (16)
15 (a) i. Illustrate the Dijkstras algorithm for finding the shortest path with
the following graph. (12)
cseannauniv.blogspot.in
ii. Illustrate the comparison of Floyds algorithm with Dijkstras
algorithm (4)
OR
(b) Find the minimum spanning tree for the given graph using both Prims and
Kruskals algorithm and write the algorithms. (16)
_________________
cseannauniv.blogspot.in