Courses » Programming, data structures and algorithms using python

Programming, data structures and algorithms using python


This course is an introduction to programming and problem solving in Python.  It does not assume any prior knowledge of programming.  Using some motivating examples, the course quickly builds up basic concepts such as conditionals, loops, functions, lists, strings and tuples.  It goes on to cover searching and sorting algorithms, dynamic programming and backtracking, as well as topics such as exception handling and using files.  As far as data structures are concerned, the course covers Python dictionaries as well as classes and objects for defining user defined datatypes such as linked lists and binary search trees.


Students in any branch of mathematics/science/engineering, 1st year


School level mathematics.


This course should be of value to any company requiring programming skills.


Madhavan Mukund studied at IIT Bombay (BTech) and Aarhus University (PhD). He has been a faculty member at Chennai Mathematical Institute since 1992, where he is presently Professor and Dean of Studies. His main research area is formal verification. He has active research collaborations within and outside India and serves on international conference programme committees and editorial boards of journals.

He is President of both the Indian Association for Research in Computing Science (IARCS) and the ACM India Council. He has been the National Coordinator of the Indian Computing Olympiad since 2002. He served as the Executive Director of the International Olympiad in Informatics from 2011-2014.

In addition to the NPTEL MOOC programme, he has been involved in organizing IARCS Instructional Courses for college teachers. He is a member of ACM India's Education Council. He has contributed lectures on algorithms to the Massively Empowered Classroom (MEC) project of Microsoft Research and the QEEE programme of MHRD.


Course url: https://onlinecourses.nptel.ac.in/noc17_cs28
Course duration : 08 weeks
Start date and end date of course: 24 July 2017 - 15 Sep 2017
Dates of exam :
 24 September

Time of exam : Shift 1 - 9.00am- 12.00 noon ,Shift 2 - 2.00 pm -5.00pm
Any one shift can be chosen to write the exam for the course
Final List of exam cities will be available in exam registration form.
Registration url - Will be announced shortly

Certification Exam

*The exam is optional for a fee. (Exams will be on 24 Sep 2017).
*Time: Shift 1: 9am-12 noon; Shift 2: 2pm-5pm
*Anyone shift can be chosen to write the exam for a course.
*Registration url: Announcements will be made when the registration form is open for registrations.*The online registration form has to be filled and the certification exam fee needs to be paid. More details will be made available when the exam registration form is published.


*Final score will be calculated as : 25% assignment score + 75% final exam score
*25% assignment score is calculated as 25% of average of Best 6 out of 8 assignments.
*E-certificate will be given to those who register and write the exam and score greater than or equal to 40% final score. Certificate will have your name ,photograph and the score in the final exam with the breakup.
*It will have the logos of NPTEL and IIT Madras. It will be e-verifiable at nptel.ac.in/noc.


Week 1
Informal introduction to programmin, algorithms and data structures viagcd
Downloading and installing Python
gcd in Python: variables, operations, control flow - assignments, condition-als, loops, functions

Week 2
Python: types, expressions, strings, lists, tuples
Python memory model: names, mutable and immutable values
List operations: slices etc
Binary search
Inductive function de nitions: numerical and structural induction
Elementary inductive sorting: selection and insertion sort
In-place sorting

Week 3
Basic algorithmic analysis: input size, asymptotic complexity, O() notation
Arrays vs lists
Merge sort
Stable sorting

Week 4
More on Python functions: optional arguments, default values
Passing functions as arguments
Higher order functions on lists: map, lter, list comprehension

Week 5
Exception handling
Basic input/output
Handling files
String processing

Week 6
Backtracking: N Queens, recording all solutions
Scope in Python: local, global, nonlocal names
Nested functions
Data structures: stack, queue

Week 7
Abstract datatypes
Classes and objects in Python
"Linked" lists: find, insert, delete
Binary search trees: find, insert, delete
Height-balanced binary search trees

Week 8
Effcient evaluation of recursive de nitions: memoization
Dynamic programming: examples
Other programming languages: C and manual memory management
Other programming paradigms: functional programming


Dive into Python 3, Mark Pilgrim, http://www.diveintopython3.net/
Think Python, 2nd Edition, Allen B. Downey, http://greenteapress.com/wp/think-python-2e/
Algorithm Design, Jon Kleinberg and Eva Tardos, Pearson (2013)