Professional Documents
Culture Documents
IT 12 April 2022
IT 12 April 2022
IT 12 April 2022
FirstYear (Management)
IT 12: I) ANDALGORITHMS LIffiARY
(Semester - I) 1
Ql) M l20x%=l0l
a) Ina list, insertion can be done as i;\ "
r) ii) end
all
*jF':
b) collection of nodes is AS
D Queue
iii) Linked list tack
c) In a stack , if a user tries to in full stack, it is called
, Overflow lJnderflow
iii)Empty collection ,0 Garbage collection
d) Which method is ;the top element of the stack without
e)
A node must be either Red or Blac-hin color and root node inust be
black
P,TO.
{
o
t
ac LIBRhRY
iii)Stage n+l
--,'",
5',9 Stage n-2 t
o
Q2) a) thm to draw Binary search tree for the following data.
{
I 12, 13, A7, 09, 77, 2A, 19, 04, 05 tsl
b) BFS and DFS. t3I
C ) Min Heap. 121
OR ,n"i
a) Apply DFS algorithm on the srsuh and show the steps. t3l
rlLu
,t-'
c) write an algorithm to count number ofnodes in singly linked list. 13l
Is86sJ-102 3
Q4) a) What is Jump Game algorithm? .ai-, t4l
b) Sortthe following data using ms1:gosort algor{thm L38,27,43,3,9, 82, 10]
I4l
c) Explain need of t21
OR
a) Illustrate the the minimum cost spanning tree for given
graph t4l
b) ple t4l
c) l2l
\\
X: {A, B,C, D, B, A#; D, F} \{1
Y: {C, B, A, F}
b) Write an algorithm delete element from linked list w
zeta.
t+s
i3^
i-u
4
Is86sl-102