SlideShare a Scribd company logo
Intro to
Algorithms &
Pseudocode
C o a c h F r u L o u i s
Tech|Career|Inspiration
Programming Basics
2
Agenda
@Coachfrulouis
Tech|Career|Inspiration
02. What is pseudocode? ( With examples)
01. What is an Algorithm?(With examples)
03. Why is Pseudocode
Useful?
04. Possibilitiesโ€ฆ Agenda
3
Alien: Write a program that allows
users to check whether a number is
even or odd.
You: Huhhhh?
4
You: Huhhhh?
5
Problem Solving in
the Computer world
๏ƒž Algorithms
๏ƒž PseudoCODE
6
ALGORITHM:
A set of rules that must be followed
when solving a particular problem.
You: Huhhhh?
Input
Set of
Rules
Output
7Party Response Algorithm!
You: Huhhhh?Definitely
Going
Any
Girls
Wonโ€™t Go
Party Invitation
Will
Amy
Go?
Wonโ€™t Go
Do I
have a
ride?
Wonโ€™t Go
A set of rules to
solve problems.
Usually Deterministic
No
No
No
Yes
Yes
Yes
8
$Examples
3 Mod 2 = 1
4 Mod 2 = 0
5 Mod 2 = 1
6 Mod 2 = 0
7 Mod 2 = 1
Alien: Write a program that allows users to
check whether a number is even or odd.
You: Huhhhh?
ODD
EVEN
ODD
EVEN
ODD
9
PSEUDOCODE:
Pseudocode is step-by-step written
outline of your code that you can
gradually transcribe into the
programming language.
You: Huhhhh?
10
FOR EACH current Number (X) in the list we see
X mod 2 = Y
Check IF Y == 0 THEN itโ€™s EVEN
$Algorithm:
A set of rules that
must be followed
when solving a
particular
problem.
LOOP through each number in the list
Get LIST of numbers
ELSE Check IF Y == 1 then itโ€™s ODD
$Pseudocode
END the program
11
PSEUDOCODE IS USEFUL:
1. To describe algorithm should
work
2. To explain a computing process
to less-technical users
3. To design code in a group
setting.
You: Huhhhh?
12
13Key Programming Concepts
You: Huhhhh?
โ€ข Loops
โ€ข Conditionals
โ€ข Iterations
โ€ข And moreโ€ฆ
Deterministic vs Non-deterministic Algorithm.
Many Types of Algorithms
โ€ข Simple recursive algorithms
โ€ข Backtracking algorithms
โ€ข Divide and conquer algorithms
โ€ข Dynamic programming algorithms
โ€ข Greedy algorithms
โ€ข Branch and bound algorithms
โ€ข Brute force algorithms
โ€ข Randomized algorithms
Thanks
Tech|Career|Inspiration
F I N I S H

More Related Content

Similar to Intro to Pseudocode and Algorithms | Problem Solving in Computer Science (20)

PPTX
Unit 1 c programming language Tut and notes
achiver792
ย 
PPTX
Lec-ProblemSolving.pptx
miansaad18
ย 
PPSX
Ds02 flow chart and pseudo code
jyoti_lakhani
ย 
PDF
Pseudocode By ZAK
Tabsheer Hasan
ย 
PPT
programming language(C++) chapter-one contd.ppt
Fuadsabseb
ย 
PPTX
Data Structure and Algorithms โ€“Introduction.pptx
R S Anu Prabha
ย 
PPTX
542996051-Program-Logic-Formulation.pptx
JakeParas
ย 
PDF
DAA Unit 1.pdf
Nirmalavenkatachalam
ย 
PPTX
Pseudo code
rija33
ย 
PPT
explain about computational thinking, and how computer can work
TubagusAfrizalAje
ย 
PPTX
Introduction to Pseudocode
Damian T. Gordon
ย 
PPT
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
ย 
PPT
Fundamentals of Programming Chapter 3
Mohd Harris Ahmad Jaal
ย 
PPTX
pseudocode Note(IGCSE Computer Sciences)
MKKhaing
ย 
PPT
AOA Week 01.ppt
INAM352782
ย 
PPTX
2. Algorithms Representations (C++).pptx
ssuser4d77b2
ย 
PPTX
C programming .pptx
SuhaibKhan62
ย 
PPTX
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
ย 
PDF
LEC 5 [CS 101] Introduction to computer science.pdf
p87783936
ย 
PPT
Data Structures- Part1 overview and review
Abdullah Al-hazmy
ย 
Unit 1 c programming language Tut and notes
achiver792
ย 
Lec-ProblemSolving.pptx
miansaad18
ย 
Ds02 flow chart and pseudo code
jyoti_lakhani
ย 
Pseudocode By ZAK
Tabsheer Hasan
ย 
programming language(C++) chapter-one contd.ppt
Fuadsabseb
ย 
Data Structure and Algorithms โ€“Introduction.pptx
R S Anu Prabha
ย 
542996051-Program-Logic-Formulation.pptx
JakeParas
ย 
DAA Unit 1.pdf
Nirmalavenkatachalam
ย 
Pseudo code
rija33
ย 
explain about computational thinking, and how computer can work
TubagusAfrizalAje
ย 
Introduction to Pseudocode
Damian T. Gordon
ย 
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
ย 
Fundamentals of Programming Chapter 3
Mohd Harris Ahmad Jaal
ย 
pseudocode Note(IGCSE Computer Sciences)
MKKhaing
ย 
AOA Week 01.ppt
INAM352782
ย 
2. Algorithms Representations (C++).pptx
ssuser4d77b2
ย 
C programming .pptx
SuhaibKhan62
ย 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
ย 
LEC 5 [CS 101] Introduction to computer science.pdf
p87783936
ย 
Data Structures- Part1 overview and review
Abdullah Al-hazmy
ย 

