Data Structures and Algorithms - CS25C04

[ 2nd Semester - EEE - Electrical and Electronics Engineering Department ]

Under Class: | 2nd Semester [EEE Dept Anna University 2025 Regulation] |

Data Structures and Algorithms - CS25C04 - Study Materials, Notes, Important Questions, Anna University Semester Question Paper PDF Download

Engineering - Data Structures and Algorithms - CS25C04 Subject (under Anna University 2nd Semester - EEE - Electrical and Electronics Engineering Engineering Regulation 2025) - Study Materials, Written and lecture Notes, Important Questions, Semester Question Paper PDF Download



Basic Python [Only Basics not as per syllabus]

UNIT I: Problem Solving Techniques:


Chapter 1: Function:


• Function: Introduction
• Function with respect to Programming language
• Interface Vs Implementation
• Pure functions
• Points to remember - Problem Solving Techniques : Function
• Function: Book Back Questions and Answers

Chapter 2: Data Abstraction:


• Data Abstraction - Introduction
• Abstract Data Types
• constructors and selectors
• Representation of Abstract datatype using Rational numbers
• Lists, Tuples
• Data Abstraction in Structure
• Data Abstraction : Points to remember
• Data Abstraction: Book Back Questions and Answers

Chapter 3: Scoping:


• Scoping
• Variable Scope
• LEGB rule
• Types of Variable Scope
• Module
• Scoping: Points to remember
• Scoping: Book Back Questions and Answers

Chapter 4: Algorithmic Strategies:


• Introduction to Algorithmic strategies
• Complexity of an Algorithm
• Efficiency of an algorithm
• Algorithm for Searching Techniques
• Sorting Techniques
• Dynamic programming
• Algorithmic Strategies: Points to remember
• Algorithmic Strategies: Book Back Questions and Answers

UNIT II: Core Python:


Chapter 5: Python Variables and Operators:


• Python Introduction
• Key features of Python
• Programming in Python
• Input and Output Functions
• Comments in Python
• Indentation
• Tokens
• Python Data types
• Python Variables and Operators: Points to remember
• Python Variables and Operators: Book Back Questions and Answers

Chapter 6: Control Structures:


• Introduction of Python Control Structures
• Python Control Structures
• Python Control Structures: Points to remember
• Python Control Structures: Book Back Questions and Answers

Chapter 7: Python Functions:


• Python Functions
• Types of Python Functions
• Defining Functions in Python
• Calling a Function
• Passing Parameters in Functions
• Function Arguments
• Anonymous Functions
• The return Statement
• Scope of Variables
• Functions using libraries
• Python recursive functions
• Python Functions: Points to remember
• Python Functions: Book Back Questions and Answers

Chapter 8: Strings and String Manipulation:


• Strings and String Manipulation - Introduction
• Creating Strings
• Accessing characters in a String
• Modifying and Deleting Strings
• String Operators
• String Formatting Operators
• Formatting characters
• The format( ) function
• Built-in String functions
• Membership Operators
• Programs using Strings
• Python Strings and String Manipulation: Points to remember
• Python Strings and String Manipulation: Book Back Questions and Answers

UNIT III: Python Modularity and OOPS:


Chapter 9: Lists, Tuples, Sets And Dictionary:


• Introduction to List
• Python Programs using List
• Introduction to Tuples
• Programs using Tuples
• Dictionaries
• Python Lists, Tuples, Sets And Dictionary: Points to remember
• Python Lists, Tuples, Sets And Dictionary : Book Back Questions and Answers

Chapter 10: Python Classes and Objects:


• Python Classes and Objects
• Defining classes
• Creating Objects
• Accessing Class Members
• Class Methods
• Constructor and Destructor in Python
• Public and Private Data Members
• Sample Python Programs to illustrate classes and objects
• Points to remember
• Python Classes and Objects: Book Back Questions and Answers




 

CS25C04:

Data Structures and Algorithms

 

Course Objective:

• To provide the fundamentals of data organization and algorithms.

 

Data Types: Abstract Data Types (ADTs), ADTs and classes, introduction to OOP, Classes in Python, Inheritance, Namespaces, Shallow and Deep Copying.

Practical: Implement simple ADTs as Python classes

 

Linear Structures: List ADT, array-based implementations, linked list implementations, singly linked lists, circularly linked lists, doubly linked lists, Stack ADT, Queue ADT, double ended queues, applications

Practical: List ADT using Python arrays, Linked list, Stack and Queue ADTs and Applications.


Tree Structures: Tree ADT, Binary Tree ADT, tree traversals, binary search trees, AVL trees, heaps, multi-way search trees

Practical: Tree representation and traversal algorithms, Binary Search Trees, Heaps.

 

Graph Structures: Graph ADT, representations of graph, graph traversals, DAG, topological ordering, greedy algorithms, dynamic programming, shortest paths, minimum spanning trees, introduction to complexity classes and intractability

Practical: Graph representation and Traversal algorithms, Single source shortest path algorithm, Minimum spanning tree algorithms.

 

Algorithm: Analysis of algorithms, Asymptotic notations, Divide & Conquer, Recursion, Recursive Algorithms

Practical: Implement recursive algorithms in Python.

 

Sorting and Searching

Bubble sort, Selection sort, Insertion sort, Merge sort, Quick sort, Analysis of sorting algorithms, Linear & Binary search, Hashing, Hash functions, Collision handling, Load factors, Rehashing, and Efficiency

Practical: Sorting and searching algorithms, Hash tables.


 

Weightage: Continuous Assessment: 40%, End Semester Examinations: 60% 

Assessment Methodology: Quiz (10%), Assignments (30%) Review of GATE questions (20%) and Internal Examinations (50%)

 

References:

1. Goodrich, M. T., Tamassia, R., & Goldwasser, M. H. (2021). Data structures & algorithms in Python (Indian adaptation). John Wiley & Sons Inc.

2. Lee, K. D., & Hubbard, S. (2015). Data structures and algorithms with Python. Springer.

3. Necaise, R. D. (2011). Data structures and algorithms using Python. John Wiley & Sons.

4. Cormen, T. H., Leiserson, C. E., Rivest, R. L., & Stein, C. (2002). Introduction to algorithms. McGraw-Hill.

5. Weiss, M. A. (2014). Data structures and algorithm analysis in C++. Pearson Education.


E-Resource:

 https://nptel.ac.in/courses/106106133