0% found this document useful (0 votes)
3 views9 pages

Python Algorithmic Problem Solving Guide

The document outlines the fundamentals of algorithmic problem solving, emphasizing the two phases of writing algorithms and converting them into code. It discusses the importance of data structures and types, as well as the characteristics of algorithms, control structures, and includes exercises on palindromes and primality testing. Additionally, it provides a framework for developing algorithms, pseudo code, and flow charts.

Uploaded by

sandhiyababu1511
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views9 pages

Python Algorithmic Problem Solving Guide

The document outlines the fundamentals of algorithmic problem solving, emphasizing the two phases of writing algorithms and converting them into code. It discusses the importance of data structures and types, as well as the characteristics of algorithms, control structures, and includes exercises on palindromes and primality testing. Additionally, it provides a framework for developing algorithms, pseudo code, and flow charts.

Uploaded by

sandhiyababu1511
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PMDS508L - Python Programming

Module – 1 – Algorithmic Problem Solving

Prepared by: Dr. Nandhini S, SAS

Algorithmic Problem solving has two phases:


1. Writing algorithm
2. Converting algorithm into code
History:

Data Structures and Data types:


• Algorithms provides the logic
• Data provides the values
• Program = Algorithm + Data structures

Characteristics of an Algorithm:
Pseudo code:
Flow charts:
Control Structures:
There are three kinds of control structures. They are:
Exercises:
1. A word is a palindrome if it reads the same when the order of its characters is
reversed. For instance, “123321”, “RADAR” and “step on no pets” are palindromes.
Derive an algorithm to determine if a word is a palindrome.

Solution:
2. Write an algorithm, pseudo code and flow chart to check the primality of a positive
number.

Algorithm:
Pseudo code:

Flowchart:
======================= END ==========================

You might also like