PYQs

Data Structure

1 papers · 051403

Jump to paper

2018051403

B.Tech Examination, 2018

3 hours70 marks

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

Ask AI
  1. 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
    Ask AI
  2. 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
    Ask AI
  3. 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
    Ask AI
  4. Q4

    Answer the following:

    a)

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

    14 marks
    Ask AI
  5. Q5

    Answer the following:

    a)

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

    14 marks
    Ask AI
  6. 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
    Ask AI
  7. 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
    Ask AI
  8. 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
    Ask AI
  9. 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
    Ask AI

Support BEUConnect

Contributions cover the domain and hosting.

UPI QR code for pritkr@cnrb
pritkr@cnrb

Add to home screen

  1. Tap Share in Safari.
  2. Choose Add to Home Screen.