BSC - Computer Science Cs - Semester 3 - 2023 - November - Data Structures and Algorithms I 2019 Pattern
BSC - Computer Science Cs - Semester 3 - 2023 - November - Data Structures and Algorithms I 2019 Pattern
P-637 6
[Total No. of Pages : 2
l6lssl-3r
,Hu$..
(domputer Science)
S.Y.
cs-231 : DATA giT V,S-ruRES AND ALGORITHMS - I
(+. 0t9)lsemester-Ill) (23 tzt)
Time: 2 HoursJ ,""1..;7)1.1 -.-..''
[Max lVfarks : 35
I nstr uctions to h ffiaq;l"i
t e.
Ql) Attempt
?$,EIGHT
of the foltowing: '',* [8x1:8]
a) 'Q'4btation is used to denote upper of the tiry,€ic6mRlexity, state true/
F61se.
b) Define Data structure.
c) What is In-place sorting? ,.= .,,.'.t ,1,1'"r
d) State the time complexity of qe r,94?t
e) Write structure defi n ition for 5ilg ly tu, I inked list.
0
"ffi
Write postfix expressionffi"iivn infix expression.
(((P+Q)A.)*L)*M),t?v'" ..,...:'
.!
h) "
What is priarity queue!. ',";'
r) Wha is Double endod'Queue? :|,':''
i) Define stack.
d)
.,;.1:,141 .;
y : deqftu'e 0; ,;p
enqu{d1y+:;; t
*
x : y+3a &k- "?i.'
enqueue (x);
fo*? i:,
enqueue (x-l); *ry 4*lF''
enqueue (x); r*n\' 'r'
1hJ ^i'=
*q,\"
i-"Pq#
oooc,,Y*1
I ,'
Jr'',
e"#' "Yl
q.*..'
#"
,ir .