More from Fru (20)

PDF
TPC Benchmarking Explained: Transaction Processing Performance Council | fr...
Fru
ย 
PPTX
SAP Advanced Lecture | FruTech.io
Fru
ย 
PDF
Fru 2022 | Tech Trends, Themes, Thoughts, Perspectives and Predictions
Fru
ย 
PPTX
10 Top Newsworthy Tech Industry Headlines Of 2020 | Other Than COVID
Fru
ย 
PPTX
10 Tech Conferences to Attend in 2021
Fru
ย 
PPTX
10 Jobs in Tech that DON'T require you to CODE
Fru
ย 
PPTX
10 Brilliant โ€˜Techโ€™ Gifts for Remote Workers | 2021
Fru
ย 
PPTX
10 Most Used AWS Services To LEARN For A Career Boost
Fru
ย 
PPTX
10 Soft Skills Every Tech Professional Must Master For Career Success
Fru
ย 
PPTX
10 Basic Skills Needed For Entry Level I.T. Jobs
Fru
ย 
PPTX
10 Beginner Settings to Look At with Snowflake Web UI
Fru
ย 
PPTX
10 Smart Questions To Ask Hiring Managers In A Job Interview
Fru
ย 
PPTX
10 Non-Tech Degrees That Will Help You With a Career In I.T.
Fru
ย 
PPTX
10 Amazing Benefits and Advantages of Online Degrees
Fru
ย 
PPTX
10 Concepts EVERY Self-Taught Tech Professionals Should Know
Fru
ย 
PPTX
10 Acronyms Every TECH Professional Should Know | 2021
Fru
ย 
PPTX
10 Brilliant โ€˜Techโ€™ Gifts for Remote Workers | 2021
Fru
ย 
PPTX
10 Tech Essentials Your Home Office Needs | Work From Home | WFH | 2021
Fru
ย 
PPTX
10 Data Science, Machine Learning & AI Projects You Can Try Today
Fru
ย 
PPTX
10 Things Every Tech Employee Must Do Right After You Land Your Dream Job
Fru
ย 
TPC Benchmarking Explained: Transaction Processing Performance Council | fr...
Fru
ย 
SAP Advanced Lecture | FruTech.io
Fru
ย 
Fru 2022 | Tech Trends, Themes, Thoughts, Perspectives and Predictions
Fru
ย 
10 Top Newsworthy Tech Industry Headlines Of 2020 | Other Than COVID
Fru
ย 
10 Tech Conferences to Attend in 2021
Fru
ย 
10 Jobs in Tech that DON'T require you to CODE
Fru
ย 
10 Brilliant โ€˜Techโ€™ Gifts for Remote Workers | 2021
Fru
ย 
10 Most Used AWS Services To LEARN For A Career Boost
Fru
ย 
10 Soft Skills Every Tech Professional Must Master For Career Success
Fru
ย 
10 Basic Skills Needed For Entry Level I.T. Jobs
Fru
ย 
10 Beginner Settings to Look At with Snowflake Web UI
Fru
ย 
10 Smart Questions To Ask Hiring Managers In A Job Interview
Fru
ย 
10 Non-Tech Degrees That Will Help You With a Career In I.T.
Fru
ย 
10 Amazing Benefits and Advantages of Online Degrees
Fru
ย 
10 Concepts EVERY Self-Taught Tech Professionals Should Know
Fru
ย 
10 Acronyms Every TECH Professional Should Know | 2021
Fru
ย 
10 Brilliant โ€˜Techโ€™ Gifts for Remote Workers | 2021
Fru
ย 
10 Tech Essentials Your Home Office Needs | Work From Home | WFH | 2021
Fru
ย 
10 Data Science, Machine Learning & AI Projects You Can Try Today
Fru
ย 
10 Things Every Tech Employee Must Do Right After You Land Your Dream Job
Fru
ย 
Ad

Recently uploaded (20)

