CSE2002 Data - Structures - and - Algorithm - BL2023241000790 - CCM - DR Dheresh Soni
CSE2002 Data - Structures - and - Algorithm - BL2023241000790 - CCM - DR Dheresh Soni
CSE2002 Data - Structures - and - Algorithm - BL2023241000790 - CCM - DR Dheresh Soni
CCM
CSE2002
Data Structures and Algorithms (LTP-3)
Slot: B11+B12+B13+B14
Class ID: BL2023241000792
FALL SEMESTER 2023-2024
Contents
Sl. No Description Page
1 Program Outcome 4
2 Syllabus 5
4 Course Plan 9
6 Sessions Plan 12
8 Lab Assignments 41
8 Attendance Report 43
Reference: https://www.abet.org/accreditation/accreditation-criteria/criteria-for-accrediting-engineering-
programs-2020-2021/
4
PO1.Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and
an engineering specialization to the solution of complex engineering problems.
PO2.Problem analysis: Identify, formulate, review research literature, and analyze complex engineering
problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and
engineering sciences.
PO3.Design/development of solutions: Design solutions for complex engineering problems and design
system components or processes that meet the specified needs with appropriate consideration for the
public health and safety, and the cultural, societal, and environmental considerations.
PO4.Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide valid conclusions.
PO5.Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering
and IT tools including prediction and modeling to complex engineering activities with an understanding
of the limitations.
PO6.The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal,
health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional
engineering practice.
PO7. Environment and sustainability: Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable
development.
PO8.Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
PO9.Individual and teamwork: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
PO10. Communication: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and
design documentation, make effective presentations, and give and receive clear instructions.
PO11. Project management and finance: Demonstrate knowledge and understanding of the engineering
and management principles and apply these to one’s own work, as a member and leader in a team, to
manage projects and in multidisciplinary environments.
PO12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in
independent and life-long learning in the broadest context of technological change.
5
Reference: https://www.nbaind.org/Files/ug-sar-tier-i-final-ver-1.0.pdf
Syllabus
Course Data Structures and Algorithms CT C
Code LTP 4
CSE2002
Prerequisite: Introduction to Problem Solving and Programming
Objectives:
To understand various types of fundamental data structures (standard and user defined).
To learn about algorithm analysis for the run time complexities and the space requirements.
To acquire knowledge of data structures and algorithms for implementing various real-world
problems.
Expected Outcomes:
Students will be able to
Apply the fundamental knowledge of various data structures and algorithms to analyze, design,
formulate and implement algorithm for any real time problem.
Apply current techniques in data structures and algorithmic principles for modeling and
developing software systems.
Choose an appropriate design paradigm that solves the given problem efficiently along with
appropriate data structures.
Map real-world problems to algorithmic solutions.
CO1 3 2 3 3 2 1 1 2 2 1 2 2 3 3 3 3 3
CO2 3 3 3 3 2 2 1 2 1 1 2 2 3 3 3 2 3
CO3 2 3 3 3 2 1 2 1 2 2 2 2 3 3 2 3 3
CO4 2 3 3 3 3 2 1 1 1 1 1 1 3 3 3 3 3
8
9
9
10
10
11
Overall Assessment:
Mid Term : 30%
11
12
Attendance: 5%
Expected Level
COs Target in % of Attainment in
%
CO1 60 60
CO2 60 60
CO3 60 60
CO4 60 60
Session Plan
Venue AB-529
Course
Outcome CO1
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on computers
Assessment
Pedagogy
Offline
adopted
12
13
Exit Ticket /
Asked few random question about computer systems.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO1
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on algorithms
Assessment
Pedagogy
Offline
adopted
13
14
Exit Ticket /
Asked few random question about complexity of algorithms
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO1
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on algorithms
Assessment
Pedagogy
Offline
adopted
14
15
Exit Ticket /
Asked few random question about asymptotic complexity.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO1
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on data types.
Assessment
Pedagogy
Offline
adopted
15
16
Exit Ticket /
Asked few random question about Classification of Data structure.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO1
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on C programming.
Assessment
Pedagogy
Offline
adopted
16
17
Exit Ticket /
Asked few random question about C programming exercise 1.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO2
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on algorithm.
Assessment
Pedagogy
Offline
adopted
17
18
Exit Ticket /
Asked few random question about types of algorithms.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO2
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on algorithm.
Assessment
Pedagogy
Offline
adopted
18
19
Exit Ticket /
Asked few random question about types of sorting.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Topic Searching(Sequential/Linear)
Venue AB-529
Course
Outcome CO2
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on types of sorting.
Assessment
Pedagogy
Offline
adopted
19
20
Exit Ticket /
Asked few random question about types of sorting and searching.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO2
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on types of sorting/searching.
Assessment
20
21
Pedagogy
Offline
adopted
Exit Ticket / Asked few random question about types of sorting and searching and C
Assessment Programming.
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO2
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on types of sorting/searching.
Assessment
21
22
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about types of sorting.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO2
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on linear searching.
Assessment
22
23
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about types of searching.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
Before Class
Interaction of Faculty and Students
Activity
23
24
Entry Ticket /
Random questions on pointers.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about linked list.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
24
25
Activity
Entry Ticket /
Random questions on pointers.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about linked list and implementation of linked list .
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
25
26
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on pointers.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about linked list and implementation of linked list .
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
26
27
Activity
Entry Ticket /
Random questions on singly linked list.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about singly and doubly linked list.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
27
28
Activity
Entry Ticket /
Random questions on linked list.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about circular linked list.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
28
29
Activity
Entry Ticket /
Random questions on data structures.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about data structures.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
29
30
Activity
Entry Ticket /
Random questions on arrays and pointers.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about data structures.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO3
30
31
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on data structures.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about data structures and it’s implementation .
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
31
32
Activity
Entry Ticket /
Random questions on linear data structures.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about types of data structures.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
Before Class
Interaction of Faculty and Students
Activity
32
33
Entry Ticket /
Random questions on non-linear data structures.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about trees.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
33
34
Activity
Entry Ticket /
Random questions on binary trees.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about binary tree traversal.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
34
35
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on trees.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about binary search trees.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
35
36
Activity
Entry Ticket /
Random questions on binary search trees.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about AVL Trees.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
AB-529
Venue
Course
Outcome CO4
36
37
Activity
Entry Ticket /
Random questions on binary search trees.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about trees and programming.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
37
38
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on search trees.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about search trees.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
38
39
Activity
Entry Ticket /
Random questions on searching.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about hashing.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO4
Before Class
Interaction of Faculty and Students
Activity
39
40
Entry Ticket /
Random questions on searching and trees.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about hashing.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
40
41
Activity
Entry Ticket /
Random questions on non-linear data structures.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about graphs.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
41
42
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on graphs.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about graphs and its implementation.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
42
43
Activity
Entry Ticket /
Random questions on graphs.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about graphs traversals.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
43
44
Activity
Entry Ticket /
Random questions on graph traversals.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about topological sorting.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
44
45
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on graph.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about graph types.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
45
46
Activity
Entry Ticket /
Random questions on minimum spanning tree.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about MST’s and it’s implementation.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
Before Class
Interaction of Faculty and Students
Activity
46
47
Entry Ticket /
Random questions on minimum spanning tree.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about Floyd’s Algorithm.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
47
48
Activity
Entry Ticket /
Random questions on minimum spanning tree.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about Prim’s Algorithm.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
48
49
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket /
Random questions on minimum spanning tree.
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about Kruskal’s Algorithm.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
Venue AB-529
Course
Outcome CO5
Before Class
Interaction of Faculty and Students
Activity
Entry Ticket / Recall of previous topics
49
50
Assessment
Pedagogy
Offline
adopted
Exit Ticket /
Asked few random question about overall data structures.
Assessment
After Class
Discussion/ to ask anything related to topic
Activity
50
51
Module RBT
Q. No. Question Description Marks
No. Level
CO
OR
(b) What is computational complexity? Derive the recurrence relation and 12 1 KL2 CO1
evaluate the computational complexity of evaluating the factorial of a
number using recursion?
2 (a) Describe the individual passes to sort the given inputs: 12 2 KL3 CO2
10, 52, 45, 64, 25, 45, 36, 12, 90, 81, 78 using insertion sort algorithm?
OR
(b) Derive the best case, worst case, and average case time complexities of 12 2 KL4 CO2
searching a number using linear search?
3 (a) Describe the principle and usage of a Queue? Explain the significance of 4+8 3 KL4 CO3
using circular queues over a linear queues with appropriate example?
OR
(b) Write an algorithm/pseudocode to count the number of nodes in a Singly 6+6 3 KL3 CO3
Linked List?
4 (a) Explain the principle and properties of a Binary tree? 6+6 4 KL1 CO4
OR
(b) Explain how Hashing is useful for searching a key value as compared to 6+6 4 KL1 CO4
other searching techniques?
5 (a) State the differences between a graph and a tree? 6+6 5 KL2 CO5
OR
(b) Derive the Minimum Spanning Tree (MST) and the cost of the MST 12 5 KL5 CO5
obtained by applying the Kruskal’s Algorithm on the weighted graph G
given below:
51
52
7 Using binary search, search the number 12 from the list of numbers: 8 2 KL3 CO2
1,10,12,14,18,19,23,24,29,30,31,32 and give the steps to search the
number.
8 Given a linked list: 10,20,50,70,80,90,95, generalize the steps and write a 8 3 KL2 CO3
routine to insert a node at the beginning of the linked list and to display
the list.
9 Create a B-tree of order 5 for the given input sequence: 8 4 KL5 CO4
45, 62, 25, 34, 12, 15, 75, 42, 26, 56, 6, 8, 17
10 Derive the BFS and DFS sequence for the graph G given below: 8 5 KL3 CO5
52
53
Lab Assignments:
Lab Activity 1
Answer the questions and submit it within the time frame. Create a pdf file with
the question, snapshot of the code and output.
Q1. Write a C program to add two matrix.
Q2. Write a C program to print the address of a variable.
Q3. Write a C Program to multiply two matrix.
Q4. Write a C Program to swap two numbers using pointers.
Lab Activity 2
Q1. Write a C program to implement structures ?
Q2. Write a C program to implement dynamic arrays?
Q3. Write a C program to implement Linear Search?
Q4. Write a C program to implement Binary Search?
53
54
Lab Activity 3
Q1. Write a C program to implement Bubble Sort?
Q2. Write a C program to implement Insertion Sort?
Q3. Write a C program to implement Selection Sort?
Q4. Write a C program to implement Merge Sort?
Q5. Write a C program to implement Quick Sort?
Lab Activity 4
Q1: Write a menu driven program in C language to perform the following
operations on a linked list:
a) Create a Linked List.
b) Insert an element at the front of a Linked List.
c) Insert an element at the end of a Linked List.
d) Insert an element at any position of a Linked List.
e) Search an element in the Linked List.
f) Delete an element from the front of the linked list.
g) Delete an element from the end of the linked list.
h) Delete an element from any position of the linked list.
i) Display the linked list.
j) Reverse the linked list.
Lab Activity 5
Q1: Write a menu driven program in C language to perform the following
operations on a doubly linked list:
a) Create a Doubly Linked List.
b) Insert an element at the front of a Doubly Linked List.
c) Insert an element at the end of a Doubly Linked List.
d) Insert an element at any position of a Doubly Linked List.
e) Search an element in the Doubly Linked List.
f) Delete an element from the front of the Doubly linked list.
g) Delete an element from the end of the Doubly linked list.
h) Delete an element from any position of the Doubly linked list.
i) Display the Doubly linked list.
j) Reverse the Doubly linked list.
Lab Activity 6
Q1. Implement Stack using arrays, implement the following functions(Push, Pop,
Peek, Display).
Q2. Implement Stack using linked lists, implement the following functions(Push,
54
55
Lab Activity 7
Q1. Implement a linear Queue using Array?
Q2. Implement a linear Queue using linked list?
Q3. Implement a Circular Queue using Array?
Q4. Implement a Circular Queue using Linked list?
Lab Activity 8
Q1. Write a C Program to represent a Binary Tree?
Q2. Implement the different tree traversals in a binary tree?
Q3. Write a C program to implement Binary Search Tree?
Lab Activity 9
Q1. Write a C program to implement BFS and DFS algorithm?
Q2. Write a C program to implement Dijkstra Shortest Path Algorithms?
Q3. Write a C program to implement Prims and Kruskal Algorithms.?
Q4. Write a C program to implement Hashing?
Attendance Report
ATTENDANCE
Sl. No.
REG. NO. STUDENT NAME PERCENTAGE
1 22BCE10010 PRINCE PRADHAN
2 22BCE10017 KETAK
3 22BCE10112 YASH
4 22BCE10130 ANANY CHATURVEDI
5 22BCE10171 MANVI ARORA
6 22BCE10226 ANSHU KUMAR
7 22BCE10238 SHIVANGI KUMARI
8 22BCE10240 KHYATI TIWARI
9 22BCE10256 MAHAVEERPRASAD TIWARI
10 22BCE10257 BHOOMI CHOWKSEY
11 22BCE10285 AVIRAL JAIN
12 22BCE10311 NAVNEET TIWARI
13 22BCE10324 KARTIK JOSHI
55
56
56
57
57