Download Data Structures First Lecture and more Lecture notes Data Structures and Algorithms in PDF only on Docsity!
Data Structures
(CE3PCC3)
Faculty In-charge: Dr. Sushama Khanvilkar
Course Objectives The course aims:
- To understand fundamental concepts of data structures and their role in efficient algorithm design and problem solving.
- To implement linear data structures such as stacks, queues, and linked lists using appropriate memory representations.
- To analyze and apply non-linear data structures like trees and graphs in real-world applications.
- To evaluate and compare searching and sorting techniques based on time and space complexity. 06-07-2026 2
Modulewise contents
1. Introduction to Data Structures
2. Stack and Queues
3. Linked List
4. Trees
5. Graphs
6. Searching Techniques
06-07-2026 4
Textbooks
- Aaron M Tenenbaum, Yedidyah Langsam, Moshe J Augenstein, “Data Structures Using C”, Pearson Publication.
- Reema Thareja, “Data Structures using C”, Oxford Press.
- Richard F. Gilberg and Behrouz A. Forouzan, “Data Structures: A Pseudocode Approach with C”, 2ndEdition, CENGAGE Learning.
- Jean Paul Tremblay, P. G. Sorenson, “Introduction to Data Structure and Its Applications”, McGraw-Hill Higher Education
- Data Structures Using C, ISRD Group, 2 nd Edition, Tata McGraw-Hill. 06-07-2026 5
Useful Links
- https://www.edx.org/course/data-structures-fundamentals
- https://nptel.ac.in/courses/106/102/106102064/
- https://www.coursera.org/specializations/data-structures- algorithms
- https://www.mooc-list.com/tags/algorithms 06-07-2026 7
Assessment A. IN-SEMESTER ASSESSMENT (50 MARKS)
1. Continuous Internal Assessment (20 Marks)
a) 15 Marks – Use any 4 tools from Annexure I ( 2 tools Before MSE and 2 tools after MSE ) b) 05 Marks – Attendance and Active participation
2. Mid Semester Examination (30 Marks)
Mid semester examination will be based on 40% to 50% syllabus. B. END SEMESTER EXAMINATION (50 MARKS)
End Semester Examination will be based on syllabus coverage up to the Mid
Semester Examination (MSE) carrying 20% to 30% weightage, and the syllabus
covered from MSE to ESE carrying 70% to 80% weightage.
06-07-2026 8
Data Structures Lab (CE3PCL1) Lab Objectives:
1. To provide hands-on experience in implementing fundamental linear and non-linear data
structures using C.
2. To implement and analyze various searching and sorting algorithms.
3. To apply appropriate data structures (Stacks, Queues, Linked Lists, Trees, Graphs) for solving
computational problems.
4. To strengthen the ability to perform operations like insertion, deletion, and traversal on
complex data.
Lab Outcomes: Students will be able to -
1. Implement Stack and Queue ADTs using array and linked list memory representations.
2. Develop C programs for various Linked List types to perform insertion, deletion, and traversal.
3. Construct and traverse non-linear structures like Binary Search Trees and Graphs.
4. Demonstrate and compare the efficiency of different searching and sorting algorithms.
06-07-2026 10
Assessment
1. Continuous Internal Evaluation (CIA): (25 Marks)
a) 10 Marks – Laboratory work / Experiments
b) 10 Marks - Use any 2 lab tools from Annexure I ( one tool Before MSE
and one tool after MSE )
c) 05 Marks – Attendance and Active participation
2. Oral/Practical Examination: (25 Marks)
Practical/Oral exams to be conducted based on the content of the syllabus.
06-07-2026 11
01 Array Fixed-size, contiguous block of memory storing elements of the same type, accessed by index.
- Constant-time access via index: arr[i]
- Insertion/deletion in the middle needs shifting
- Great for lookup-heavy, fixed-size data
0
1
2
3
4 arr[2] = 3 -> O(1) access Example: arr = [12, 47, 3, 89, 26]
02 Linked List A sequence of nodes where each node stores data plus a pointer to the next node. No contiguous memory required.
- Efficient insertion/deletion (no shifting)
- No random access - must traverse from head
- Variants: singly, doubly, circular linked lists A B C D NULL head -> A -> B -> C -> D -> NULL
04 Queue A FIFO (First-In, First-Out) structure. Elements are added at the rear and removed from the front.
- enqueue() adds to the rear
- dequeue() removes from the front
- Used in scheduling, buffering, print queues P1 P2 P3 P FRONT (dequeue) REAR (enqueue) Example: enqueue(P1..P4); dequeue() removes P1 first
05 Tree (Binary Tree) A hierarchical structure of nodes where each node has at most two children, forming parent-child relationships.
- Root is the topmost node
- Each node has left/right children
- Enables fast search: O(log n) if balanced 50 30 70 20 40 Binary Search Tree: left child < parent < right child
07 Hash Table Stores key-value pairs. A hash function maps each key to an index (bucket) for near-instant lookup.
- Average-case O(1) insert, lookup, delete
- Collisions handled via chaining or open addressing
- Backbone of dictionaries / maps / sets 0 empty 1 "cat" -> 3 2 empty 3 "dog" -> 7 4 "ant" -> 1 hash("dog") = 3 -> bucket[3] = "dog" -> 7
Quick Comparison Structure Access Insert/Delete Best For Array O(1) O(n) Fast indexed lookup Linked List O(n) O(1)* Frequent insert/delete Stack O(1) top O(1) Undo, recursion, parsing Queue O(1) front O(1) Scheduling, buffering Tree (BST) O(log n) O(log n) Sorted, hierarchical data Graph O(V+E) traverse varies Networks, relationships Hash Table O(1) avg O(1) avg Fast key-based lookup * O(1) once the node position is known