PDF
Cloud computing Lec 02 - virtualization.pdf
asokawennawatte
ย 
PDF
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
ย 
PPTX
Introduction to web development | MERN Stack
JosephLiyon
ย 
PPTX
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
ย 
PPTX
IDM Crack with Internet Download Manager 6.42 [Latest 2025]
HyperPc soft
ย 
PDF
WholeClear Split vCard Software for Split large vCard file
markwillsonmw004
ย 
PPTX
Iobit Driver Booster Pro 12 Crack Free Download
chaudhryakashoo065
ย 
PDF
LPS25 - Operationalizing MLOps in GEP - Terradue.pdf
terradue
ย 
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
ย 
PDF
AI Software Development Process, Strategies and Challenges
Net-Craft.com
ย 
PPTX
NeuroStrata: Harnessing Neuro-Symbolic Paradigms for Improved Testability and...
Ivan Ruchkin
ย 
PDF
Rewards and Recognition (2).pdf
ethan Talor
ย 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
ย 
PPTX
For my supp to finally picking supp that work
necas19388
ย 
PPTX
declaration of Variables and constants.pptx
meemee7378
ย 
PDF
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
ย 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
ย 
PDF
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
ย 
PDF
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
ย 
PDF
Code Once; Run Everywhere - A Beginnerโ€™s Journey with React Native
Hasitha Walpola
ย 
Cloud computing Lec 02 - virtualization.pdf
asokawennawatte
ย 
Why Edge Computing Matters in Mobile Application Tech.pdf
IMG Global Infotech
ย 
Introduction to web development | MERN Stack
JosephLiyon
ย 
Android Notifications-A Guide to User-Facing Alerts in Android .pptx
Nabin Dhakal
ย 
IDM Crack with Internet Download Manager 6.42 [Latest 2025]
HyperPc soft
ย 
WholeClear Split vCard Software for Split large vCard file
markwillsonmw004
ย 
Iobit Driver Booster Pro 12 Crack Free Download
chaudhryakashoo065
ย 
LPS25 - Operationalizing MLOps in GEP - Terradue.pdf
terradue
ย 
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
ย 
AI Software Development Process, Strategies and Challenges
Net-Craft.com
ย 
NeuroStrata: Harnessing Neuro-Symbolic Paradigms for Improved Testability and...
Ivan Ruchkin
ย 
Rewards and Recognition (2).pdf
ethan Talor
ย 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
ย 
For my supp to finally picking supp that work
necas19388
ย 
declaration of Variables and constants.pptx
meemee7378
ย 
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
ย 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
ย 
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
ย 
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
ย 
Code Once; Run Everywhere - A Beginnerโ€™s Journey with React Native
Hasitha Walpola
ย 
Ad

Intro to Pseudocode and Algorithms | Problem Solving in Computer Science

  • 1. Intro to Algorithms & Pseudocode C o a c h F r u L o u i s Tech|Career|Inspiration Programming Basics
  • 2. 2 Agenda @Coachfrulouis Tech|Career|Inspiration 02. What is pseudocode? ( With examples) 01. What is an Algorithm?(With examples) 03. Why is Pseudocode Useful? 04. Possibilitiesโ€ฆ Agenda
  • 3. 3 Alien: Write a program that allows users to check whether a number is even or odd. You: Huhhhh?
  • 5. 5 Problem Solving in the Computer world ๏ƒž Algorithms ๏ƒž PseudoCODE
  • 6. 6 ALGORITHM: A set of rules that must be followed when solving a particular problem. You: Huhhhh? Input Set of Rules Output
  • 7. 7Party Response Algorithm! You: Huhhhh?Definitely Going Any Girls Wonโ€™t Go Party Invitation Will Amy Go? Wonโ€™t Go Do I have a ride? Wonโ€™t Go A set of rules to solve problems. Usually Deterministic No No No Yes Yes Yes
  • 8. 8 $Examples 3 Mod 2 = 1 4 Mod 2 = 0 5 Mod 2 = 1 6 Mod 2 = 0 7 Mod 2 = 1 Alien: Write a program that allows users to check whether a number is even or odd. You: Huhhhh? ODD EVEN ODD EVEN ODD
  • 9. 9 PSEUDOCODE: Pseudocode is step-by-step written outline of your code that you can gradually transcribe into the programming language. You: Huhhhh?
  • 10. 10 FOR EACH current Number (X) in the list we see X mod 2 = Y Check IF Y == 0 THEN itโ€™s EVEN $Algorithm: A set of rules that must be followed when solving a particular problem. LOOP through each number in the list Get LIST of numbers ELSE Check IF Y == 1 then itโ€™s ODD $Pseudocode END the program
  • 11. 11 PSEUDOCODE IS USEFUL: 1. To describe algorithm should work 2. To explain a computing process to less-technical users 3. To design code in a group setting. You: Huhhhh?
  • 12. 12
  • 13. 13Key Programming Concepts You: Huhhhh? โ€ข Loops โ€ข Conditionals โ€ข Iterations โ€ข And moreโ€ฆ Deterministic vs Non-deterministic Algorithm. Many Types of Algorithms โ€ข Simple recursive algorithms โ€ข Backtracking algorithms โ€ข Divide and conquer algorithms โ€ข Dynamic programming algorithms โ€ข Greedy algorithms โ€ข Branch and bound algorithms โ€ข Brute force algorithms โ€ข Randomized algorithms