Week 1
Week 1
_BBog3EEFTBMq•ʳMBam
Com put atio nal Thin king
☆
BBoEEEEBoEEoEEgBBo
Lee - 1 : Introduction to datasets
Lee 2
concept of variables iterators
:
and filtering
-
Iteration :
> When we
go through the sequence of objects that we have
and for each
object we
keep a count .
that count
lay 1 .
>
Count : ∅ +✗ = I
1/1-1 = 2
2×-1 = 3
;
29 + I
3¥
=
is to
> so , at the end
of the count
actually equal the total no .
of objects
we have Allen .
initialization in this
'
in the initialization .
> Count in a
quantity Crumb er ) which just keep changing as we
go along .
in mathematics
average
.
from
above 130) .
i. SUM = 0 +68 =
☒
68+62=130
130+57 72 36
2317,1
1871
=
:
Avg
'
=
≈
. . _ . .
=
:
<
Another :
varible
2099+72=21-71
> we wear perform the cabane two tasks
simultaneously .
> All would have also done for the other subjects at the same time .
in
> At the end
,
we can do all
of this
overlapping one iteration .
> Now
say
we are interested in aspiufio group of cards only .
so we
Now again ,
we do the
counting or we could do that while
filtering .
Introduction
Lee 4 to
flow charts
-
.
To describe in
a
sequence of step programming
flowcharts Pseudocode
flowcharts
☆ are
diagramatic res presentation of sequence of steps .
in
>
commonly used
symbols flowchart
write down
:
It is used to set
of operations
that data ( variables ]
can
change the value
of the
Process Activity
choice b/w
Generally two different
:
used to make a
alternative paths the
program can take .
Decision
Terminal
> flowcharts for counting cards :
are no more
cards , we
If there
>
end the program
carries
.
can
The vari ble count
the req value
.
.
walled pile y .
'
Clay pile 2)
c.) Increment the value
of count . { The iteration stops when pile ↑ is empty } .
we need to
pick card
from pile 1 but we can do that
only if there
>
a .
Culndition =
false) or there are more wards Coondition True ) =
again it to pile 2 :
'
full do
day we
we
Manto to
do that ?
find out sum
of math marks
using flowcharts .
How
we variable .
> Instead
of initiates
ing count = 0
, we make sum = 0 .
MG instead
' '
increment count it to add maths marks ward X
of ,
change
we
of
to sum Rest
.
of the
flowchart remains the same .
The remains
☆ Observation : flowchart more or less the same with
only minute
tweens .
Hence we can generate¥ .
> Generic flowchart for iteration :
flowchart
> Lees :
for sum with
filtering
say we want to do sum
of Boys maths marks
only .
Lee -
6 Sanity of data
> Lee -
7 Introduction to datatypes
< , >, = Boolean
Lee -
✗
,
do not make
÷
<
* string ka Matlab something that is sequence of characters and we do not put any
restrictions on the length of the sequence or on the type of characters.
be city
Could
well
as
Lee -9
Transformation of sub datatypes
-
>
Printlo)="1Jan "
Prin-1131)= " "
lfeb
Operation Result
Print String
< , > ,= Boolean
31+28+31+30 -131+30+31+15 I
221
-