csc211

Data Structures and Algorithms

Easy Exam Preparation: 2 days
Question Papers (9)
logo

Community

FM: 60 PM: 24

Data Structures and Algorithms

2081 Boards

Section A

Answer any two questions.

1

Define circular queue. How queue differ from stack. Write a program to implement linear queue.

10

!

2

What is AVL tree? How heap differ from tree? Construct an AVL tree for data 24,12,8,15,35,30,57,40,45 and 78.

10

!

3

Define list. How can you use linked list to implement stack? Explain circular linked list.

10

!

Section B

Answer any eight questions.

4

Explain Big O notation in brief. Find Big O of the following function:
f(x) = 5x4+ 9x2 + 7x + 9.

5

5

Convert the infix expression
A+(((B-C)*(D-E)+F)/G)$(H-I)   into post expression using stack.

5

!

6

Write a program to find GCD of two numbers using recursion.

5

!

7

What is the application of spanning tree? Draw a MST of a graph containing any 8 vertices and 11 edges with arbitrary edge costs.

5

!

8

Sort the number {82, 73, 12, 39, 26, 88, 2, 9, 60, 41} using shell sort.

5

!

9

What is hashing? how do you apply linear probing and rehashing explain with example.

5

!

10

What is the algorithm for node insertion and deletion from specified position from doubly linked list.

5

!

11

What is linear queue? Why do we need circular queue? Explain.

5

!

12

Write short notes on:

Breadth First traversal of graph
TOH

5

!