Algorithmic Thinking With Python
Algorithmic Thinking With Python
SEMESTER S1
ALGORITHMIC THINKING WITH PYTHON
Teaching Hours/Week
3:0:2:0 ESE Marks 60
(L: T:P: R)
Course Objectives:
1. To provide students with a thorough understanding of algorithmic thinking and its practical
applications in solving real-world problems.
SYLLABUS
Module Contact
Syllabus Description
No. Hours
** Only for visualizing the control flow of Algorithms. The use of tools like
RAPTOR (https://raptor.martincarlisle.com/) is suggested. Flowcharts for the
sample problems listed earlier may be discussed
SELECTION AND ITERATION USING PYTHON:- if-else, elif, for loop, range,
while loop.
Sequence data types in Python - list, tuple, set, strings, dictionary, Creating and
using Arrays in Python (using Numpy library).
DECOMPOSITION AND MODULARIZATION* :- Problem decomposition as a
strategy for solving complex problems, Modularization, Motivation for
modularization, Defining and using functions in Python, Functions with multiple
3 10
return values
RECURSION:- Recursion Defined, Reasons for using Recursion, The Call Stack,
Recursion and the Stack, Avoiding Circularity in Recursion, Sample problems -
Finding the nth Fibonacci number, greatest common divisor of two positive
integers, the factorial of a positive integer, adding two positive integers, the sum of
digits of a positive number **.
* The idea should be introduced and demonstrated using Merge sort, the problem
of returning the top three integers from a list of n>=3 integers as examples. (Not to
be limited to these two exercises. More can be worked out if time permits).
** Not to be limited to these exercises. More can be worked out if time permits.
Divide-and-conquer Approach -
Bloom’s
Course Outcome Knowledge
Level (KL)
CO3 Use effective algorithms to solve the formulated models and translate K3
algorithms into executable programs.
Note: K1- Remember, K2- Understand, K3- Apply, K4- Analyse, K5- Evaluate, K6- Create
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12
CO1 3 3 3 3
CO2 3 3 3 3
CO3 3 3 3 3
CO4 3 3 3 3
Reference Books
Sl. No Title of the Book Name of the Name of the Edition
Author/s Publisher and Year
1 Problem solving & Maureen Sprankle, Jim Pearson 2012
programming concepts Hubbard
2 How to Solve It: A New George Pólya Princeton University 2015
Aspect of Mathematical Press
Method
Creative Problem Solving: Donald Treffinger., Scott
3 An Introduction Isaksen, Brian Stead- Prufrock Press 2005
Doval
Spielman, R. M.,
4 Psychology (Sec.. Problem Dumper, K., Jenkins, W.,
H5P Edition 2021
Solving.) Lacombe, A., Lovett, M.,
& Perlmutter, M
5 Computer Arithmetic Koren, Israel AK Peters/CRC Press 2018
Algorithms
Module Link ID
No.
1 https://opentextbc.ca/h5ppsychology/chapter/problem-solving/
2 https://onlinecourses.nptel.ac.in/noc21_cs32/preview
1. Algorithm (2 Marks)
Algorithm Development: Correctness and efficiency of the algorithm related to the question.
2. Programming (3 Marks)
3. Result (3 Marks)
Proficiency in answering questions related to theoretical and practical aspects of the subject.
LAB Experiments:
Rules:
1. Every number should contain exactly 10 digits.
2. The first digit should be 7 or 8 or 9