Need help about a course? |
|
Home / Test Papers / IGNOU / CS04 Data Structures through C and PASCAL CS04 Data Structures through C and PASCAL December 2005 | Ask a question Print this page |
PGDCA / MCA (I Yr)
Term-End Examination
December, 2005
CS04 (S): Data Structures through "C" and "PASCAL"
Time: 2 hours
Maximum Marks: 60
1. (a) Write an algorithm that accepts a Binary tree as input and reverses the left and right children of each node. (7)
(b) Write at least four advantages of implementing a stack using Linked Lists in comparison to implementation of stack using Arrays. (4)
(c) Write an algorithm to count the number of leaf nodes in a Binary Search tree. (6)
Write an algorithm that accepts two lower triangularmatrices, M and N, each with P rows as input. The total number of elements in the lower triangles is P(P + 1). Now, the algorithm should output a single mairix Q of order P x (P + 1) which represents both the lower triangular matrices. It is not necessary for Q to be either a lower triangular or upper triangular matrix. (13)
2. (a) Write a recursive function to print Post-order traversal of a Binary Tree. (3)
(b) Wite an algorithm for the 2 way Merge Sort and illustrate each pass for the following data. (7)
7, 4, 1, 3, 0, 2, 6, 5.
3. (a) Write an algorithm for the addition of two sparse matrices. Use linked lists. (7)
(b) Explain Indexed sequential file organization (3)
4. (a) Write an algorithm to convert an infix expression to a postfix expression. The algorithm should evaluate the resultant postfix expression. (6)
(b) Write any four applications of a Queue. Justify your answer. (4)5. (a) Sort the following Sequence of data using Heap Sort : (5)
7, 6, 3, 14, 5, 9, 11, 10, 8, 20.
(b) Find the minimum cost spanning tree for the following graph : (5)
----DIAGRAM----
Note: The above courses are picked automatically by the website for indicative purpose only. However, students are requested to check with the University for the similarity of the course or for any other information in regard to the course.
Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - IGNOU - IGNOU Question Papers
Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester