Вы находитесь на странице: 1из 3

B_227L

. B.E./B.Tech. DEGREEEXAMINATION,MAY/JUNE2007
Third Semester Information Technolory TF 246 Time : Three hours Answer ALL questions. PARTA-(10 x2=20 marks) 1. What is the BNF grammar for describing a digit? What is the use of spaceand time complexity? DATA STRUCTURES AND ALGORITHMS Maximum : 100 marks

2.
3. 4.
o.

Write down the array representing polynomial 2xz +lxy + y2

6.

Write down tire adjacency matrix of the graph.


lrtl

7.

\Yhy is the insertion sort most efficient when the original data are in almost sorted order? What is the worst casesearch bime of a balanced binarv tree? Define VSAM.

8. L

10. What are the two dynamic hashing technique?

ww

w.

aa na

Define a priority queue.

va

Give a directed tree representation of the formula {a + b) * (c + d) .

N.

co m

PARTB-(5x16=80marks)
11. (a) (i) (ii)

Write an algorithm to convert characterto numericvalues'

(8)

Write a string assignment procedure for the workspace/index table (8) method. Or

(b)

(i) (ii)

Write an algorithm that checks for the largest and smallest entries (8) in an integer array. Why study of data structures is also necessarily a study of the (8) algorithm that control them? How to use stack in solving tower of Hanoi problem and write an (8) algorithm to solve it?

L2. (a)

(i) (ii)

Or

(b)

aa na

va

What is a doubly linked list? Write down the detailed algorithm for insepting a node to the left and deleting a node from a doubly linked list. (16) write down an algorithm to perform matrix multiplication multilinked structures. with (8)

13. (a)

(i) (ii)

ww

w.

Explain various kinds of traversals in a binary tree and illustrate (8) the same with the following examples.

Or (b) (i) (ii) Write down an algorithm for allocating storage using the buddy (8) system. Explain the DFS and BFS traversals in a graph and write the (8) algorithm.

N.

co m

Write down the insertion and deletion algorithm for a circular (8) queue.

B 2271

14. (a)

Write down the algorithm for radix sort and sort the sequence of numbers using the algorithm 42,23,74,tL,65,57,94,36,99, 87, 70. (16) Or

(b)

Write down the algorithm for merge sort and sort the sequence of numbersusing the algorithm 42, 23,74,11, 65, 57,94,36, 99, 87, 70.(16) Discuss in detail the various distribution dependenthashing functions. (16) Or

15. (a)

(b)

Explain a method for retrieving a record from a direct file using chaining (16) with separate lists and algorithm.

ww

w.

aa na

va

N.
B 227r

co m

Вам также может понравиться