Computational thinking notes
[Link] thinking – decomposition
Computational thinking is defined as a way of solving problems
by breaking them into smaller, manageable parts
1.1 the concept of decomposition
definition: decomposition is the first step of computational
thinking .It involves breaking a large into smaller problems that
are easier to solve
1.6 decomposition in coding :the IPO model
Decomposition works similarly in coding. we use the IPO Model
(input, processing and output) to organize the code .Everything
in coding can be divided into these three groups:
Input(I):This is the information needed from the user .
Processing (P):This is what needs to be calculated or
worked out.
Output(O):This is what needs to be displayed or produced
to the user.
2. computational thinking – pattern recognition
2.1 the concept of pattern recognition
Definition: pattern recognition is the ability to spot
repeated sequences or trends .These sequences can be
found in numbers ,shapes ,words ,and real-life situations
Importance: Pattern recognition helps us predict what
comes next and allows us to solve problems faster
\
2.3. Uses of pattern recognition in real life
area application
Coding and artificial Computers use pattern
intelligence(ai) recognition what you will type
next in google search or to
suggest movies/TV series on
platforms like Netflix .AI can
recognize patterns in x-rays to
help spot diseases early
Science and medicine Doctors use patterns
(Symptoms)to identify
diseases
Everyday life Traffic lights operate on a
simple pattern (red means
stop; green means go).
Weather forecasts predict
conditions by spotting
patterns in climate data
Music and language Songs have repeating beats
and lyrics. Language follows
grammar rules, forming
predictable patterns
necessary for correct
speaking.
2.4. why pattern recognition is important
It is important because it serves several crucial functions:
It solves problems faster (e.g., in mathematics and
coding)
It is vital for making predictions (e.g., weather and
medicine)
It improves memory and logical thinking
Algorithms and planning-pseudocode
[Link] concept of pseudocode
Definition; pseudocodes a simplified plain language
version of computer code
Purpose: it is used to plan algorithms before writing actual
code
Accessibility: it is designed so that anyone ,even those
without coding or computer knowledge ,must be able to
read it and understand what the program will do
Nature :pseudocode is generic ;it is not any specific
programming language
3.2 basic rules for writing pseudocode
When writing pseudocode, specific basic rules must be
followed:
RULE
DESCRIPTION/SYNTAX
START AND END Always begin with the word
begin and always end with
the word end
ASSIGNMENT Use the left arrow () for
assignment statements, not
the equal sign(=)
PUNCTUATION Semicolons are not used
VARIABLES Variables types are not
declared because pseudocode
is generic
INPUT Use the command input for
data received from the
keyboard
OUPUT Use the command DISPLAY to
show data on the screen or
produce output to the user
MATH SYMBOLS Standard mathematical
symbols can be usde