Roll FirstRanker.com
B.TECH.
THEORY EXAMINATION (SEM–IV) 2016-17
DATA STRUCTURE
Time: 3 Hours Max. Marks : 100
Note: Be precise in your answer. In case of numerical problem assume data wherever not provided.
--- Content provided by FirstRanker.com ---
SECTION A
- Answer all the questions. 10x2=20
- Given a 2-D Array A [-100: 100, -5: 50]. Find the address of element A [99, 49] considering base address 10 and each element requires 4 bytes for storage. Follow row major order.
- Write down the difference between static and dynamic memory.
- What is the advantage of doubly linked list over singly linked list? What is an algorithm?
- What is recursion? A recursive procedure should have two properties. What are they?
- Define the following: (i) Tree (ii) Level of a node. (iii) Height of a tree.
- Write down any four applications of queues.
- Define garbage collection and compaction
- What is a sparse matrix? How is it stored in the memory of a computer?
- Differentiate between Linear and Non-Linear Data Structures with examples.
- Define adjacency matrix with suitable example.
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION B
- Answer any five questions from this section. 5x10=50
- Explain Breadth First Search with suitable example.
- Explain Kruskal's algorithm to find minimum spanning tree in a weighted directed graph. Can there be two minimum spanning trees of given weighted directed graph?
- Convert E=abcde^^*+ postfix expression to infix and prefix using stack.
- Write an algorithm for finding solution to the Towers of Hanoi problem. Explain the working.
- Write a C-Function for Linked List Implementation of stack. Write all the Primitive Operations.
- Perform the Merge Sort on following set of elements. Also, write merge sort algorithm. 18, 25, 4, 26, 10, 15, 20, 5.
- Why circular queue is used over simple queue? Write algorithms to implement all operations in a circular queue using arrays.
- Explain binary search tree and its operations. Make a binary search tree for the following sequence of numbers, show all steps : 45,32,90,34,68,72,15,24,30,66,11,50,10 .
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
SECTION C
Answer any two questions of the following. Each question carries equal marks. 2x15=30
-
- Draw a binary tree which has following traversal Inorder: DJGBAEHCFI Preorder: ABDGJCEHFI
- Explain threaded binary tree with suitable example.
-
- What are doubly linked lists? Write a C program to create doubly linked list.
- Define internal sorting techniques
--- Content provided by FirstRanker.com ---
- Write short notes of the following:
- Huffman Algorithm
- Depth First Search
- Priority Queue
- Abstract Data Type(ADT)
--- Content provided by FirstRanker.com ---
--- Content provided by FirstRanker.com ---
This download link is referred from the post: AKTU B-Tech Last 10 Years 2010-2020 Previous Question Papers || Dr. A.P.J. Abdul Kalam Technical University