3408-Data Structure
3408-Data Structure
Q.1 (a) What are the linear and non-linear data structures? Describe the
characteristics of each data structure with detail.
(b) Why analysis of algorithm is required? (20)
Q.2 (a) Briefly describe the complexity of an algorithm and space-time trade off of an
algorithm.
(b) Explain the types of sparse matrices. (20)
Q.4 (a) How two dimension arrays is stored in memory. Discuss arrays ordering and
their representation in memory.
(b) Write a program which performs the insertion, deletion and traversing
operations on a linear array.
(c) Explain Recursion and Iteration. (20)
Q.5 (a) Convert the following infix expressions into equivalent prefix and postfix
expressions (write down all the steps of conversion).
i) (A * B ↑ C) / (D + E * F) – G
ii) A * (B + E) / J + K * (M + N/Y)
(b) Write down the daily life examples of stack (at least 5).
(c) Write a program to implement a stack. (20)
ASSIGNMENT No. 2
Total Marks: 100 Pass Marks: 40
Q.2 (a) Compare the following sorting techniques. Write down their advantages and
disadvantages.
i) Insertion sort ii) Selection sort
iii) Bubble sort iv) Quick Sort
(b) Write a program to implement any two sorting techniques. (20)
Q.4 (a) Explain the concept and importance of graph. Also describe various types of
graphs.
(b) Traverse & inspect each step by hand to sort the following array using quick
sort algorithm. (20)
15 27 13 55 11 75 43 8 20 50
Q.5 (a) Write a program which implements the operations of searching, insertion and
deletion in binary search tree.
(b) Briefly describe heap sort. (20)
2
3408 Data Structure Credit Hours: 4 (4+0)
Recommended Book:
Introduction to Data Structure with Application by Paul Trembley Sorenson
Course Outlines:
Unit No. 1 Introduction
Basic Terminologies, Introduction to Data Structures, Data Structure
(Classification, Types, Operation), Basics of Algorithms, Notation used,
Importance of Algorithms for Optimized Application Development, Introduction to
Analysis of Algorithms