DS Handout
DS Handout
HANDOUT
II YEAR – SEMESTER I
DEPARTMENT OF DATA SCIENCE
ACADEMIC YEAR 2022-23
DEPARTMENT OF AI & DS
HANDOUT-INDEX
S.No Contents
1 Vision, Mission, PEOs, POs, PSOs & COs
2 Institution Academic Calendar
3 Department Academic Calendar
4 Subject wise
i) Syllabus Copy
ii) Lesson Plan
iii) Question Bank
iv) End Examination Questions (Previous3
Academic Year)
v) Mid-1 & Mid-2 Questions (Previous3
Academic Year)
SRI INDUCOLLEGEOFENGINEERING&TECHNOLOGY
B.TECH–CSE (DS)
INSTITUTION VISION
To be a premier Institution in Engineering Technology and Management with competency, values
and social consciousness.
INSTITUTION MISSION
IM1 Provide high quality academic programs, training activities and research facilities.
IM3 Contribute other Economical and technological development of the region, state and nation.
DEPARTMENT VISION
To be are cognized knowledge center in the field of Information Technology with self-
motivated, employable engineers to society.
DEPARTMENT MISSION
The Department has following Missions:
DM1 To offer high quality student centric education in Information Technology.
DM4 To impart training on emerging technologies namely cloud computing and IOT with
involvementof stakeholders.
PO Description
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 team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
Communication: Communicate effectively on complex engineering activities with the engineering
PO10
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.
Project management and finance: Demonstrate knowledge and understanding of the engineering and
PO11
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 Chang
Program Specific Outcomes
Foundation of mathematical concepts: Touse mathematical methodologies to crack problem using suitable
PSO1
mathematical analysis, data structure and suitable algorithm
PSO2 Foundation of Computer System: The ability to interpret the fundamental concepts and methodology of computer
systems. Students can understand the functionality of hardware and software aspects of computer systems.
Foundations of Software development: The ability to grasp the software development lifecycle and methodologies
PSO3
of software systems. Possess competent skills and knowledge of software design process. Familiarity and practical
proficiency with a broad area of programming concepts and provide new ideas and innovations towards research
COURSE OUTCOME
UNIT - I
Introduction to Data Structures, abstract data types, Linear list – singly linked list implementation,
insertion, deletion and searching operations on linear list, Stacks-Operations, array and linked
representations of stacks, stack applications, Queues-operations, array and linked representations.
UNIT - II
Dictionaries: linear list representation, skip list representation, operations - insertion, deletion and
searching. Hash Table Representation: hash functions, collision resolution-separate chaining, open
addressing-linear probing, quadratic probing, double hashing, rehashing, extendible hashing.
UNIT - III
Search Trees: Binary Search Trees, Definition, Implementation, Operations- Searching, Insertion and
Deletion, AVL Trees, Definition, Height of an AVL Tree, Operations – Insertion, Deletion and
Searching, Red –Black, Splay Trees.
UNIT - IV
Graphs: Graph Implementation Methods. Graph Traversal Methods. Sorting: Heap Sort, External
Sorting- Model for external sorting, Merge Sort.
UNIT - V
Pattern Matching and Tries: Pattern matching algorithms-Brute force, the Boyer –Moore algorithm,
the Knuth-Morris-Pratt algorithm, Standard Tries, Compressed Tries, Suffix tries.
TEXTBOOKS:
1. Fundamentals of Data Structures in C, 2nd Edition, E. Horowitz, S. Sahni and Susan Anderson
Freed, Universities Press.
2. Data Structures using C – A. S. Tanenbaum, Y. Langsam, and M.J. Augenstein, PHI/Pearson
Education.
REFERENCE BOOKS:
1. Data Structures: A Pseudocode Approach with C, 2nd Edition, R. F. Gilberg and B.A.
Forouzan, Cengage Learning. R20 B.TECH.
Course Outcomes:
Ability to select the data structures that efficiently model the information in a
problem. (Understand)
Ability to assess efficiency trade-offs among different data structure implementations
or combinations. (Create)
Implement and know the application of algorithms for sorting and searching. (Create)
Design programs using a variety of data structures, including hash tables, binary and
general tree structures, search trees, tries, heaps, graphs, and AVL-trees (Create)
Ability to select the data structures that efficiently model the information in a problem
(Analyze)
Illustrate the concept of Text pattern matching algorithm (Analyze)
1.9 Queues using Linked list R1 151 158 Black board 02 21/10/22 CO1,L1
UNIT –II
Dictionaries
II 12
2.1 Dictionaries: linear list representation T1 395 395 Black board 01 26/10/22 CO2, L1
3.2 Implementation, Operations- Searching, T1 227 228 Black board 02 23/11/22 CO3, L4
Insertion
3.3 T1 230 231 Black board 01 25/11/22 CO3,L3
Deletion of elements
R1 Power point 01 26/11/22 CO3, L4
3.4 AVL Trees, Definition, Height of an AVL 341 342
Tree Presentation
Operations – Insertion R1 Black board 01 02/12/22 CO4, L4
3.5 348 348
Deletion and Searching, R1 Black board 02 03/12/22 CO4, L3
3.6 349 351
3.7 Red –Black T1 518 525 Black board 01 09/12/22 CO4, L3
3.8 Splay Trees T1 542 542 Black board 01 13/12/22 CO4, L3
TEXT BOOKS:
T1. Fundamentals of Data Structures in C, 2nd Edition, E. Horowitz, S. Sahni and Susan Anderson Freed, Universities
Press.
T2. Data Structures using C – A. S. Tanenbaum, Y. Langsam, and M.J. Augenstein, PHI/Pearson Education.
REFERENCE BOOK:
R1. Data Structures: A Pseudocode Approach with C, 2nd Edition, R. F. Gilberg and B.A. Forouzan, Cengage.
WEB LINKS
W1 . https://nptel.ac.in/noc/courses/noc18/SEM1/noc18-cs25/
W2 . https://nptel.ac.in/courses/106/105/106105085/
W3 . https://nptel.ac.in/courses/106/105/106105085/
W4 . https://www.coursera.org/specializations/data-structures-algorithms
W5 . https://www.edx.org/course/data-structures-fundamentals
W6 https://www.geeksforgeeks.org/boyer-moore-algorithm-for-pattern-searching/
W7 https://www.geeksforgeeks.org/kmp-algorithm-for-pattern-searching/
W8 https://www.geeksforgeeks.org/types-of-tries/
SRI INDU COLLEGE OF ENGG &
Prepared on: 29/09/22
TECH LESSON PLAN
Rev1:
(Regulation :R20)
Department of Artificial Intelligence and Data
Science
Sub. Code & Title R20CSE2101 Data Structures
Academic Year: 2022-23 Year/Sem./Section II/I/-
Faculty Name & Dr S R MUGUNTHAN, Professor
Designation
ASSIGNMENT I & II
7.
Explain Breadth first search T2 28.12.22 28.12.22
traversal with example? CO3
Course Date
Assignment Questions Books Date Of Submission
S.No. Outcome Of
To be Referred
Announcement
9. T2 28.12.22 28.12.22
Write and explain
Boyer Moore pattern CO6
matching algorithm?
10. T2 28.12.22 28.12.22
Calculate the failure function
CO6
(or) prefix table in a search string
“ABACAABADCABACABAA
BB”.
UNIT I
PART A
1 MARK QUESTIONS BT COURSE
LEVEL OUTCOME
1 Define a data structure? Mar 2018 1 CO1
2. Define Linear data structure? Dec 2016 1 CO1
UNIT II
PART A
1 MARK QUESTIONS BT COURSE
LEVEL OUTCOME
1 Describe Dictionary? Mar 2020 1 CO1,CO2
2. What is Hash Function? DEC 2016 1 CO2
3. Write about Linear Probing and Quadratic Probing? Dec 2016 3 CO2
4. Define collision? 3 CO1,CO2
5. Describe skip list? Nov 2019 2 CO1,CO2
6. List the collision resolution techniques? OCT 2020 1 CO1,CO2
UNIT III
PART A
1 MARK QUESTIONS BT COURSE
LEVEL OUTCOME
1 Define a Binary Search tree? How do we represent it? July 2021 1 CO1.CO3
2. List the operations in Binary Search Tree? Mar 2021 1 CO3
3. What is an AVL Tree? Give one example? Nov 2019 1 CO3
4. Write short notes on Balance factor in AVL tree? 3 CO3
5. Differentiate AVL tree and Binary search tree? DEC 2015 4 CO1,CO3
6. What are the applications of AVL tree? 1 CO3
7. List the rotations in AVL tree? 1 CO3
8 Write the disadvantages of Binary search tree? 3 CO3
9 List the rules of Red-Black Tree? Dec 2016 1 CO1,CO3
10 What is Splay tree? OCT 2020
1 CO1,CO3
PART B
10 MARKS QUESTIONS
1 Write a procedure to perform insertion deletion and searching in Binary search tree? 6 CO2,CO3
Dec 2017, Dec 2016
2 Explain in detail deletion of an element in BST in different cases? 2 CO1,CO4
3 Write a program to perform following operations in Binary search tree? 6 CO1,CO4
a) Insert an element into a binary search tree
b) Delete an element from a binary search tree OCT 2020
4 Define Binary search tree? Construct binary search tree step by step with diagrams 6 CO1,CO4
using list of numbers {4,5,1,2,9,7,3,6,10,12,11}. July 2021
5 Describe AVL Tree? Illustrate different rotations in AVL tree for balancing with 4 CO4
appropriate example? Nov 2019
6 Write list of operations perform on AVL tree with example? Mar 2021 3 CO4
7 a) Explain a balance factor in AVL tree with example? 2 CO4
b)Explain representation of AVL tree with example?
8 a) Develop a program to insert the elements into AVL tree? 6 CO4
b) Construction of AVL tree step by step with diagrams for the list {25, 30, 35, 40,
50, 55, 60, 65, 70, 75}. DEC 2011 DEC 2018
9 Illustrate Red-Black tree with example? 4 CO1,CO4
10 Illustrate Splay-tree with example? Oct 2021 4 CO1,CO4
SRI INDU COLLEGE OF ENGG &
Prepared on: 23/09/22
TECH LESSON PLAN
Rev1:
(Regulation :R20)
Department of Artificial Intelligence and Data
Science
Sub. Code & Title R20CSE2101 Data Structures
Academic Year: 2022-23 Year/Sem./Section II/I/-
Faculty Name & Dr S R MUGUNTHAN, Professor
Designation
UNIT IV
PART A
1 MARK QUESTIONS BT COURSE
LEVEL OUTCOME
1 Define a graph? DEC 2015 1 CO5,CO4
2. Write short notes on directed graph? Mar 2021 3 CO4
PART B
10 MARKS QUESTIONS
1 Write about various graph representation techniques? Dec 2017, July2021 3 CO4
2 Classify the types of graphs? Explain basic terminologies in graph? 2 CO4
3 Explain Breadth first search traversal with example? Mar 2021 2 CO5,CO4
4 Explain Depth first search traversal with example? Mar 2021 2 CO5,CO4
5 Write a program to implement breadth first search? 6 CO5,CO3
6 Write a program to implement depth first search? 6 CO5,CO4
7 Explain about heap sort with example? DEC 2015, July 2021, Mar 2021, Oct 21 2 CO3
8 Explain external sorting model for external sorting? Oct 2020 2 CO3
9 Discuss about merge sort technique with suitable example? Nov 2019 2 CO3
10 a) Distinguish between heap sort and merge sort? 4 CO3
b) What are applications of heap sort and merge sort?
SRI INDU COLLEGE OF ENGG &
Prepared on: 23/09/22
TECH LESSON PLAN
Rev1:
(Regulation :R20)
Department of Artificial Intelligence and Data
Science
Sub. Code & Title R20CSE2101 Data Structures
Academic Year: 2022-23 Year/Sem./Section II/I/-
Faculty Name & Dr S R MUGUNTHAN, Professor
Designation
UNIT V
PART A
1 MARK QUESTIONS BT COURSE
LEVEL OUTCOME
1 Define Trie? Mar 2019 1 CO1,CO6
2. What are the different types of Pattern Matching Algorithms? CO6
1
3. Define String and Alphabet? DEC 2015 1 CO6
4. Describe Prefix and Suffix with example.? Oct 2020 2 CO6
5. What is Substring? Write down the substrings of the String “DATASTRUCTURES”. DEC 1 CO6
2017
6. What is the average-case and worst-case running time of KMP algorithm? 1 CO6
7. What is the running time of Brute-force algorithm? DEC 2016 1 CO6
8 What are the applications of pattern matching? 1 CO1,CO6
9 Write about Compressed Trie? 3 CO6
10 Write about Suffix Trie? OCT 2020 3 CO6
PART B
10 MARKS
QUESTIONS
1 Discuss about various types of tries. 2 CO1
2 Write and explain Boyer Moore pattern matching algorithm? Nov 2019 6 CO6
3 6 CO1,CO6
Write and explain Knuth-Morris-pratt pattern matching algorithm? OCT 2020 Mar 2021
Nov 2019
4 What are the advantages of trie? Compare trie with Hash table? 4 CO6
5 Explain about the compressed triewith an example. Mar 2020 2 CO6
6 Calculate the failure function (or) prefix table in a search string 6 CO6
“ABACAABADCABACABAABB”. DEC 2016
7 Differentiate standard tries and compressed tries? 4 CO6
8 Explain the Brute-force algorithm with an example OCT 2020 2 CO1,CO6
9 Explain about the Suffix tries with an example. Nov 2018 2 CO6
10 Draw the Standard Trie and Compressed Trie for the following String 6 CO6
{area, array, aim, acid, act, rest, rate, ratio}Dec 2018
PREVIOUS YEAR QUESTION PAPER