Code: 105302Computer Science & Eng.3rd Semester7 Examination Papers

Data Structure and Algorithms

Official Bihar Engineering University examination question papers, marks distribution, and questions transcript. Available exam sessions: 2025, 2024, 2023, 2022, 2020, 2019.

Exam Year:

Get Instant AI Answers on this Paper

Open BEU Connect Android app to solve any numerical or derive formulas step by step.

Ask AI in App
Official Exam Paper TranscriptB.Tech 3rd Semester Examination, 2025
Bihar Engineering University, Patna
B.Tech 3rd Semester Examination, 2025

Data Structure and Algorithms

Time: 03 HoursCode: 105302Full Marks: 70

Instructions:

  1. The marks are indicated in the right-hand margin.
  2. There are NINE questions in this paper.
  3. Attempt FIVE questions in all.
  4. Question No. 1 is compulsory.
Q.1 Choose the correct option/answer the following (Any seven question only):[2×7=14]
  1. What is the time complexity of deleting a linked list?

    1. O(1)
    2. O(n)
    3. O(log n)
    4. O(n2)
  2. Let T be a binary search tree with 15 nodes. The minimum and maximum possible heights of T are

    1. 4 and 15 respectively
    2. 3 and 14 respectively
    3. 4 and 14 respectively
    4. 3 and 15 respectively
  3. Which sorting algorithm is stable and works efficiently for small or nearly sorted datasets?

    1. Quick Sort
    2. Heap Sort
    3. Insertion Sort
    4. Selection Sort
  4. In a BST, deletion of a node with two children uses

    1. Random node
    2. Inorder successor
    3. Any one of leaf nodes
    4. Root node
  5. In a doubly linked list, what is the minimum pointer updates required to delete a node (not head/tail)

    1. 1
    2. 2
    3. 3
    4. 4
  6. Which of the following pairs of traversals is not sufficient to build a binary tree from the given traversals?

    1. Preorder and Inorder
    2. Inorder and Postorder
    3. Preorder and Postorder
    4. None of the above
  7. The number of edges in a complete graph with 'n' vertices is?

    1. n(n+1)
    2. n2
    3. n(n − 1)/2
    4. 2n − 1
  8. Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any non-root node?

    1. 1
    2. 2
    3. 3
    4. 4
  9. Given a hash table T with 25 slots that stores 2000 elements, the load factor α for T is

    1. 80
    2. 0125
    3. 8000
    4. 25
  10. Binary search

    1. is divide and conquer method
    2. can be implemented using recursive function
    3. is better than linear search in worst case
    4. all of these
Q.2 (a) Explain the role of time-space trade-off while choosing suitable data structure for a real-world application. Take suitable examples.[7]
(b) How Abstract Data Types achieve abstraction? Illustrate your answer with the help of Queue ADT, explaining both physical and abstracted views.[7]
Q.3 (a) Convert the following infix expression to equivalent postfix expression using stack. Also, evaluate the postfix expression using stack: 7 + 5 * 3^2/(9 − 2^2) + 6 * 4. Clearly mention the action taken and stack-state for each symbol scanned from input expression.[7]
(b) What is Circular queue? Write C functions for Q-insert and Q-delete operations on a circular queue.[7]
Q.4 (a) What is Binary Search Tree? Write a C function to insert a given node into BST.[7]
(b) Compare array-based lists and linked lists. Design an algorithm to reverse a singly linked list.[7]
Q.5 (a) Write a C program to implement stack operations using linked list. Analyse the implementation complexity also.[7]
(b) Write an algorithm to insert an element somewhere in the middle of a doubly linked list after given nth node.[7]
Q.6 (a) If the following sequence of numbers is to be sorted using quick sort, then show the iterations/passes of the sorting process: 42, 34, 75, 23, 21, 18, 90, 67, 78.[7]
(b) Write an algorithm for merge sort technique. Derive the best, average and worst complexity of your algorithm also.[7]
Q.7 (a) Explain the concept of hashing and its importance in data structures. Discuss different collision resolution techniques used in hashing.[7]
(b) How does an AVL-tree differ from binary search tree? Insert the following keys in the order given below to build an AVL-tree: 12, 11, 13, 10, 9, 15, 14, 18, 7, 6, 5, 4. Clearly mention different rotations used showing balance factor of each node.[7]
Q.8 (a) The level order traversal of a max heap is 50, 40, 30, 25, 16, 23, 20. What will be the level order traversal after inserting the elements 28, 43, 11 sequentially. Clearly indicate the heapify steps after each insertion.[7]
(b) Discuss various tree traversal schemes with suitable example. Write a recursive function for in-order tree traversal.[7]
Q.9 Write short note on any two of the following:[7×2=14]
  1. Asymptotic Notations
  2. BFS and DFS
  3. B-Tree
  4. Priority Queue

Related Official Syllabus

Data Structure and Algorithms

105302

Official BEU curriculum units & topics for this examination subject.

Unit 1.0: Introduction

Basic Terminologies: Elementary Data Organizations • Data Structure Operations: insertion, deletion, traversal etc. • Analysis of an Algorithm • Asymptotic Notations • Time-Space trade off

Unit 2.0: Stacks and Queues

ADT Stack and its operations: Algorithms and their complexity analysis • Applications of Stacks: Expression Conversion and evaluation • Corresponding algorithms and complexity analysis • ADT queue, Types of Queue: Simple Queue, Circular Queue, Priority Queue • Operations on each Type of Queues: Algorithms and their analysis

Unit 3.0: Linked Lists

Singly linked lists: Representation in memory • Algorithms of several operations: Traversing, Searching, Insertion, Deletion • Linked representation of Stack and Queue • Header nodes, doubly linked list: operations and algorithmic analysis • Circular Linked Lists: all operations and complexity analysis

Unit 4.0: Searching, Sorting and Hashing

Linear Search and Binary Search Techniques and complexity analysis • Objective and properties of different sorting algorithms • Selection Sort, Bubble Sort, Insertion Sort, Quick Sort, Merge Sort, Heap Sort • Performance and Comparison among all methods • Hashing

Unit 5.0: Trees

Basic Tree Terminologies • Different types of Trees: Binary Tree, Threaded Binary Tree, Binary Search Tree, AVL Tree • Tree operations and algorithms with complexity analysis • Applications of Binary Trees • B Tree, B+ Tree: definitions, algorithms and analysis

View Complete 3rd Semester Syllabus

Prepare Better with BEU Connect

  • Download papers for 100% offline study
  • Ask AI for step-by-step problem breakdown
  • Attempt official GATE CBT mock tests
  • Calculate SGPA and track attendance
Download Android App