Pripted Pages-4

ECS302

Following Paper ID and Roll No. to be filled in yourAnswer Book Roll No.

tt

tt

B.Tech. (SEM. iID ODD SEMESTERTHEORY

EXAMINATION 2012-13 DATA STRUCTURES USING C Time

: 3 Haurs

Note

:- (i)

(ii) l.

Total Marlcs

:

100

Attempt all questions.

All questions carry equal marks.

Attempt any four parts of the following

(a) Detennine

:-

(5x4:20)

addressing formula to find the Iocation of (i,

j)e

element of a m x n matrix stored in column major order.

(b) Write an algorithm to multiply two matrices and determine complexity of the algorithm.

(c) (d)

Write the algoritlm/function to insert an element in a doubly linked list at specified location.

Write a C program to reverse the links of a given singly linked list.

(e) What is complexity

of an algorithm ? Explain various

notations used to express the complexity of an algorithm.

(0

Explain the method to represent the polynomial equation using Iinked list. Write and explain method to add two polynomial equations using linked list.

ECS302/DLT-44130

lTurn Over

2.

Attempt any two parts of the following

:

(10x2=20)

(a) Write algorithm to convert a postfix expression

into an infix expression. Consider the following arithmetic expression in postfixnotation

:

752+*4t5_/_ (i) (ir)

Find the value of the expression.

Find the equivalent prefix form of the above expression.

(b) The efficient method the form

an-t x*a

P,(x):

a0

used in evaluating a polynomial

x'+

a,xn-r

+ a2*-2 + &, X,-, +

of

....... +

n

is by nesting using Horner's rule, as shown below

\(x) : (....(( ao x + a,) x *

ar) x

+ .... *

an_r)

:

....)x

*

a.

show how this can be carried out using stack.

(c) (i)

Write

a

program or function in C to find out duplicate

elements in the queue.

qD

Describe

a

procedure to convert a recursive algorithm

to a non recursive algorithm.

3.

Attempt any two parts of the following

(a)

:

(l0x}:20)

Define tree, binary fee, complete binary tree and full binu.y tree. Write algorithms or function to obtain traversals of a binary tree in preorder, postorder and inorder.

(b)

What is binary search tree

?

Write the important applications

of binary search tree. Write algorithm to delete a node from a binary search tree.

ECS302/DLT-44130

(c)

Show that the maximum number of nodes in a binary tree

of height h is 2h-r -1. 4.

Attempt any two parts of the following

(a)

(10x2:20)

:

Find the minimum spanning tree for following graph using

Prim's and Krushkal's algorithms.

5.

(b)

Write and explain an algorithm for finding shortest path befween any two nodes of a given graph.

(c)

Describe the various representations of graph.

Describe any two parts of the following

(a)

:

(10x2:20)

Write the characteristics of B-Tree. Construct

a B-tree on

following sequence of inputs | 0,20,3

0,40,50, 60,70, g 0,90

Assume that the order of the B tree is 3.

ECS302/DLT-44130

lTurn Over

1

(b) (i)

Consider the following AVL Tree and insert 2, 12,7 and 10 as newnode. Showproperrotationto maintain

the tree as AVL.

(ii)

Describe two way raerge sort method. Explain the complexities of meige sort method.

(c)

Write short notes on

(i) (ii)

:

Garbage Collection

Radix Sort.

I j

ECS302/DLT-44130

8375

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.

1MB Sizes 4 Downloads 119 Views

Recommend Documents

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 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.

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.

UPTU B.Tech Discrete Structures EIT-071 Sem 7_2011-12.pdf ...
UPTU B.Tech Discrete Structures EIT-071 Sem 7_2011-12.pdf. UPTU B.Tech Discrete Structures EIT-071 Sem 7_2011-12.pdf. Open. Extract. Open with. Sign In.

UPTU B.Tech Data Mining & Data Warehousing ECS 075 Sem ...
UPTU B.Tech Data Mining & Data Warehousing ECS 075 Sem 7_2011-12.pdf. UPTU B.Tech Data Mining & Data Warehousing ECS 075 Sem 7_2011-12.pdf.

UPTU B.Tech Data Compression ECS 077 Sem 7_2011-12.pdf ...
UPTU B.Tech Data Compression ECS 077 Sem 7_2011-12.pdf. UPTU B.Tech Data Compression ECS 077 Sem 7_2011-12.pdf. Open. Extract. Open with.

BTECH(PS)4TH SEM(P)......PDF
Himanshu Kumar. Aditi Bhardwaj. Aayushi Joshi. Swati Badhan. Roohi Mittal. Aarushi Mathur. Diksha Gautam. Martin Vanlalsawma Thiek. Arvind Kumar Mahto.

UPTU B.Tech Data Base Management System-TCS-402 Sem ...
UPTU B.Tech Data Base Management System-TCS-402 Sem 4_2009-10.pdf. UPTU B.Tech Data Base Management System-TCS-402 Sem 4_2009-10.pdf.

UPTU B.Tech Hydraulics & Hydraulic Machines NCE403 Sem ...
(e) On what factors does the Manning's rugosity'corefficient ... Displaying UPTU B.Tech Hydraulics & Hydraulic Machines NCE403 Sem 4_2014-15.pdf. Page 1 ...

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 ...

UPTU B.Tech Wireless & Mobile Communication EEC801 Sem ...
UPTU B.Tech Wireless & Mobile Communication EEC801 Sem 8_2014-15.pdf. UPTU B.Tech Wireless & Mobile Communication EEC801 Sem 8_2014-15.pdf.

UPTU B.Tech Advanced Materials Technology EME063 Sem ...
Loading… Page 1. Whoops! There was a problem loading more pages. Retrying... Main menu. Displaying UPTU B.Tech Advanced Materials Technology EME063 Sem 8_2011-12.pdf.

UPTU B.Tech NonConventional Energy Resources EOE081 Sem ...
UPTU B.Tech NonConventional Energy Resources EOE081 Sem 8_2014-15.pdf. UPTU B.Tech NonConventional Energy Resources EOE081 Sem 8_2014-15.

UPTU B.Tech EME 011Fluid Machinery Sem 6_2010-11.pdf
UPTU B.Tech EME 011Fluid Machinery Sem 6_2010-11.pdf. UPTU B.Tech EME 011Fluid Machinery Sem 6_2010-11.pdf. Open. Extract. Open with. Sign In.

UPTU B.Tech EOE-041 Introduction to Soft Computing Sem 4_2010 ...
UPTU B.Tech EOE-041 Introduction to Soft Computing Sem 4_2010-11.pdf. UPTU B.Tech EOE-041 Introduction to Soft Computing Sem 4_2010-11.pdf. Open.

UPTU B.Tech Principles of Communication NEC-502 Sem 5_2015 ...
UPTU B.Tech Principles of Communication NEC-502 Sem 5_2015-16.pdf. UPTU B.Tech Principles of Communication NEC-502 Sem 5_2015-16.pdf. Open.

UPTU B.Tech Principles of Communications EEC-502 Sem 5_2013 ...
UPTU B.Tech Principles of Communications EEC-502 Sem 5_2013-14.pdf. UPTU B.Tech Principles of Communications EEC-502 Sem 5_2013-14.pdf. Open.

UPTU B.Tech Electronic Circuits NEC402 Sem 4_2014-15.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. Main menu.

UPTU B.Tech Power station practice0001 Sem 6_2007-08.pdf ...
There was a problem loading more pages. Retrying... UPTU B.Tech Power station practice0001 Sem 6_2007-08.pdf. UPTU B.Tech Power station practice0001 ...