Skip to content

// Anna University, Chennai / 2020

Anna University — Data Structures (CS8391), November/December 2020

Data Structures · CS8391 · R2017 · B.E. Computer Science and Engineering

Files open in a new tab. Use your browser's download or save option to keep a copy.

Questions

16

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16

Has an official figure

Work through the questions

16 questions

No verified answers are available for this paper.

  1. Question 1

    Part AUnit 1Descriptive2 marks

    Data Structures

    Write down the applications of list.

    No verified answer or solution is available for this question.

  2. Question 2

    Part AUnit 1Descriptive2 marks

    Data Structures

    Compare Array ADT and list ADT.

    No verified answer or solution is available for this question.

  3. Question 3

    Part AUnit 2Descriptive2 marks

    Data Structures

    Write a program to reverse a string using LIFO ADT.

    No verified answer or solution is available for this question.

  4. Question 4

    Part AUnit 2Descriptive2 marks

    Data Structures

    Brief about the generalized version of Queue. And list the operations performed by it.

    No verified answer or solution is available for this question.

  5. Question 5

    Part AUnit 3Descriptive2 marks

    Data Structures

    Illustrate Heap Data Structure.

    No verified answer or solution is available for this question.

  6. Question 6

    Part AUnit 3Descriptive2 marks

    Data Structures

    How to resolve dangling threads in binary tree ? Illustrate.

    No verified answer or solution is available for this question.

  7. Question 7

    Part AUnit 4Descriptive2 marks

    Data Structures

    Give the adjacency matrix representation of the following graph.

    Official figure for question 7
    Q7 — adjacency matrix graph

    No verified answer or solution is available for this question.

  8. Question 8

    Part AUnit 4Descriptive2 marks

    Data Structures

    Give the procedure for finding articulation point.

    No verified answer or solution is available for this question.

  9. Question 9

    Part AUnit 5Descriptive2 marks

    Data Structures

    List the limitations of linear probing.

    No verified answer or solution is available for this question.

  10. Question 10

    Part AUnit 5Descriptive2 marks

    Data Structures

    What are the steps involved in performing selection sort ?

    No verified answer or solution is available for this question.

  11. Question 11

    Part BUnit 1Descriptive13 marks

    Data Structures

    (a) (i) Given two sorted Linked lists L1 and L2. Exemplify and write the functions to compute L1 ∩ L2 and L1 ∪ L2. (10) (ii) State the advantages of Linked list over arrays. Specify any two real time applications of Linked list. (3) (OR) (b) (i) Write an algorithm to perform following operations in a doubly linked list. 1) Insert a node at the end of the list (4) 2) Delete the last node in the list. (3) (ii) Analyze and write algorithm for Circular Linked list for the following operations using structure pointer. 1) Insert (2) 2) Delete (2) 3) Display. (2)

    No verified answer or solution is available for this question.

  12. Question 12

    Part BUnit 2Descriptive13 marks

    Data Structures

    (a) What are circular queues ? Write an algorithm to insert an element and delete an element from a circular queue. And list the applications of queue. (13) (OR) (b) (i) Write a C program to implement a LIFO list that grows and shrinks dynamically. (7) (ii) Convert the following Infix expression to Postfix expression. (4 + 8)* (6 – 5)/((3 – 2)* (2 + 2)) (3) (iii) Find the value of the following postfix expression. Show stack contents-step by step output. 54 6 + 7 4 – * 9 / 35 15 + + (3)

    No verified answer or solution is available for this question.

  13. Question 13

    Part BUnit 3Descriptive13 marks

    Data Structures

    (a) (i) Write C functions to perform deletion in Binary search tree (Include all the cases). (5) (ii) Construct a binary search tree for the values 45, 56, 39, 12, 34, 32, 10, 78, 67, 89, 91. Give the pre order and post order traversal of the resultant binary search tree. (6+2) (OR) (b) Construct B tree to insert the following key elements with order 5. 2, 14, 12, 4, 22, 8, 16, 26, 20, 10, 38, 18, 36, 48, 6, 24, 28, 40, 42, 32 (13)

    No verified answer or solution is available for this question.

  14. Question 14

    Part BUnit 4Descriptive13 marks

    Data Structures

    (a) (i) Write a program to find an Euler circuit in a graph. (6) (ii) Find the Euler’s path and Euler’s circuit for the graph given below. (7) (OR) (b) Consider the following graph, in what order will the nodes be visited using Breadth first search and Depth first search, and give the routine for same. (13)

    Official figure for question 14, figure 1 of 2
    Q14(a) — Euler path graph
    Official figure for question 14, figure 2 of 2
    Q14(b) — traversal graph

    No verified answer or solution is available for this question.

  15. Question 15

    Part BUnit 5Descriptive13 marks

    Data Structures

    (a) (i) Write a function to perform selection sort. Give example. (5) (ii) Give the routine for Insertion sort. Sort the following sequence using insertion sort 3, 10, 4, 2, 8, 6, 5, 1. (6) (iii) Compare Binary search and Linear search. (2) (OR) (b) Consider a hash table with 9 slots. The hash function is h(k) = k mod 9. The following keys are inserted in the order 15, 38, 8, 5, 20, 33, 14, 30. Draw the contents of the hash table when the collisions are resolved by (i) Chaining (ii) Linear Probing (iii) Double hashing. The second hash function h2(x) = 7 – (x mod 7). (13)

    No verified answer or solution is available for this question.

  16. Question 16

    Part CUnits 2, 3Descriptive15 marks

    Data Structures

    (a) (i) Compare B trees with B+ trees. (5) (ii) Create a B+ tree of order 5 for the following data arriving in sequence : 90, 27, 7, 9, 18, 21, 3, 4, 16, 11, 21, 72. (10) (OR) (b) Write a routine to implement two stacks using single array. (15)

    No verified answer or solution is available for this question.

Keep preparing

Revisit another year or explore a different paper in the library.

More from this exam