FACULTY OF SCIENCE
(CBCS) Examination, November / December 2018
Subject : Computer Science
--- Content provided by FirstRanker.com ---
Paper - II : Data Structures (DQC) Max. Marks: 80
PART - A (5 x 4 = 20 Marks)
(Short Answer Type)
Answer any FIVE of the following questions.
- Differentiate between Atomic and Composite data with examples.
- What is Sequential Organization? Briefly explain its advantages.
- Explain the use of Stack to find the factorial of a number.
- What are the demerits of recursion?
- Construct a binary tree using the following data:
- Inorder: [D, B, I, H, I, E, A, F, J, C, G]
- Preorder: [A, B, D, I, E, J, H, C, F, I, J, G]
--- Content provided by FirstRanker.com ---
- Explain how to represent the following graph using Inverse Adjacency List.
- What are the Pros of binary search?
- Define minheap and maxheap with examples.
--- Content provided by FirstRanker.com ---
PART - B (4 x 16 = 60 Marks)
--- Content provided by FirstRanker.com ---
(Essay Answer Type)
Note: Answer ALL questions.
- (a) Define ADT for the “Integer” and explain all its functions and axioms in detail.
OR
(b) Write a C++ program to implement the following operations on Arrays.- To insert an element at a given position
- To delete an element at a given position
--- Content provided by FirstRanker.com ---
- (a) Explain the representation of stack using a linked list.
OR
(b) Explain the operations of inserting a node, deleting a node, and traversal in a circular linked list with examples. - (a) Write the algorithm for the construction of Expression Tree. Explain the steps to construct an expression tree for the expression: E=(a+b*g)/d
OR
(b) Explain the representation of graph using the adjacency matrix, adjacency list, and adjacency multi-list. - (a) Write a C++ program for insertion sort. Show the steps of the insertion algorithm for the list of data: 78, 67, 36, 55, 23, 14, 6
OR
(b) Explain the step-by-step procedure to construct a heap tree using the list of keys: 8, 20, 9, 4, 15, 10, 7, 72, 3, 12
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: OU B-Sc Last 10 Years 2010-2020 Question Papers || Osmania University