Professional Documents
Culture Documents
Ds Ptu Solved Papers
Ds Ptu Solved Papers
Pr :
w Ww.brpa p er.co m for
otjt'0u s year Qu es tion papers of B - t e ch, BBA, BCA, MCA, MBA , BSc - lT,
/ lom a, Di s tanc e Ed u ca tion , M sc - lT, M -T ec h,PGDCA , 8 - Con-L
INSTRUCTIONS TO CANDIDATES:
1. Section -A, is Compulsory.
2. Attempt any four questions from Section-B.
3. Attempt any two questions from Section-C. '. '"\.
Section -A (1 0x2=20)
Q.1.
(a) What is meant by an abstra~t data,.type?
(b) Differentiate between S~ad &·i nd<Queue?
(c) What are the advantc\ges ·i? th\ array implementation of list?
(d) What is the usage of stack in recursive algorithm implementation?
(e) What is a circi'il~t'·queue and its use?
(f) What .5 fn1i:,1 .zfs checked to determine if pointer, P bas moved past the end of the list?
(g) f valu! t~ (a)~+ I 24 3 + * 41 - (b) 25 7 * 14- 6 + 1
._
(h) De).i~eJthe term sparse matrix. How they are stored in memory.
(i) Li~t out the different types of hashing functions?
·G} What is meant by strongly connected in a graph?
Section-B
Q.2. Define the terms: static and dynamic data structures. List sqpi; ~f tlie"~tati~
' .
and dynamic data structure in C. ., ·, ·.
Q_. 3. What is traversing? Write an algorithm for traversing~; Ii~ i li st?
Q.4. What Criteria is used for evaluating the suitabiliJY:of a particular data structure for a
. 1· . ···/' '. ~
given app 1cat10n. ' . • ·, ·, ,,
Q. 5. Make a binary search tree and a heap tt:~~·1t oin the given data.
23 7 92 6 12 14 40 44 20 21 .,,. \'1:.,~:i,:,- ·?.,
Q. 6. What is Graph. Describe in brief tne -~~rious methods used to represent Graphs in
memory.
Section-C (2x10=20)
Q. 7. What is the advantage and average efficiency of quick sort? Apply Quick sort 011 the
following data and show the contents of the array every pass:
48 7 26 44 13 23 98 57 100 5 32
Page:1
M-56594
IW.brpaper.com fo r
~ e ar Quest ion pap e r s o f B-t e ch , BBA, BC A , M C A, MBA, BSc -lT,
[' D i stance Educati o n, Msc -lT ,M -Te ch ,PGDCA , 8 - Com.
-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:2 s ~ 7) - P1 J+6
C Ci -t2~) ~ 3 )- ~,
~ \b 'f
~ BL\
2- 3 f1/ 1o l 12. I ,t / is /
N ~ l
L o I 2 3 4 5 6 v L m o
l Bt_; linhad 10 .
u,.+
._., '
0
1-0
,
C
k DATE ~
~ PAGE
-------
vexl>e
Ir-
',k I\ u II
ph = zlow
,
Sko3
p~ca&1 a& ~ do b,
Skps r I
5kp 6·
~\/7
~· a e. a ibo_t\j_ J,P~j,frn -\:tt.u. .rund. a
~ DATE _
PAGE _
tw.p :bu.
_
_
_
tf crm__,_.___ .
~~~__c__f-\JJ!b2- daJ~- - - - - - -- -- -_J
~3 1 7 ,-9~t---D-' /2 1-' t 1 4: 0 ! 44 t 2.o, J 1
_ _"=i'=...:-,_~Q_
,.2> ,...o
_k.~_c'-
_h."'=-.'"-=-....L
~~ - ~-=-- _ __
5 · '1 ·
3 ·
,
b':t DATE _ __
PAGE _ __
Com rncrn,~
e
L,;r DATE _ _
~ PAGE
--
iJ
\~ ~\
\ \ \\
\' ~i.. LJ -Iha.. o.d vo··.--d::atf Q,n d 0- v e....--.°tf- ~ u'-e..Y) \I
,, / 1-d o..-l:o..
&...u:<l< '?, ;,....- l '? A Pp~ ~ ck s o...- l o-.s, tN.- J° Ua i..:i 1)
o. --0d ~'ho v.:) ~ CP-in k'lf")-h,! ,- th.l-- c.---c--y-o_cf
(
e..V L QG po...U :
e_:x.__<1..Z..Ll I ,,
, t1 O"-o) .
\J ~ \J
Ad V 0."")-lc:'d° 1 &ulc:..J:<_ 'cl O .....-l :
• r:t_t J ILD-.CJ"\'.~ Re_o~ To)@ '~ L~ h L ~ tha.-~ c:, ~ S oo·\:'1
'
• '.t L o '\, e..,--x'_k-.-.ri e..¼ ,S; M-:--l D. ·•·v-...- L'°7P . 1--\ e...·-.y...o., ,
M.,4
Lj- ·Ln-{p L,___4 ~~ ~ ll--U-JJ.. , q_ LLl c)-<. s o o t LJ,.J-l._ \ l b L
o.:0 ou..n d ~ - ~ b~u Ja_j
"tO\. ·Ko -11\ -n,e__0 ~ So71-t 0--° 'd
~ $07f-t .
7hJ_ tl'rrv... rt.\VJ-~ be\ "thl.. C\._ uJ J<. &10...--\: o+o o...-- L--lh 4
~ ~ Cl-< -1:~ o.. -to{~ , 1 "" 'r\ \.A....n, b ~-,x t, -.--e.-p-T"W (_..-i w
btl -1:k.,... ~ l lo0 ~ ~w,_ l; In"") I:
ILot) ~ ,lK) i- T lo"\-K-J,) ·+l~)
I
' ) (
A~--.~ ~ : -r.., )
l - .,
S D \_Y ~ -\:-'I--..'-- a_b o 0... ..-Y\ '-...-,-b' ~ °"rt-t.Ll....- y- O< <\.U-
tJ_J- LL 'o..L \ l 01 ) -::.- Ln _J__.e-a- n )
L\~ ~4 ~ i s~ Jo-o
P!Vot~s +
~ r7\1-""":> ~ Jou
J :23 ~°'4~ 1 )9 qi
1Pivot~~ s
44 4q S=t- :) i J ITT)
5 l- l ""1 :) ~ ;; b
,1), c l t U: f o -.~d t £ t 1,, ( L i ri f c,~-l, (; 6 t
'l'"'\ l'J t_ , pO <", 0 * , t (\ C.c, lU) l . \_,I --~
ll Si A p \ ~ Nu l i
1 t P~ 8, , TA Rl-
- -
s- # 5· J2.r,_pUl- l :J-n-r t "'- J t-o Po~- J
9e -r P:: P~ N f "'T
f_ ~~ J. vf lftef J
S -\-{'._p 'I, . f'l {:: IN ,_,, N {;. ,f._T ::_ T i= M I~ ,-,,, N f' 1--T
. . ,i;~, ~ f'-] 8W
~~ '3 . T 'G- N P ~ ''I
-
q_x} t
_S½f L
G,lil'\.C,~ Uo, D <l, (_ A U"?. IL- Lj L OL )
i,
I 1 L) I] 1 I
ut LJg ~ "Ynltd- l
eJ_,LQ__
• A ppUc.a.-h ~ 6l Av L T "o-f._.L :
J I
I If •
C < ~,.
, d.SJ.,
Q ~ ...
,..
I
I
t) \
,I
~
'
I
\
I
,,
I
I
D
I I \)
. I
) I
, I j
Doub le_ f2-oia+I ~ ~ j
) ~ r
f) ) -I
} ) '
l
0
// Visit www.brpaper.com tor
downtoad1ng previous year question papers of B-tech, Diploma, BBA, BCA,
MBA, MCA, Bsc-lT, Msc-lT, M-Tech , PGDCA, B-com
H 1
Roll No. IIIIIIIIIIIII Total No. of Pages : 02
Total No. of Questions : 09
B.Tech.(3O Animation & Graphics) (2012 Onwards)
B.Tech.(CSE)/(IT) (2011 Onwards)
(Sem.-3)
DATA STRUCTURES
Subject Code : BTCS-304
Paper ID : [A1126]
Time: 3 Hrs. Max. Marks : 60
INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks
each.
2. SECTION-B contains FIVE questions carrying FIVE marks each and students
has to attempt any FOUR ques,tions. •
3. SECTION-C contains THREE questions carrying TEN marks each and students
has to attempt any TWO questions.
SECTION A
l. Write briefly :
(e) State the principle of stack and give it's two applications.
SECTION B
2. What are Lin~ar and Ncm linear darn slructures? Give one example of each.
5. Explain the concept of circular queue and priority Queue with suitable example.
SEe'JJION C
b) Convert the given ~~~ef w ession to Postfix expression using Stack and show the
details of Stack at e~ fep of conversion.
8. Discuss in brief the AVL tree and B-tree. What are its advantages?
a) Transversal of a graph
b) Bubble sort
~ -kc u~
~ - ~ ~ ~~
~ ~.
~ wt;l~ id ~
tl ~ ~ rruJL·-M-
Iv-) ~ - ~ ; ~Mi ¾ --Wei ~
~ J ~ -
5. Ji ~ ~ ~ ~ JU Cv1P. ~ .arid.
J a,
1/ ~ ~ lri b-?,,l -&ri - :k/Jl -Qd ~ (LJro).
11'1 ~ ~ $fa,J_ ~ CVJ1 ~ a,,,.r)__ ~ ➔ 4
(9n1 P4- ~ l0f · ~ mtt«? ~ -via/4Pn.J ~ ~ ~~:
i,) M.~ -~ 4 ~ ~ / ~ ~ +
\ \ . I_\ ~ .A 1--f ~
~ ~ ~ ~ ' oL6h>-- ~~~
~ ¼ (_)__ ~ I ~ - I 1
• ~ . ~ ~ ~ I ~ ~ ),g ~
I\ ¼
YL&Yl - ~
~
~
·e-n
~J
~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~ ~ .
~ 'f\dd.. tD ffw,, ~ at Qvwt': ill -tu ~~ <;\J
t---J ~ ~ ·vn ~1 ~ UMJ. ~ ~ ..
~t()~ ~
13 0;c1 .
r'Yld 1 kuf3 loo+
l
~~~ ~ ~ ~2~
. "C
k
u) 8 ' - ~ QQQ ~ -6 "1fu ~ 4M
® fLUA ~ ~ ·1LBch A &n:ui ~CK~ ~
'
w~ ~~ WoJH;ru
.J ~ . -
(5) ~ Jr~ @ G;n_ol. @ uAJU Ww.,k ·u, · ~~
@ frJ.f -kh.Q, -tJsf .JYUxk N 1·~ .f~ N ~
~ Ji), ~ j x i ~ t ~ ~ I ·.
~ fcu.J- ~ ~ _,m-+M.._~~ ~ f\J ~
~ ~ ~-fi,tQ. ~ ~ oun.d. ~()
~ ~~ ~ ~ ( ··(}¾
l~~L ~ ~3 ~ )
{{J
I
~- ~ '
~ - ~ ~ Q, ~ ~~ th lUQ!
~
( 0 ~ ~A~ ~ ~-
(i) ~ i c::c o -to N~ I ~ ~ ~ ·
(P ~ j ?O~ -lo N - \ ~
@ 1 AtJJtAl~H\]
@ ~ A[cl] Q;V\0- A[JTj]
® CJM_ ~ ~ ~·
® <urui~ ~~
® <c,# .
b¾_ )_j) i(
i
Total No. of Pages : 02
Roff No. ~ i '. - : I I
(Sem .-3)
DATA STRUCTURES
Subject Code : BTC5~30 4
Paper ID : [A1126J
Time : 3 Hrs.
Max. Marks : 60
INSTRUCTIONS TO CANDIDATES ·· ~~
1·
2
·
each.
.
SECTION-A is COMPULSORY consisting of TEN questions carr
SECTION-A ~0
I. W1ite b1·ielly: ..J9
a. Wl1at is meant by an static and dy1~r((i!,} ~ccure''
g. C~ to infix :
ABC+*D-
ii) AB* C- D +
l f M - 56594 (52)-1206
. . L isl dc•\Vll ,1n y fo111 appli1.:·i•
~1n1ctut L~, - <\\\)\\:.
6.
State the difference between array~ and linkc
representing ..:;tacks using li11kcd lisls than array$.
nr1
n iat
· (
1s .,rnph? •· c ti v•1r1·()l1s··
Dcscnbe m 1·,rte, ·
- 1c " m1:l I10< Is
m:ed to ro. c t uraphs m
me mory.
CJ
SECTION-C 0t::i:J ♦
· · ·- ·
· mt 1s the advantage and avernge df 1c1cncy ot
· ~ soi·t "· .~.,o rt tl1c following data
11,
7. \vi
using an insertion sort algorithm :i~1J Show the cont~ the an ,1y a Her every pass :
8. Why do we need Queues'! Write the a ~~ programs for I-:mptyQ , fullQ , InscrtQ
and De1eteQ operations. ~'l(J
9. Wnte the algorithms for the fo~{l:j,
a. Inserting an element fro,~ ~ly link list .
c. To reverse a s · · haracters.
~~
A A
?J
~ii I(, I -
L) l±_~ \?) )- 0 ) \)
~~ e, )-c.., 1) 't
~~iD~~~,Jj~ - 4)
~l u/JY'N-'<AN \ I ~ · J); ~
,
~ t>0 t,,,GT e_ ( ~ uf vf I o, !iotJTl Kf;M) rrr2 H)
1. ti rRJJrJ7~ :::IJULL 1 ~: ~-Tl Ul\)1)£(?__Ar)Li) r14oL
ltwwt
r. M iTf w "CC &vfutUR.DAJT]
3. ½ff ~UI ;; ll-~ RI ➔WM:
M Pt 0,0T ~ -;,_ /\Jl) L,L ~)_~ R__{ 4/l~ : : 01JLL
Le"uct ¼L
~ ,W,t =e..~
¼.,let ~
·*rev;,.
~-thvu~,,~ ~
1 ·, ~; ~ ,
~'\W l"v<lt-~ .
~ ~ -~l
-~ud ' . . .
~ ~-~ *f}WJ
'l.
J? M - ~ i \'llJd.;
~~~
~ ~ [lo]i
~viRJ, u,J -~ ;
~ M _~ M -~i
3, a
~~~to ,~ ~ . '
~ ~
w~ ~mo- ~ ~ -
; ~ 0 . _, .... v"' ~aM ~
11) ~ /W; ik ct ~ ~ t,
~ ifit 11/\MA,'Y\A,WCrfJJ {W ~ II J \f\AAr"",
MJ ~ ~ 'i6 ~ ~
~ t_~
~ w - ~~
~l) ~lux !1£N~ = I AJ{o[JT/fi<_TJ
2. /)p)pjj_ ,jI-W u eo&_ ~ fu f+
3? P~ rr£ 4
i, ,W-1: .
-' .dJ 6lruP~lf ( Pft TA ) l81v81 tTf)1
'-
1
Lo c)
1~ ;{;J i!J f Ui ~ :: Lb) £AJD~ ~ IJ ~ /M-1tl 4 l D =/AJ T [bI l1 t f /\J'b) / 2_
1, ~ JJJ);i 3flui 4 ~I) 16f bit_ Atul; W DATA 24,D] :r lr~/L
~- $1 ITt Mi DATA[ JJi tf)) )~ /
1
d_dfA;D~ ~MtD-;
/J~J i
IJJ 6f 0 i~ l bt/
k. Ad M1D~:c !1'_;' /'3£6, +[A.Jl))/2
5. 1t {)117 A [ A.; l b ] .· /'/ f' Al, +tu.,,,, ,-
/4.J- Luc ~ cc "-, I I')
~~
l. ~~-L. Ad lot_ ~ :cc I\JU L( .
V1s1t www.orpaper.com ror
downloading previous years question papers of B-tech,Diploma,BBA,BCA ,
MBA , MCA, Bsc-lT, M-Tech , PGOCA , 8-com
INSTRUCTIONS TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of' TEN questions carrying TWO marks
each.
2. SECTION-B contains FIVE questi°'l)S carrying FIVE marks each and students
have to attempt any FOUR questions.
3. SECTION-C contains THREE , questi'ons carrying TEN marks each and students
have to attempt any TWO questions.
SECTION-A
a) Memory leaks
c) Sparse matrix
f) AVL Tree
h) Rehashing
i) Algorithm complexity
1 I M-56594 (S2)-467
v1s1t www.orpaper.com ror . f B-tech Diploma,BBA , BCA,
O
downloading previous years question papers '
MBA, MCA, Bsc-lT , M-Tech, PGDCA, B - com I
SECTION-B
. . . .
How mult1d1mens10nal arrays are stored m memory.
? E xp 1am
· row maJ·or representation of
2.
an array.
3. What is meant by postfix expressions? How postfix expressions are evaluated by using
stacks?
4. Explain the linked representation of queue and operations to be performed on it with the
help of suitable example.
6. What is a hash table? Discuss the concept of collision resolution in hash table with the
help of suitable example.
SECTION-C
8. Write the algorithm for pre-order tree traversal. Also show the steps of this algorithm on
an example set of numbers.
9. What is a doubly-linked list? Write ail algorithm to create a doubly-linked list and also
write a function to insert a node in do~bly-linked list.
I / 4 , , _ ~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.O n-, ~ [ rJ - 1, o] ,,...- - - - A [ N ·-1 1 m-0
.¢ns '. Po~+J i°"i-- ex.f'lf ~ fo1'l. ~ a 'rl o·-l-a-h"o r1, ~ -r LO Tfti°" ti wJ -lh rne1c
~ ~ ~ <re~ s?ot'"\J) ?n u.9-h?ch., j-{, ~ t
o e,--rGfn <l>b ~ pe ax.. b fJ-o a€_
6\I OI0 o.tiI)0 n, ~ do ~ o.. .p\? <;w)( E:x F'lfe.e, S \' O (l, ~1
v ~
&, Po p +h .i nJ) 0 0 ~ trr(l,ll"n d..9, d '>'9-'ln, ;:l+i e, &,tQC'..K. , f ;J- #,e, cl \lJm el-
f~ °'-sn, Of eo~'r Qmd,, 'iti 0YL, Q/V 0 ) VoJ pd f-t ~
3' p\).Jo I,_, 6 <L(',K -l+, e, ~ "! b tJ #i e, EW ~ 0 n. .
0
(I. e.} e_,o:f ~ l- LO f 1l
df ll · ~~ ~ ~ fh~ e-><p~fgr-n,
Au~.op_,,Hm !
S+e,, 1. '. Add. ) ;h, FO s+J I° >< Qi<'.~ .. e<b (', f (W)
s.~ 2. : Read, ' ro~+ Jf~ Q.. X.r'oe,s sfo ~ L~-+ J], B, 8h+ \Jr'l +i°l) e nc.ov ntc
8-HJj, 3 ~ T J D f' ~ c l , fc;, ~ W t.vn t('Jr{) cl.. _, ~ uJ,h, ?+ !M-J 1t) ~+OJ'.k,
( ~¼ ~~1~
l (E-n cL I JJ
f
g+~ : 1 ~ o exQ'./o ,x, ?c;, ex,w o n.+W , Po ~ 1\P o cl <1m, 0ni ~
of e,..o:h 0
on.2, J,, be f ~"61-n fd on. ~ L01-i+t, J+, e_ ie l f <3.cf
~GJnlple,
~! ~~ G l1°n)-<P d. . ~ e,u e,_, ~ n.Dcle ~ d-h e qv ~ WWh>~1-g
~ Mo f o>d-"', f, e . do+- o., f oo-d- 0-md, .!+>e --Lon k,. fw:r, E-°'-clv
e} errn eJYrl- ~ J+, e. ~ u eu,e._ r ~n ➔
O Q, J,o 1+9q, I rn '\')") f ~-JG ..,. () r1 e~t- ~ eJ'rn@N(
rn ~ o ~ , ! n,. ~-D\-1~-e cL 9 v e, v e. )
ct-h e
o -e_,cL
OJ n
D
I n... +-he, rn e_rrr-, o ~ ?. e_ . J' ~ 51..-t ,,
b '-'()'Y"I
~ '
~ Qm+-o 1-1' o n ~ ·
~- ·-
' ~ lieue. ~ ~
c___r eccl--e -V1-e.o.._p .'- c_y- e_cl+e °'~ erA-P~ ~ ~o a.p\ fs½ ,
ere_a__t-e a . h ~ ov-.¼- o.¥ ~V'en ~ e ~ ~~
o~ ro+lt) r~ ~ C9~tr"~ ~~.
'~ \ ~ S: cv1 ca. c;:.s, .~ ~ o.:1-,, -,.e, a_ ¥'I" °ij °'\o .si-V' ad--
d_ o.J:-q_ ~ ,e_ I a_ ~ ~ c..o.it\ fY\P---p -~
-\-0 " ~ . A V"--c,. ~Va ~ ~ Q ~
• I
o.. 'no s rt f'I.Od e, 1 i "--rt> o."" 0-,r <' ~ (5) V,. b u. ~ .s-:
0 ~ ~ , 0-\--~ . \}'.) nf c..½ ~ des:, r~
1 ~rn \f'~
Co n b~ 'io\J.Y'\d ,
-#: U\ n ce__~t ~('{) 11 fo: on~
• -rl{) 0 \,<. ~ e, yy, Q )t f., 8 .b, jj., e, -2, <l.rvn e, J--0 C, a+; 0 r, ? h di-, e,. h EU, h
J-o b I e,. r~ (__, Q \, ed- ex))) Fs; QIY) I
~ LO\\ f S ,' O n., C, QJn. b ~ ~ ciLLcJ2_ cf. lD? th.. 9 & cl e_e_~ 0 1'l- ~ ct 0--0 ~ ~ ~
f u no Y1 • Y"'C,
3
LJ ~~
s h~h )
,t
.I
1-
I ,
• 1h e, ?d,ie__°-1 ', , I
c;~OYY\p\-e,: Let ~ U)n ~ P~ h ~ \-\, ~ t:>ntTh) n e,.1 ' 1 1-< 8c3 n, oct:r;l l ~ a,
Jb~~ \) &fit ~ @d \~~ M S-o ,1-00 I q.t , i s' Q2-./40, lo1
0 1- oo O ~ O \ '!\-Ov \0
~--
r "4-\))
~ i ~ ~ ~
0
h
I
2.
5o 50 2 i~
3 J 3 q2 2,
0 ?>
~ ~ ~ ~~
~ l-1 ') s ~ ✓
c. Io\
s s
b :+ ~ ' b 'f 6 ~ 1-()
6 ..l------.-1
e, ~-----\
TY\s0ri- ~ri~e.~ 35"" : T nc; Qx't-~ L! J n $-eJtf
· ~n+fG\) tj
so Co I\ ,s\on,
0
Co\lf ~}Ol"~So 7-~ g
U\1 f'j to¼ (XCu.><J.> !t f n~ 1°~ +\.i C:b e 9± 1. IoI
is OJ neoCT J~ .L-ns eJ<l c0" ~ O(~
~lot j ~ Slo..f
Comf""-c. t'\-5 f\-1-x.t -f'r=l- • 6\nC..G 8 .S :.>I",, i n-1:cxcnci c 8..S f\-ri cl
1~ 70 (\' cJd. -
8':L. 1 !2- 9: r Sl1 661
\. 1) ~~ fl-t f\r<:I f't-g · £:,,nee. 8S ;, 5''1- r ~ o--,,~c. '8:5' fud
5 \ -to O, cJd , .
3'1- l <>-'+ l 51 J GG, 9.3,l 131 § ~
-A-t --me &-d ~ .+-hJ/4 ~ F , --t-hG \0rt~cs-l ~Ufn"\t)C,l{_J
35 ' '""'~ Moved -to fhc t0:5"t \=X>brl:f0n • Hor-\C\JC,l{; 1 ~ c >-t ~+-
D1 -rhG M \...l.rrv\b~ ~ r-,lo+ bgdcd I e v~ ~h ~ 'C) l-
' \~
"TT .
c:rr<,
l .l
1\ ~1
f,
/""I I Cr-a.rrq
(I ro \_l_
"TY 1~}0
bI ob~o~
' .
!)..+ @@ 13 cS I 51- 6b io
D- ~ ~3, @@ 51 s::r- (;£ 85
~5 - J@@ 16 .33 5 \ S=f- G'6 i b
Q.~ ®@ ~3 5 1 5-=t- 6 6 &s
,I
D
l
l
)
)
k c --\+,c -Al a}U-1+,m + ll<.l_, re-- <:>Lee\ =., \J;.cu, ~c,_,l_, , -A-16 <9
61r, Cc:, f' T f-4' t--\LU.l, k. -du>v,-, -+o .bh:cj:,CQ) <1.f --\te., o.1~ ~ - 1
'---\c \i3-s.acetrl d(\l.W,,, ---l+-,-c, l"f" M~ ~ kco!:cd o::lc' PT R = I-; et& '4e!l<0tu,-
LV ) \3-<c(U H O!nd ~ Jf1 ~5ftrl- dJ Id \c. c, l'"do ...6-tq_ ~ :
b\-o__ak : q, , c rk· V .
N o c,thex,; N o::\e.., ~ p .4 o Ce&ci I b t r, cc H ir--1° chJ(d
S· [ & c:.l:i:-\Jla.cRl ~ J Pct )c. ~ -'<.o tn J,h:LCR.. 1 O,,,cU,± P W e ::: \:-- 1hJb l cru.t <6-
btu.-~ ~ 4' 1 C. I '
f ~
1J, 1~\ f ;{ 1' j
~ •lr)n\ha
8. htop .
~ ~ l c:x:. ~ C<A-
c\' i) I - _,l..:_,_._
___j_J'"\bC:..U.,V 1../ J
t, 6-\-a..,d:
- .- -A-..-l PQs
. ~ o.liz-c T~::::- ~ ; t J... o
6
t,. R ~ ' ~ ' .I ~ L\ 1 C,t l-<Cc6 --\--1---ci,.,, Pos) And
( _, ~ ~ :::2:. Ndt -equo..L-to t-\u.,u.)
5° \OrY) p ~ --fc.rn,~ ~ 'ptoi ,-.d j L===- G-r ,
i j
I I
l· 6~
u~;i ~ Af- -&d.-
1. 6+0-J...ct
2-• :In 'pttx 't:xrl-0-- -\-o be:., -:Tub~<:.ci
L\ . ._ \.
,. . . o.o Nroe ~ ~ =:... ~
.:L· <£-+op
~ ().}{cl ~ Q ) J~ -
(. 6-,--o.,u±-
'.)_ ' 1' l Afo.;d; °J6 .fquol -+o t-hUl. J
l~ l ~~ _., T~ -~~«
r tfilj D't6 p1
°1 ' l>',e, lib+- _J6 &,-, f9 '
Cb) 6+op ·
\. ~~ a...\}-z_o T C1m p = &o..ut
-2-·R~~ +h c .'5\ ¥ 5 -A'Yld 6 ~ er-~ -=- ::- N UJJ)
o · Db ~\o.,d' \'T~ ➔ 1:)o:i-a lA -
~- T~ .z TCIW\p ~ ~ et<:"t
5 ' b\-t:Jp,
QI) &CR~ d 73:.a_u~ -
\. cs--\-rutl
'.)_• ~ (_ ~ \ :tb €ct~ --1-u NJ--LLL)
8, ~Q ~~ llb-t- -=t6 ~ '1
~~ 6+-op ·
6 ' :=th:h aJJ ~ t o,v,p~ T cu_L
6· R~ -the 6 -h:{> s $ 6 U-rn:H.U. l I C"w\p-=;::- N.l-ill)
Dtt'Q ~ 7c-m,):, ~ !::=i-a." -
\~ = ~ ~ ~ci/
9· ~ p'
-----------,;])u 'µ,}b
INSTRUCTION TO CANDIDATES :
1 · SECTION-A is COMPULSORY consisting of TEN questions carry~
~Oo marks
each. t
h, and studen s
2· SECTION-B contains FIVE questions carrying FIVE mar k~ ·
have to attempt any FOUR questions . h r,_ ·
d students
3.
0
SECTION-C contains THREE questions carrying TEN m.u.. 5 eac an
have to attempt any TWO questions.
SECTION A
~
~ ,C\ .
J. Write briefly:
~¼~
(a) What are the dangling pointers?
'
(b) How the complexity of a
(c) What arc the sparse m~ ~ "and how these are represented and stmed'?
~~
SECTION-C . e~
7. u,h d . . .
n at are oubly lmked lists and what are their
delete a node in a doubly linked list.
adv:x~
~
4- ,,~~ -t
VY rl e a pt.O gra·n to insert and
1
8. What are the different types oi queues? Disl Z , ~operations for each type.
9. (ff,
Discuss insertion sort in detail. .
~
~
C6
'
~~
2 j l\1-5(, SY-'!
(S2H0C
4
-
tO t (!t) ' 1
3. 3 ). . '1 '5
y 5 6 3 3 r,
1 ~ j 5 '-1
f) 1h e. of1/!vte'11 1ce bmu eun D d~ n e)-(aJ cvn cl a b lYJ (YJ( 'ii T.Jte
t,J ha± 0
l£,l, '11 eµ_ tJf I 1.J-t e e 13 W1 ~ 1.J-t ee.. ·
---:, A cl e nm t1. I fJ.l t e J &. oJ MJa. ~ ~ t t1 et oA ~ ~ -t-~ u. !hVt. e
~ w _ ~ 01 wh,'e,h e ~f c.h w tohl't-'1 e.et Mt> ttvde l ~
o/l V t>{,€- ld/n YI.Q v<-l, vn/t~/tt., {_Ct_LlL- dl.l-- 'Yn ()_Jf h,J t) '1_~
~ }~ A
B
/\ ~
/\ \
o f r
I\
fn J-f
Stc71oJJ- 13
-
.
4 -/4 e ele m e, n y cf/ a)(.}t_ °'7J .He/.(_,H)'(l.n ce,/ ..M v., f, e cl-,'v1J -
!YJI e
½J w U -ff 3 1 11 ' C trYv!, ~ ~ ''M, 'n 'A
1
ivn th d e t ,,& ef n,& YI 11 .
At.R.AY :-
Th lJ.-1. eJoJ--1 i ; /~ ~ ) J1 ec.Luv.) v e p.J.{~ Jo~ 'fY1 cJ ~ U> it:1 I I /4-el/1
l'1
-f ~ ~ t vDJ_µ, et) rm ll/2 t- b e /.:,ct "vd > .6 /' t7 u -l ~ tu ll J
b e, ~ Cl ifri J-i e U< / CU lakd WN/YI -ti- e, ~ fJ Yn Q jf eO ck·i V -
-cJ-ul . .
r
~ • Nh~ t QJf t -I h f -I/ -• _/ u(
·u..vn tu-1J
L
i >t ~~ P otC) LU_,h.o hl v.1 a rr
O .
' I 9no eJ-Lli ·o 'Y1 tm ~tVMj -1: lt.n« ~ f A e.,,e th ;b;·m /'} ~
Al St Ri I tJ A/ :-
-4 D vn 6-lU b'o'}1 VYJ ~~ f ~ t e- b'w we w 1It hat. 1f-l. -t dJ ~ UJJ t-
..f> n l -f ~ (JI_ cl!, CX..6 ·t-e,v- t''n-6 ~ •o Y7 " l-Ct ati .v,e. rn e VZ t- . W e_,
,i lm-tt C<..t- 4 h e. . .ho IJ f- ~~ J-H. wM , ' ~ Jo aJ. ~ Lu n -f hL
·U-te .e O4 e. M ~ 1} M .P I, e LI! cOlb ••'YI ,;. ()( b;'ri ~ .e,,£ e ~
-f " 1/'y?_,J ljl tJ D o/1 U<J 'n...aJ o[ ~ . .
f X 1-t ,
D E'l ,t; L t t N f:tJJ {!-(jf_JJ 1 BIICk- 1 s TIJR 7 > l+V fl It, '/t. iJ c]
'1 - CtJ ti /et-e rnocleJ
I
Stt f.ot~ j
[ B R e J<.f L(j C] ! ::: .p tJ I< l,,J [ LJJ C]
cvn cJ
,1_ . [Rffl.t.J,__n delekd vuJde ID l1t1A Ji, t/i tJ
SU P~f~fLD t ] ;; f)V/l l lt CLmal AVR IL~-;: l tJG
3 ° t:xit ·
~· hf hw1 e NJ,, ct t eU-1·€ -r h t oil~ tJ1e rrf ~ ~ Pe.o ~ q LI eLU/2 ? D,'.s l.LlM
-f he ()j,e.HaHtm /Oil eacJ-,-f!JPe.
'9 l/ euJ/.) aJt e c, J, ~ eCut Jd-1 tM wk! cJ-i dbne n/J Ct't'Yt b e
~ ) ft 'YI .cl e'l>1 e 'YI { 1 L/3h-eJc, p,-u'titu' tti J pk /JC MJ e.J hfo/-1 e- OtrnJj
el e,m e'Y1 t i ~ w m p)-U'c1A) .p
I J
,~ :,- S~J-Lt i hL ~ A u4
A -=- "11>33 , YLfJ 11/~ i r'.l-) >I,(,)~;
i-J fl'{QJ A['I-] ti~
t' ( 1J
A tt). 1 pd.~ -~ ~ ~ '}-
AC~3A l..
'
(,
~S
k:; I - ca ~ <i;S
;,
'/> s
~ ; i.
- oO ,~ 71 y~ l\
\;~
~} 6b
tc
3{,
- cO 33 11 ~ 9-
~;3 <;, <',-. ·.s~
;3 Lf ~ t (,
- c<J
~~
~;~ 11 ~[,
4~
ll -: S"
_ c0 11
-3
?:> 3
Lt ~ ,1 n,, 5
Jt : l
, C'°
- (P
II
''
y~
~,. 33 11
k :: '-t I I :.~ '5 3 .., 1
- ct:'
:> ,_ 33 ~) 't
~~i 11
• ('t4
~: 1
1
SO}llfd Ar1D,.,J' - / / i z :i,3 3 5' Y~ 1lL 111 ~J
q· I J I J
• I
f 1()._v )O / 1
V,s,rWWw (;
1Olh a . brpapcr.con, r
BS nd 121h (PSEB o r downtoa f B corn ,
C-IT, MSc IT nnd CBSE ) B ding previous years question popors o M-Tech , pGDCA, •
' •Toch, Dlploma, BBA, BCA. MBA. MCA.
Roll No I I (
f pages :02
Total N ·
o. of Qu
I I I I I I I Total No, 0
estfons : 09
B. Tech.(30 Animation & Graphics) (2012 onwards)
B. Tech.(CSE)/(IT) (2011 Onwards)
(Sem.-3)
DATA STRUCTURES
Subject Code : BTCS-304
Time : 3 Hrs. Paper ID: [A1126J
Max. Marks : 60
INSTRUCTIONS TO CAN
1. SECTION-A is DIDATES: . TWO marks
each. COMPULSORY consisting of TEN questions carrying
2. SECTION-a contai ch and students
have to attempt ns FIVE questions carrying FIVE marks ea .
3. SECTION-C cont~Y FOUR questions. and students
have to att ains THREE questions carrying TEN marks each
empt any TWO questions.
SECTION-A
1. Write brietJy :
(d) What is the difference between Linear and non-linear data strncture?
StCTlO~-B
f "-rl.un h,,,, ·'1J ''k .._,. app l IN rur
- e,--..\tu.,rn~
. '10
. . , , - -ssion·
,mthrn.;'th. c:'\pn;,
\\ 'mt· .m a••~i)_;.'- -
~<·' ,mm tt' ,nsm -m d rn'k:'nt Ul
• - ' po-.,m1:.
th.:- :-pt'\.' lll\. · · ·m ·m an urnw...
Ho,,· ,~u-~
-, "u t";-~ .ii
,,r...> •
" f\1'~crlloi lO tl\ t' fll1:.)£-y·~ \\
- ·
nk'
•
th~ir \' t'ons ·
app lt.l 1
S£CTIO~-C
a) Wrirc mt algorithm 10 in~ffi new n1..~d~ m thi.:' end of a Doubly Linked List.
b) ConYcrt the- giw n Infix cxprn-si0n h) p\."'S lfix c-:\l)tx'~i1..,n using Stack and show the
derails of Smt k 3t c-,1d1 :-k•p t"'Tt'\.)ll\-cr'!-io n,
8. '\1hat are the tree trnwf'Sj,1 t~iquc-s·~ Explain each \\ith an example.
b) AVL Trees
'. a)
b'
~-
l
u• ~ ~ ~ ~ 1..
1
CAh ~ c 1 ).I) fvU)_ft A/) VAL 'YWW 'rU-Um
~
I
I ~, r(Y. biv.Jk3 t fo,d nw VI' Ua.Lw
fo~
cif 13
19
-,' . ~ / tJ ·
j ~ Jo" dtd- &b ,L~T lA ~ ¾uJi gt> ~
"1 ..
)-{)~CJ,,W}-
~ ., ()/ ~
b
'"l, . 1J,, Jtl i/..J &(, ID 'i,, ,w;( 1w)) o/) lo 1-,) J1A 1 µ,nfl j : e, ("o
~ Qltiill {2~~
~ .»,- v'IULU
~cl,_, 1 : (l>r>\ a..fM he_ 4t,n,v,,,rvJ ~ ~ ;
:AMw ~ W>? )f~ eM ~ /}Jut~ l ~ & ¼~ 1, ~ cJ tv J
[E N\> ~ :J-{,l
5½ b : G'l-11
or-) · UY\A.,\~~j) Gt B4 fe.M~ ,
· I lkJl11' ~ ~ ~tuuB,J ~ , ~ ~~
Kufjui}{)J, ~ UMo C l ~ ~ ~ (/<,(ffil)eJ, ff,i alJA (s1_v,
lAll'tiA ~
!b O D ~ C,AA ~ ROW'
j. ~ ~ Wdw ~~ ~u,. 1t.e-wJ t,i ~ V's vud
LlJ'W ~ & Ivdu (pn 'l1ffi tx luf ,r;,,, ~ .
Q~-c
Q :J-', ~ J ~ {,\IV\
,r ~~~
cJA~ ._
-~- .,, · to ltul>W ~ MX>ch t:d "U,i ~ 1>1
o. 0-o~ .t1 W M · 't
4M Mr¼W' '
~ \ ~ -:1-Y fT It =- N \)LL
~ t) v e,. PLD w ·
Gw~¼fll
. [[N~ 1r1 or
~J: >0° NBIJ-N0De~r1~ ~
Jufl:>'. ftl fr/'.. -cc PU ~ r-retT
~I) y'. ~IT N[!v_NoDe ~ ~ATA -= VAL,
J/.,1.
"ffff ' D"'
~ •I I l/ftnf!i
A .- '"' .
snY,
~ARYANA
AlT";tL,,;, .
l,l 11l l} I All "l' (\·l tis i?. Ll l •I1{IMIJ ~ )I\ l
f( 1': i w 'ttllu l,I
l I J1 (.~\W).f f., &t Jt tht)Ill
tllf ,r. \l.n(t •~c~ 1t0h
ur". l'..<WA.~ LUlt~ 1•,o. ( l( I \( ~ ,,,i Ji1lilftl.V
-9'~~
\.: u,v,ct t.t&k i-1,-0 ,;/,t .
~;: ~~ ~ bf ~
~!,'. ~4 ~ ~ ~
~ P~ - -~
~. aw. ~
----- ~ ~
'mill 04A.al-
I :t/M, /JWJJ IA u).,, it<.l ~'
W;r1Ct .1kw ~ . ~ !AU WWW' 11w h..{f M,;(AA 1
+1Aw- ;/J,u. ,\)rt
Jw,):)Ul w ~ tu ~ M,Oo/,u
~ ~
Visit www.brpaper.com for
downloading previous years question papers of 8-tech,Diploma,BBA,BCA,
MBA, MCA, Bsc-lT, M-Tech , PGDCA, 8-com
INSTRUCTIONS TO CANDIDATES:
1. Section A is COMPULSORY consisting of TEN Questions carrying TWO marks each.
2. Section B contains FIVE questions carrying FIVE marks each and students have to attempt
any FOUR questions.
3. Section C contains THREE questions carrying TEN marks each and students have to
attempt any TWO questions.
SECTION A
I.
a. What is usage of pointers?
b. Relate data structures with data types?
c. Discuss double Linked List?
d. What are postfix expressions?
e. Define debugging?
f. Discuss B-trees?
g. What is adjacency Matrix?
h. Write a short note on Hash Tables?
i. What are advantages of insertion so1t?
j. What are non recursive procedures?
SECTION B
2. Discuss some of the common operations that can be perfonned on data structures by taking
suitable example?
M56594 Pagel of 2
Vis i t www.brpaper.com for
d own loading previous years question papers of 8-tech,Diploma,BBA,BCA ,
MBA, MCA, Bsc-lT , M-Tech , PGDCA, 8-com
SECTIONC
I M56594
Page 2 of 2
I,
,I
I
s
\ " ,, , ()_µ._V ~" 7 -'aF .f)t ~ ..,~ .,g,;~.d ~-c> -
I
r: - 1
3 I
I I )
r'
(;~ I\ I
,'(/
~ '\JJ .\ , I
\_1 \_j
Mi
\ _) \ .. _)
1l IJ
¥ ~ ~ i - cl--S ~ G~ -L ~ .
~➔ 4~ °' Y"l1' ~ N. 1~ ;± ~ -~
S < A TU-'l ==--3 ~~ ~ ) .
~JCTCT., ~ ~-
C~¾ ~ .
cw~~)
~➔ ~ -
~-~
0 Pu 3 H ➔ ~~ "'--0 ~= ~·
ox.,_,
® Pop. ~ ~0-r~ 4-r') ~ --s.c-, ~ AoVc.
~ -
G) ~ fr ~o CS H7.
J ~·
@) o-¾o~~~- ~ pof' ;;
- - ~ ·v~ ~ - ,, _J If ~ ~=-°< .
i~~_i,A~~
%-~ ~
~ ~~
.
a_ ~
~ ~ ( c:4--
aJ<J ~ !-[~•,.,,~
~
c/
~ ~ &c."' 15- ~".O_DJc) d ~~
Jc;; ir~ =,':+ ~ ,!..-~"": ~-Cd ~
k
~ ~
A~M -
~ o/ vz:;:-.__, 7 r~~ ~
1( } ~ -h
=It ~cJW,,__, ~~-~-4>
~ ~C_)
t
~ o._[t ci][lo]_) b[10(l o]) ~ (io~ C,o.:J,~
C J- 1
e,_1.__ ~ -J-
) _) ) ) i_) k./ - -
(l
~ .Er (( z o j C <v-<J / N 0
~ ( J =o; rl < n__; J+ ~
~>> ~ [~[~
CGu1- <C: ~ ~ E-v~ -~ ~
~ <('C~)
J
~~ o~
/
J
ers of
· question pa P VERSITY
, vis,t www.brpaper.com for down1oact1ng previous years TE pANJAB UNI U HARYANA
'- 10th and 12th (PSEB and CBSE), IKPTU,MRSSTU, pSBvANA DIPLOMA, MD
PUNJAB1UNIVERSITY, BFUHS, HPTU, HPSBTE , HAR ~ It _
Total No 0 f Q
· ueatlons: 09 ) /
2012 onwards
B. Tech. (3D Animation & Graphics) ( (Sem . - 3)
B. Tech. (CSE)/(IT) (2011 onwards)
DATA STRUCTURES
M Code: 56594
Subject Code: BTCS-304
Paper ID: [A1126]
Time: 3 Hrs. Max. Mar ks .. 60
SECTION A
1. Write briefly:
-
M-56594 Page 1 of 2
- -.... \..,H .~ r--, - ... ,,,u nr.t'\, .
www.brpaper.com tor down\oadmg previous years question papers of
is,r
1
~~t~Jand 12th (PSEB and CBSE), IKPTU,MRSSTU, PSBTE, PANJAB UNIVERSITY,
ABI UNIVERSITY, BFUHS, HPTU, HPSBTE, HARYANA DIPLOMA, MDU HARYANA
2
· Write
an algoritlu 11 ·
3 l'vJ to nnplement Merge sort.
ake ab .
tnary search tre b . .
50, 2 4 e Y considering the following eight numbers:
38
4. . , , 24, 67, 40, 60, 52.
Write an A .
5. Ev I lgonthm to traverse a graph us1·1 D h
"P ain Ract • lg ept First Search.
lX sort.
6. 8 ·1
u1 d a heap 1--1 ti
40, 65 I rom the following list of numbers:
> 5, 48 14 50
' • , 17, 22.
SECTION C
7. W·
1 rite an algorith .
rite t by quick m to implement Q · k
sort method: u1c sort. Write the steps to sort the "'allow·
11
1
17 mg e ements
, 28, 6, 87, 46.
8. a)
l-Io1, Suppose a binary tree T . .
ts m memory. Write a
b) Write an algorithm t . procedure to delete all the terminal nodes.
Defi
9. a) . o msert a new node in linked list.
Consider the directed Graph G.
Iha
ha
fir
.t
b) Are B trees of order 2 are full binary trees? If yes, explain how.
M-56594
Dec IX ,l
7
I
/1! {/I
\ ,, fl r 1,, " ,
I' , I I,I
I', · 1'
/' ' I
(i 1,f,1· , , , 1I ,
',
, '. I
( (}\ (JI ,0
f
1
t, I t
/ /I
l
/'tl/'I
/ //4J
r I II /J-Ii
1
" ,, 1
,, /
I r' ,, ·~
11
I I .J , IJ/Jf )f l 'i (
/l ,r 1111r
1
, ,d t "1 r /'l
t f\ ~ G (A
,L
I \+ 1
I
.I.
fl
l
I\ lJ(-JI
f 1) •
(>, l . t
I J I
_ro
No . ~v
0 Sb
I '--..~"f-
~ g 6I
1 0
\ I
~o f'l---
...
~. f,XJ: .
g~[£, r fu t.fu-i A.
.u-d.e
I~> I~>
J6/ 3" ~ "l-~
½2.}
s~r
l 'l-f ~;,
31.(
>'l-/
S'Lf "7
36l - I
M1>
\
....- ~ b { g i I ____,
;:,
1 2- I 3
½
9iur () ~o J
I
~b I / 3 2.1 /4'>
3')-/
I~;, l-f'l--)
543
41,-) j(£
b"-'4 ' I
~ll :!ki
j
3'18 I Y6
J 53!? I I
-[
j
r,g
~
-
t L,. ( 4
-•r\~,
f~
J, l\.fld 1
7
)<
~ .
?
b I
C
(
I ~ ) I )~ ,1> lt
\n \ .·,n
'' ,..
" ,\
r \ ~•
'1i '1,
l 4; 51~
r1,"f ?,
~ta '5 4~
3 ~t<
1b/
36r
'J 66
stt --- -
t;) No, 4o
~o
/'JO · jO
cl..J NO· ~g
/ <;
tr
I "" 5b
l ~, ~f
I"I 11 l!iI
I • ~o
10
N o , QJ .
,,
?.
~ 'i 7 4b
.I
L--
j f.- ~
,~ rr
~
i,t
-r1 ~%bW
I, \ii)
c. /\ VAIL -= NULl I
,J . Je,t N [ I rt,,,,, .
[,J ,,e tL. r
n " v A/l .,,J..
.ft.,t
_j .
4 ) /NFo {NtN J~ /1/;/'1
. f UJl :: NU Ll / J..J._.
-/ 1/\,l/YI
,
I
EI u Jet
: L;
NK [ fV £1v J~ .smfi..1
l I- r ,(I
1r d , ,1
,/ I
\ ·, 1"
I
r ·'t·, I/
J
'V j
I
~
\, -~
):
~
v,/
~
" ·v<
I") fr L\r\cl i,,,;_1,,,,, e 1',,(' / .., ,v, 'ii t ,
Cli~\ o(_ ~,,lJtf,,r, "i
N r,& ~ V f\) 4 (ae
V,
~ -
9ht l!M\ t'e, _ 1
I tJ 1-.dt
,~",/_Pt ll -
V)
, Ov) rd1,,t f - 1/
~ I
CvJ:d It (I -- .:I. D•ti J.tt.1.1 _ .~
Dtt:l ht N
---
~) 1~ ~
~ -j r;IJ}I-(, ,;,
0 1~
=k w-'.U. f~ ~~ ~ 1~. ~,ha .
1-v -~ '. '
~ b ~ ;w,0 ~ ~ f~
--/iR_
11,,1, wr rii, ~ L ·
_J