Jump to Year/Set
2018 051403

B.Tech Examination, 2018

Time 3 hours
Full Marks 70
Instructions:
  • The marks are indicated in the right-hand margin.
  • There are NINE questions in this paper.
  • Attempt FIVE questions in all.
  • Question No. 1 is compulsory.

Questions

Q1

Answer the following:

a)

Define data structure.

[2 Marks]
b)

What are average, best and worst case complexities?

[2 Marks]
c)

Write formula to calculate address of elements in two-dimensional array.

[2 Marks]
d)

What is deque? Explain with example.

[2 Marks]
e)

Define tail recursion.

[2 Marks]
f)

What is the need for linked representation of lists?

[2 Marks]
g)

Give node structure for the term of polynomial having single variable.

[2 Marks]
h)

What is the maximum number of nodes in a binary tree of depth kk?

[2 Marks]
i)

What is threaded binary tree?

[2 Marks]
j)

What is worst case time complexity of quick sort?

[2 Marks]
Q2

Answer the following:

a)

Formulate an algorithm to find the number of total nodes in a binary tree. What is the complexity of your algorithm?

[14 Marks]
Q3

Answer the following:

a)

What is Tower of Hanoi problem? Draw the recursive tree diagram for the solution of Tower of Hanoi problem, where the number of disks is 4 and number of pegs is 3.

[14 Marks]
Q4

Answer the following:

a)

Explain the following operations on a binary search tree with suitable algorithms:

[14 Marks]
Q5

Answer the following:

a)

Explain the following operations with pseudo-code in a doubly circular linked list:

[14 Marks]
Q6

Answer the following:

a)

The odd-even transposition sort proceeds as follows : Pass through the file several times. On the first pass, compare x[i] with x[i+1] for all odd i. On the second pass, compare x[i] with x[i+1] for all even i. Each time that x[i] > x[i+1], interchange the two. Continue altering in this fashion until the file is sorted.

[14 Marks]
Q7

Answer the following:

a)

Construct an inorder threaded binary tree (TBT) for the given tree. Illustrate its node structure. Also show the memory representation of a complete TBT for this :

[14 Marks]
Q8

Answer the following:

a)

Define AVL tree. Construct an AVL tree for the following elements : 3, 5, 11, 8, 4, 1, 12, 7, 2, 6, 10

[14 Marks]
Q9

Answer the following:

a)

Prove the correctness of Kruskal's algorithm for minimum spanning tree. Draw minimum cost spanning tree for the graph given below and also find its cost :

[14 Marks]

Install on iOS

To install BEU Connect on your iPhone:

1. Tap the Share button at the bottom of Safari.
2. Scroll down and tap "Add to Home Screen".