DSA_final
DSA_final
Note:
1. Students have to register in Hacker Rank, LeetCode, GeeksforGeeks coding platforms.
2. Students are instructed to solve challenges given in the Practical List.
3. Internal evaluation of practical would be based on score of the coding platforms, performance in regular lab sessions and performance in mid-
term practical examination.
Sr.
Aim of the Practical Platform Hours
No.
1. 1.1 Implement linear search using iterative and recursive using an array. VS code 2
Practical Assignment
1.4 Write a program to find non repeating element in an array (Unique element). VS code
2. 2.1 Implement binary search iterative and Recursive using an array. VS code 2
2.2 Implement binary search for a long array of integers to find the required element. However, when the
array size is quite large, the equation for finding the mid index may give the value which is out of range of
integers. Implement the Binary search with a modified equation for finding mid.
“the integer overflow problem” with binary search:
With a vast list of elements, “right” would be a very large value.
Suppose your ‘left’ and ‘right’ are 16 bit unsigned integers. VS code
That means, they can only have a maximum value of 2^16 = 65536.
Example:
Consider: left = 65530 and right = 65531
left + right = 131061 (beyond the integer range). It will give garbage value
It is known as an integer overflow.
3.3 Sort
https://leetcode.com/problems/sort-an-array/
Practical Assignment
4.4 Middle of the Linked List
https://leetcode.com/problems/middle-of-the-linked-list/
Practical Assignment
5.2 Merge Two Sorted Lists
https://leetcode.com/problems/merge-two-sorted-lists/
Practical Assignment
10.3 Kth Smallest Element in a BST
https://leetcode.com/problems/kth-smallest-element-in-a-bst/
11. 11.1 Implement DFS of Graph. GeeksforGeeks 2
https://practice.geeksforgeeks.org/problems/depth-first-traversal-for-a-graph/1
Practical Assignment
11.3 Detect cycle in an undirected graph
https://www.geeksforgeeks.org/problems/detect-cycle-in-an-undirected-graph/1
12. 12.1 Implementing a Hash Table for Student Records Management VS code 2
Background:
You are tasked with implementing a hybrid hash table to manage student records efficiently. Each student
record consists of a unique student ID (key) and the corresponding student score (data). The hash table will
support two methods of collision handling: separate chaining and linear probing. This flexibility ensures
efficient handling of collisions, enabling you to choose the most suitable method based on different scenarios.
11/8/24, 2:24 PM Your work in 3IT-IT259-DSA (2024-25)
Returned
Practical : 12 1
7/10
No due date
Practical 11 : Graph 1
7/10
No due date
Practical 8: Queue 1
8/10
No due date
Practical 7 : Stack 1
8/10
No due date
Practical 5 : DLL 1
9/10
No due date
Practical 1 : Array 1
8/10
Due Jul 7, 11:59 PM
https://classroom.google.com/c/NjkwNDY2NzQ4ODcy/sp/NjM4ODgxNTU0NjY5/g/default 1/1
Students’ Self-Assessment Report on Seminar Delivered
Student ID & Devsingh Bisht Date 8/10/24
Name
23IT012
Topic B+ Tree
Semester, Course 3rd
Code and Course
Title IT259
Data Structure & Algorithms
Photo