0% found this document useful (1 vote)
771 views

CSE 3rd Sem DSA

This document appears to be an exam for a data structures and algorithms course. It contains 10 multiple choice or fill-in-the-blank questions worth 1 point each (section 1), followed by longer free response questions worth between 5-10 points each (sections 2-7). The questions cover topics like algorithm efficiency, graph representations, hashing, sorting algorithms, binary trees, heaps, stacks, queues, and polynomials. Students are instructed to answer question 1 and any 4 of the remaining questions.

Uploaded by

Hj Jord Tzong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
771 views

CSE 3rd Sem DSA

This document appears to be an exam for a data structures and algorithms course. It contains 10 multiple choice or fill-in-the-blank questions worth 1 point each (section 1), followed by longer free response questions worth between 5-10 points each (sections 2-7). The questions cover topics like algorithm efficiency, graph representations, hashing, sorting algorithms, binary trees, heaps, stacks, queues, and polynomials. Students are instructed to answer question 1 and any 4 of the remaining questions.

Uploaded by

Hj Jord Tzong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Total No.

of printed pages =3

CSE 181304

Roll No. of candidate

2019
B. Tech. 3rd Semester End-Term Examination

DATA STRUCTURE AND ALGORITHMS

(New Regulation) (w.e.f. 2017-18)&


(New Syllabus) (w.e.f. 2018--19)
Full Marks - 70 Time Three hours

The figures in the margin indicate full marks


for the questions.

Answer Question No. 1 and any four from the rest.

1. Answer the following : (MCQ/Fill in the blanks)


(10x 1 10)
What do you mean by efficiency of an
algorithmn?
What aré the different ways of representing a
(b)
graph?

What is hashing?

What is self-referential structure?


(d) a

What are asymptotic notations?


[Turn over
( What is in-place sorting? 5. (a) Use Prim's/ Kruskal algorithm to find the
minimum spanning tree of the graph. (5)
)What is balancing factor of an AVL tree?
What is a threaded binary tree?

Give an example of stable sort.


W h a t is an abstract data type?
-
2. a Write the pre-order expression for the following
using a stack. (5) (b) How do you resolve hash clashes by open
addressing method. Explain. (10)
la +(-c]d-e)f+g-h)
Sort (increasing order showing all the steps) the 6. (a) Write a program to implement a circular queue
following using merge sort and quick sort. using an array. (5)
(5+5-10) (b) Insert the following keysin a B-tree of order 5
8, 2, 4, 6, 9, 7, 10, 1, 5, 3 and show the steps in constructing the final
tree
What are the advantages and disadvantages of
10, 24, 23, 11,31, 16, 26, 35, 29, 20, 46, 28, 13,
array representation of stack and queue over 27, 31 (10)
linked list representation? (5)
(6) Suppose you are given two polynomials. (a) Write a menu based program to implement a
(b)
Represent the polynomial in a suitable data stack using an array. (5)
structure and write a program to add 2 fb) Show the results of inserting the following
polynomials. (10) elements: 2, 1, 4, 5, 9, 3, 6, 7 in an AVLtree.
Specify the type of rotation after each insertion.
4a Using the following traversals, construct the (10)
corresponding binary tree (show all steps). (5)

Inorder: HKDBILE A)F CM JG


Pre-order )B DHKEILCFGJM

What is the difference between a BST and a


heap? For the given sequence df numbers,
construct a heap and a BST. (4+3+3 10)
34,23,67245, 12, 54, 87, 43, 98, 75, s4, 93, 31
CSE 181304 2 CSE 181304

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy