Dat A Structures (Pyng)
Dat A Structures (Pyng)
com
Roll No ..................................
CS-3004-CBGS
B.E., III Semester
Examination, June 2020
Choice Based Grading System (CBGS)
Data Structures - II
Time : Three Hours
Maximum Marks : 70
Note: i) Attempt any five questions.
ii) All questions carry equal marks.
iii) Assume data suitably.
1. a) What do you understand by Asymptotic notation? Explain
each notation with example and diagram. 7
b) Explain different non primitive data structure and the
operation associated with them. 7
n
T ( n ) = 2T + n log n
2
3. Explain the AVL tree insert method and explain. Why its
insertion time complexity is still of the same order as binary
tree? 14
https://www.rgpvonline.com
https://www.rgpvonline.com
[2]
6. Suppose the elements in the array are A = < 2, 13, 5, 18, 14,
20 > Does this array can be represent in INSERTION
SORTING justify your answer with all the steps. 14
******
CS-3004-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
Roll No ..................................
CS/CT/CO-303-CBGS
B.Tech., III Semester
Examination, June 2020
Choice Based Grading System (CBGS)
Data Structures
Time : Three Hours
Maximum Marks : 70
Note: i) Attempt any five questions.
{H$Ýht nm±M àíZm| H$mo hb H$s{OE&
ii) All questions carry equal marks.
g^r àíZm| Ho$ g_mZ A§H$ h¢&
iii) In case of any doubt or dispute the English version
question should be treated as final.
{H$gr ^r àH$ma Ho$ g§Xho AWdm {ddmX H$s pñW{V ‘| A§JO
o« r ^mfm
Ho$ àíZ H$mo A§{V‘ ‘mZm Om¶oJm&
CS/CT/CO-303-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[2]
2. a) Define :
n[a^m{fV H$a|:
i) Data and information
ii) Abstract Data Types
iii) Polynomials
b) What are circular linked list? What operations you can
perform on circular linked lists?
gH©$w ba qb³S> {bñQ> ³¶m h¢? gHw$© ba qb³S> {bñQ> na Amn H$m¡Z-go
Am°naoeZ H$a gH$Vo h¡§?
CS/CT/CO-303-CBGS Contd...
PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[3]
7. a) Explain briefly.
g§jon ‘| ~VmBE&
i) Minimum Spanning Tree
ii) Applications of a graph
b) Explain Dijkastra’s algorithm for finding shortest path with
an example.
CXmhaU Ho$ gmW g~go N>moQ>m amñVm ImoOZo Ho$ {bE Dijkastra’s
EëJmo[aÏ‘ H$s ì¶m»¶m H$a|&
CS/CT/CO-303-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[4]
******
CS/CT/CO-303-CBGS PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
Roll No ..................................
CS/IT-305 (GS)
B.E. III Semester Examination, June 2020
Grading System (GS)
CS-305: Data Structures
IT-305: Data Structure and Algorithm
Time : Three Hours
Maximum Marks : 70
Note: i) Attempt any five questions.
ii) All questions carry equal marks.
l. Define the term array. How are two-dimensional arrays represented in memory? Explain how address
of an element is calculated in a two-dimensional array.
2. Write an algorithm to implement depth-first search. How is depth-first search different from
Breadth-first search? Also write any two application of complete graph.
5. Define Huffman code? Explain using suitable example how Huffman codes are evaluated.
6. What are B-trees? Construct a B-Tree of order 3 for the following set of input data:
69, 19, 43, 16, 25, 40, 132, 100, 145, 7, 15, 18.
OR
Write an algorithm for postfix to infix conversion. Consider the following arithmetic expression
P, written in postfix notation:
P : 12, 7, 3, -, /, 2, 1, 5, +, *, +. Translate P into infix expression using stack operations.
7. Find the minimum cost spanning tree for the following weighted graph.
A
13 1
8
5
B C d
15
4 5
e 2
F
CS/IT-305 (GS) PTO
https://www.rgpvonline.com
https://www.rgpvonline.com
[2]
OR
Define the term Recursion? Give a recursive algorithm to find nth term of a Fibonacci series?
******
https://www.rgpvonline.com