DSC Course File
DSC Course File
Credits : 3
II B Tech – I Semester
(2022-23)
Introduction to Data Structures, abstract data types, Linear list – singly linked list
implementation, insertion, deletion and searching operations on linear list, Stacks-
Unit – I
Operations, array and linked representations of stacks, stack applications, Queues-
operations, array and linked representations.
Text Books
Fundamentals of Data Structures in C, 2nd Edition, E. Horowitz, S. Sahni and Susan
1 AndersonFreed, UniversitiesPress
DataStructures using C–A.S.Tanenbaum,Y.Langsam, and M.J.Augenstein, PHI/Pearson
2 Education.
Suggested / Reference Books
Data Structures: A Pseudocode Approach with C, 2nd Edition, R. F. Gilberg and
1
B.A.Forouzan, Cengage Learning.
Time Table
Class 1 2 3 4 5 6
Hour
9:20 – 10.20 – 11:20– 1:00 – 3:00 –
Time 2:00 – 3:00
10:20 11:20 12:20 2:00 4:00
MON
TUE
DSC Lab CSD-B
LUNCH BREAK
WED 12:20 – 1:00
CSD-A CSD-B
THU
DSC Lab CSD-A
FRI
CSD-B CSD-A
SAT
CSD-A CSD-B
Programme Educational Objectives (PEO’s)
2. Introduces a variety of data structures such as hash tables, search trees, tries, heaps, graphs
1. Ability to select the data structures that efficiently model the information in a problem.
combinations.
3. Implement and know the application of algorithms for sorting and pattern matching.
4. Design programs using a variety of data structures, including hash tables, binary and
general tree structures, search trees, tries, heaps, graphs, and AVL-trees.
Course Objectives
Course Outcomes
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 3 2 3 2 3 3 2 2 3 3
CO2 3 2 3 2 3 3 2 2 3
CO3 3 2 3 3 2 3 3 2 3
CO4 3 2 3 2 3 3 2 3 2
CO5 2 3 3 2 3 2 3 2 2 2
Course Schedule
Distribution of Hours in Unit – Wise
The number of topics in each unit is not the same – because of the variation, all the units have
unequal distribution of hours
Lecture Plan
Unit-III
Binary Search Trees, 22.11.2022 22.11.2022 PPT & Digital Board
1
Definition
2 Implementation 24.11.2022 24.11.2022 PPT & Digital Board
Operations- Searching, 25.11.2022 25.11.2022 PPT & Digital Board
3
Insertion and Deletion
4 AVL Trees 29.11.2022 29.11.2022 PPT & Digital Board
Definition, Heigh to fan AVL 01.12.2022 01.12.2022 PPT & Digital Board
5
Tree
Operations–Insertion, Deletion 02.12.2022 02.12.2022 PPT & Digital Board,
6
and Searching Tutorial -3
7 Red –Black 13.12.2022 13.12.2022 PPT & Digital Board
Unit-IV
1 Graphs 17.12.2022 18.12.2022 PPT & Digital Board
Graph Implementation 19.12.2022 20.12.2022 PPT & Digital Board
2
Methods.
3 Graph Traversal Methods 23.12.2022 24.12.2022 PPT & Digital Board
7 Model for external sorting 05.01.2023 06.01.2023 PPT & Digital Board
Merge Sort. 16.01.2023 17.01.2023 PPT & Digital Board,
8
Tutorial-4
Unit-V
Unit – I
Date: 04.11.2022
Remarks:
Unit – II
Date: 18.11.2022
Remarks:
Unit – III
Date: 15.12.2022
Remarks:
Unit – IV
Date: 17.01.2023
Remarks:
Unit – V
Date: 03.02.2023
Remarks:
Unit Wise Questions (With different Levels of thinking – Blooms Taxonomy and Course
Outcomes)
SHORT ANSWERS(UNIT-1,2,3)
1. Discuss Stack ADT Push operation with example? [L2, CO1]
2. Explain Queue ADT enque operation with example? [L1, CO1]
3. Differentiate between sorted array and chain? [L2, CO2]
4. Demonstrate Rehashing Technique with example? [L3, CO2]
5. Define the following. [L1, CO3]
i). Binary Search Tree ii). AVL Tree
6. Differentiate Linear and Nonlinear data structure? [L4, CO1]
7. Construct Queue ADT Dequeue operation with example? [L3, CO1]
8. Differentiate collision and overflow? [L4 CO2]
9. Summarize Various Dictionary operations? [L5, C02]
10. Define the following. [L1, CO3]
a) Full Binary Tree b) Perfect Binary Tree
SHORT ANSWERS(UNIT-3,4,5)
PART A
PART-B
11. a) Define Red black tree with example [L3, CO3]
b) Define Spay Tree with example [L3, CO3]
12. a) Differentiate between splay trees and Red Black Trees? [L2, C03]
b) Explain the deletion operation of Red Black Trees? [L1, CO3]
13. a) Implement program on selection sort? [L3, CO4]
b) Implement program on insertion sort? [L3, CO4]
14. a) Explain Adjacency List with example? [L1, CO4]
b) Explain the incidence matrix with example? [L1, CO4]
15. a) Explain the KMP algorithm? [L1, CO5]
b) Explain compressed trie? [L1, CO5]
16. a) Explain suffix trie? [L1, CO5]
b) Differentiate between Brute Force and Kmp? [L1, CO5]
17. a) Explain the properties of Red Black Trees? [L1, CO3]
b) Explain insertion operation of Red Black Trees? [L1, CO3]
18. a) Explain Rotations of Splay Trees? [L1, CO3]
b) Explain the insertion and deletion operations of Splay Trees? [L1, CO3]
19. a) Explain BFS concept with example? [L1, CO4]
b) Explain DFS Concept with example? [L1, CO4]
20. a) Implement program on Bubble sort? [L3, CO4]
b) Explain the Heap Sort with example? [L1, CO4]
21. a) Explain the Pattern Matching? [L1, CO5]
b) Explain applications of pattern matching? [L1, CO5]
22. a) Explain Brute Force Pattern matching with example? [L1, CO5]
b) Explain Boyer Moore pattern with example? [L1, CO5]
Case Studies (With Higher Levels of thinking – Blooms Taxonomy) for the academic year
2022-23 II B Tech I semester
# 1 Algorithms
Hashing, BST, Graph Traversals (DFS, BFS), Sorting Techniques, KMP Pattern Matching
Algorithm
2.a) Illustrate insert and delete operations on Skip List using examples?
b) Explain the advantages of hashing and discuss various hash functions.
DFS 29.12.2022
KMP 28.01.2023
Topics beyond Syllabus
1 Quick sort
2 Heap Sort
Batch: 2022
Course Coordinator
Blooms Taxonomy Direct
CSP Rubric
S.No. Criteria LEVEL ( Level: 3-Excellent Level: 2-Good Level: 1-Poor)
The student speaks in phase with the given topic confidently using
Communicati
3
Audio-Visual aids. Vocabulary is good
Oral
1 2
aids. Vocabulary is not good
The student speaks vaguely not in phase with the given topic. No
1
synchronization among the talk and Visual Aids
Proper structuring of the document with relevant subtitles, readability
Writing Skills
3 The student identifies the societal and ethical issues but fails to
2
provide any solutions discussing with peers
1 The student does not attempt to identify the societal and ethical issues
3 The student uses appropriate methods, techniques to model and solve
Knowledge
2 The student tries to model the problem but fails to solve the problem
4
1 The student fails to model the problem and also fails to solve the
problem
3 Listens carefully to the class and tries to answer questions confidently
Participatio
Student
questions
The student neither listens to the class nor attempts to answer the
1
questions
The program structure is well organized with the appropriate use of
Technical and analytical
led
act
ica
ow
Pr
ge
7 3
l
covered in theory
Independently able to write programs but not able to strengthen the
2
concepts learned in theory
Not able to write programs and not able to strengthen the concepts
1
learned in theory
The student uses appropriate methods, techniques to model and solve
Understanding
of Engineering
core 3 the problem accurately in the context of multidisciplinary projects
8 The student tries to model the problem but fails to solve the problem
2
in the context of multidisciplinary projects
The student fails to model the problem and also fails to solve the
1
problem in the context of multidisciplinary projects
Program- Year -
AY:2022-23 B.Tech. II-I- CSD-A
SEM-Branch
Data Structures
Subject Name: Faculty Name: Dr.M.Kishore Kumar
using C
1 217R1A6701 30 30 30
2 217R1A6702 29 30 30
3 217R1A6703 27 27 27
4 217R1A6704 24 28 26
5 217R1A6705 30 28 29
6 217R1A6706 29 29 29
7 217R1A6707 29 30 30
8 217R1A6708 29 28 29
9 217R1A6709 27 28 28
10 217R1A6710 29 28 29
11 217R1A6711 10 23 17
12 217R1A6712 30 29 30
13 217R1A6713 29 28 29
14 217R1A6714 20 30 25
15 217R1A6715 28 29 29
16 217R1A6716 30 30 30
17 217R1A6717 27 29 28
18 217R1A6718 18 23 21
19 217R1A6719 30 29 30
20 217R1A6720 5 28 17
21 217R1A6721 0 0 0
22 217R1A6722 30 30 30
23 217R1A6723 16 20 18
24 217R1A6724 0 0 0
25 217R1A6725 30 30 30
26 217R1A6726 30 29 30
27 217R1A6727 30 30 30
28 217R1A6728 24 27 26
29 217R1A6729 30 30 30
30 217R1A6730 27 15 21
31 217R1A6731 30 30 30
32 217R1A6732 30 29 30
33 217R1A6733 30 28 29
34 217R1A6734 30 30 30
35 217R1A6735 30 29 30
36 217R1A6736 29 28 29
37 217R1A6737 30 30 30
38 217R1A6739 25 28 27
39 217R1A6740 22 18 20
40 217R1A6741 20 28 24
41 217R1A6742 24 28 26
42 217R1A6743 30 30 30
43 217R1A6744 24 27 26
44 217R1A6745 0 0 0
45 217R1A6746 29 30 30
46 217R1A6747 29 28 29
47 217R1A6748 30 30 30
48 217R1A6749 30 29 30
49 217R1A6750 30 30 30
50 217R1A6751 19 16 18
51 217R1A6752 27 27 27
52 217R1A6753 5 23 14
53 217R1A6754 29 29 29
54 217R1A6755 27 19 23
55 217R1A6756 27 22 25
56 217R1A6757 27 27 27
57 217R1A6758 26 26 26
58 217R1A6759 30 30 30
59 217R1A6760 30 30 30
60 217R1A6761 29 28 29
61 217R1A6762 20 16 18
62 217R1A6763 29 28 29
63 217R1A6764 24 22 23
64 227R5A6701 27 25 26
65 227R5A6702 29 25 27
66 227R5A6703 27 28 28
67 227R5A6704 27 26 27
68 227R5A6705 27 28 28
69 227R5A6706 30 30 30
70 227R5A6707 24 26 25
71 227R5A6708 30 27 29
Average Marks 25.77
Number of students attempted 71 71 71
Number of
Students % Target Attainment Attainment Level
reached target
Program- Year -
AY:2022-23 B.Tech. II-I- CSD-B
SEM-Branch
Data Structures
Subject Name: Faculty Name: Dr.M.Kishore Kumar
using C
MID 1 MID-2 Avg of Mids End Exam Total
S.no Roll Number
(30M) (30M) (30M) (70M) (100M)
1 217R1A6765 26 24 20
2 217R1A6766 15 25 23
3 217R1A6767 20 25 27
4 217R1A6768 26 27 26
5 217R1A6769 25 27 28
6 217R1A6770 27 28 28
7 217R1A6771 27 28 26
8 217R1A6772 26 26 26
9 217R1A6773 25 26 29
10 217R1A6774 29 29 28
11 217R1A6775 28 27 30
12 217R1A6776 30 29 24
13 217R1A6777 21 26 30
14 217R1A6779 30 29 21
15 217R1A6780 26 15 25
16 217R1A6781 25 24 26
17 217R1A6782 25 27 28
18 217R1A6783 27 28 26
19 217R1A6784 24 27 29
20 217R1A6785 29 28 29
21 217R1A6786 29 28 27
22 217R1A6787 26 28 29
23 217R1A6788 29 28 27
24 217R1A6789 27 27 30
25 217R1A6790 30 30 26
26 217R1A6791 26 26 29
27 217R1A6792 30 28 25
28 217R1A6793 23 27 29
29 217R1A6794 29 29 26
30 217R1A6795 24 27 28
31 217R1A6796 28 27 27
32 217R1A6797 28 25 25
33 217R1A6798 25 25 30
34 217R1A6799 30 30 26
35 217R1A67A0 25 26 30
36 217R1A67A1 29 30 25
37 217R1A67A2 25 25 26
38 217R1A67A3 24 27 26
39 217R1A67A4 26 26 26
40 217R1A67A5 26 26 26
41 217R1A67A6 26 26 26
42 217R1A67A7 27 24 28
43 217R1A67A8 28 28 28
44 217R1A67A9 28 28 30
45 217R1A67B0 29 30 28
46 217R1A67B1 28 27 24
47 217R1A67B2 23 25 29
48 217R1A67B3 29 28 28
49 217R1A67B4 28 27 27
50 217R1A67B5 28 26 25
51 217R1A67B6 23 27 23
52 217R1A67B7 20 26 28
53 217R1A67B8 28 27 26
54 217R1A67B9 26 25 27
55 217R1A67C0 27 26 23
56 217R1A67C1 22 24 27
57 217R1A67C2 25 28 25
58 217R1A67C3 25 25 25
59 217R1A67C4 25 25 29
60 217R1A67C5 29 28 26
61 217R1A67C6 26 26 30
62 217R1A67C7 30 30 29
63 217R1A67C8 29 28 26
64 227R5A6709 24 27 26
65 227R5A6710 25 26 26
66 227R5A6711 25 25 25
67 227R5A6712 26 25 26
68 227R5A6713 26 26 26
69 227R5A6714 25 26 26
70 227R5A6715 29 26 28
Average Marks 26.74
Number of students attempted 70 70 70
Course Attainment Calculation
Number of
Students % Target Attainment Attainment Level
reached target
****
5 X 01 = 05 Marks
UNIT-V
4 Explain Boyer Moore Pattern Matching Algorithm with suitable example 1M CO3 L5
5 Write a short note on Trie tree 1M CO3 L&
****
PART-A 5 X 02 = 10 Marks
Q. Questions Marks
BL CO
No.
1a Define AVL tree. Give Example 2M L1 CO3
1b Differentiate between Internal and External sorting and list sorting 2M L4
CO4
ttechniques.
1c Explain the two types of heap? 2M L5 CO4
1d Write a short note on trie tree. 2M L1 CO5
1e What is the principle idea behind the KMP algorithm? 2M L1 CO5
PART- B
03 + 06 + 06 = 15 Marks
Q. Questions Marks
BL CO
No.
2 Explain the properties of Red Black tree? Insert 10, 18, 7, 15, 16, 3M
L5
30, 25, 40, 60 in the Red Black tree
OR CO3
3 What is AVL tree and construct an AVL tree by inserting numbers 3M
L3
ffrom 1 to 8.
4a What is DFS & BFS technique? 3M L1
4b Implement DFS algorithm 3M L5
OR CO4
5a Explain the concept of Merge Sort? 3M L2
5b Perform Merge Sort on elements (10,5,7,6,1,4,8,3,2,9) 3M L5
6a Write the Knuth Morris Pratt Pattern matching algorithm 3M L1
6b Apply KMP to search the Pattern “ABCDABCY” in the text 3M
L3
“ABCXABCDABXABCDABCDABCY”
CO5
OR
7a Write a short note on Standard trie. 3M L3
7b Write a short note on Compressed trie and suffix trie 3M L3
CO-PO & PSO Mapping
CO CO3 CO4 CO5
PO
PSO