NotesM.Sc ITData Structures Laboratory
PGCA1916

Data Structures Laboratory Notes

Program:M.Sc IT
Semester:Semester 2
Credits:2
Units:1 Units

Subject Overview

The practical companion to Data Structures, implementing linear search and binary search trees, quick sort, polynomial representation, heap sort, linked list and queue operations, merge sort, priority queues, doubly linked lists, stacks, Dijkstra's shortest path, dictionary-order binary search trees, and graph traversal and hashing techniques. A 2-credit core lab paper.

Subject at a glance

1

Units

17

Topics

2

Credits

1

Infographics

Unit-wise Syllabus

1 units — open any unit for detailed topic-wise notes, diagrams and important exam questions

  • Linear search and binary search tree implementation
  • quick sort
  • polynomial representation using arrays
  • min/max heap sort
  • iterative and recursive binary search
  • linked list operations (insert/delete/update/reverse)
  • array insertion at a specified position
  • call-by-value/reference swap
  • circular queue simulation
  • merge sort
  • three-queue priority queue
  • doubly linked list operations
  • stack PUSH/POP with overflow/underflow handling
  • Dijkstra's shortest path
  • dictionary-order binary search tree via inorder traversal
  • BFS and DFS implementation
  • hashing technique implementation and complexity measurement
ProcessDijkstra's shortest path
  1. 1Set source distance 0, others ∞
  2. 2Pick the unvisited node with smallest distance
  3. 3Update neighbours

    If a shorter path is found

  4. 4Mark the node visited
  5. 5Repeat until all nodes are visited

Study guide

In this lab you implement linear search and binary search trees, quick sort, polynomial representation, heap sort, iterative and recursive binary search, linked list operations, array insertion, call-by-value and reference swaps, circular queues, merge sort, a priority queue, doubly linked lists, stack operations with overflow and underflow handling, Dijkstra's algorithm and dictionary-order binary trees. Test boundary conditions on every structure.

Read Unit 1 notes

Why Data Structures Laboratory Matters

These exercises are the classic coding-round problems for software roles.

How to Prepare for Data Structures Laboratory

  • Implement each from memory after the first time.
  • Test empty, single and full cases.
  • Be ready to state complexities.

Data Structures Laboratory: Frequently Asked Questions

What programs are in the Data Structures lab?

Searching, sorting, linked lists, stacks, queues, heaps, trees and shortest path.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Data Structures Laboratory.