Printed Pages: 4

frsoI

NCS.3O1

(Following Paper ID and Roll No. to be filled in your Answer Book) Roll No. Ito lgLll'o B.Tech.

(sEM. III) THEORY EXAMINATION, 2015-16 DATA STRUCTURES USINGC [Time:3

hours]

IMaximumMarks:100 Section-A

Q.

I

Atternpt all parts. All parts carry equal marks. Write answer of each part in short. ( l0 *2:20) address of element A lgg,49] considering the base address 10 and each element requires 4 bytes for storage. Follow row major order.

(b) (c)

What are the various asymptotic notations? Explain the Big Oh notation.

What are the notations used in evaluation of arithmetic expressions using prelix and postfix forms?

(d)

Classify the hashing functions base,d on the various

-r' methods by which the key value is found.

(e) P'

What is the maximum height ofany AVL tree with 7 nodes? (1)

r

r"

(fr \ 9 $l

If the Tower of Hanoi is operated

on n-10 disks,

calculate the total number of moves.

Define connected and strongly connected graph. Translate infix expression into its equivalent post fix expression : A * (B+D)/E-F * (G+H/I() .

a :trJ::: ffiTilH:H*rlthe fr)

suitabre and

Explain the application of sparse matrices?

Scction-B Note: Atternpt any five questions from this section. (5

-

?

" 10:50)

Considerthe linearilraysAAA[5:50], BBBI -5:10] and CCC [1:8]

a)

Find the number of elements in each array.

b)

(AAA).:300 and w:4 words per memory cell for AAA. Find the address of Suppose base AuA.AI I 5],

Av{A[35] and AuA',{[55].

3/

Describe all rotations in AVL tree. Construct AVL tree fromthe followings nodes: B, C, G E, F, D,A.

,

Explain bin ary search tree and its operations. make a binary search tree forthe following sequence ofnumbers, show all st,eps: 45,32,90, 34,68,72,15,24, 30, ffi,l l, 50, 10. (2)

7-

Explain Djiksatra's algorithm with suitable example.

6.

Write a C-Function for Linked List Implementation stack. Write all the Primitive Operations.

7.

Draw

a

of

binary tree which following traversal:

Inorder: DBHEAIF.I CG Preorder:

Q8.

ABDEHCFIJ

G

Consider the following undirected graph.

F,l7E a)

Find the adjacenQy list representation ofthe graph.

'.

b)

Find a minimum cost spanning tree by Kruskal's algorithm. (3)

P.T.O.

r

,',,

9.

How do you calculate the complexity of sorting algorithms? Also write a recursive function in 'C'to implement the p,erge sort on given set of integers.

Section-C Attempt any two questions from this section.

(2x15:30)

lA. /te

What are doubly linked lists? Write a C program to create

doubly linked list.

OR How do you find the complexity of an algorithm? What

.\

is flre refallgn

b.ryqtp

the time qgd space.qornntexities -1

of an algorithm? Justiff yourtnswer with an example. I

l.'

Write an algorithm for findirtg solution to the Tower

of

Hanoi problem. Explain the working ofyour algorithm (with 4 disks) with diagrams.

12.

1

r'

I

Define a B-Tree. What are the applications of B-Tree?

Draw

a

B-Tree of order 4 by insertion of the following

trys in order: Z, U,A, I, W I;R X,C,J, D, M,I B, Q, E, H,

S,K,N,R,GY,F,O,V

I 18000

,

UPTU B.Tech Data Structures Using C NCS-301 Sem 3_2015-16.pdf

Page 4 of 4. UPTU B.Tech Data Structures Using C NCS-301 Sem 3_2015-16.pdf. UPTU B.Tech Data Structures Using C NCS-301 Sem 3_2015-16.pdf. Open.

221KB Sizes 3 Downloads 123 Views

Recommend Documents

UPTU B.Tech Data Structures Using C-ECS302 Sem 3_2012-13.pdf ...
UPTU B.Tech Data Structures Using C-ECS302 Sem 3_2012-13.pdf. UPTU B.Tech Data Structures Using C-ECS302 Sem 3_2012-13.pdf. Open. Extract.

UPTU B.Tech Data Structures Using C Sem 3_ 2005-06.pdf ...
Obtain a data representation mapping a deque into. one-dimensional ... (a) Prove that, for any nonempty binary tree, if no is. number of leaf ... in a binary tree.

UPTU B.Tech Data Structures Using C Sem 3_ 2005-06.pdf
TCS- 302 3 [Turn. Over. Page 3 of 4. UPTU B.Tech Data Structures Using C Sem 3_ 2005-06.pdf. UPTU B.Tech Data Structures Using C Sem 3_ 2005-06.pdf.

Data Structures Using C++.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Data Structures ...

ReadPDF Data Structures Using C and C++ (2nd ...
Book Synopsis. This introduction to the fundamentals of data structures explores abstract concepts, considers how those concepts are useful in problem solving ...

Data Structures Using C and C++
Java Data Structures 2nd Edition End of the World Production LLCAmazon com ... by using a programming language, and shows how to use the C language.