0% found this document useful (0 votes)
47 views7 pages

Computational Thinking

1) The document discusses using computational thinking skills to solve the problem of calculating the sum of all numbers from 1 to 100. 2) It breaks the problem down into smaller steps of decomposition, pattern recognition, abstraction, and developing an algorithm. 3) The key steps are recognizing that the sum of the lowest and highest number in each pair is 101, and that there are 50 pairs when dividing 100 by 2. Multiplying 101 by 50 pairs gives the total sum of 5050.

Uploaded by

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

Computational Thinking

1) The document discusses using computational thinking skills to solve the problem of calculating the sum of all numbers from 1 to 100. 2) It breaks the problem down into smaller steps of decomposition, pattern recognition, abstraction, and developing an algorithm. 3) The key steps are recognizing that the sum of the lowest and highest number in each pair is 101, and that there are 50 pairs when dividing 100 by 2. Multiplying 101 by 50 pairs gives the total sum of 5050.

Uploaded by

吴国豪
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Computational Thinking

Ahli kumpulan: Jasmine Tan, Ng Kok How ,Chai Wei


Wen,Ku Mei Jing, Low Xue Ni, Low Ing Chien
Solving a question using Computational Thinking
Skill

• Question: What is value of 1+2+3+4........100.


Step 1 Decomposition (Breaking complex
problem into small part)
100+1= 101
99+2= 101
98+3= 101
etc .............
Step 2 : Pattern recognition (Identify pattern)

100+1= 101
99+2= 101
98+3= 101
etc .............
• We can see the sum of the lowest and the highest
number is 101, we figure out many time the pattern of 101
repeat.


• Solution could be counting the all the pair or take the
highest number and divide by 2.

• 100/2 = 50 pair
Step 3 : Abstraction (identify specific similarities
and differences)
100+1= 101 100/2 = 50 pair
99+2= 101
98+3= 101
etc .............
101 is the similarity

We focus on the important detail, 100+1 and 100/2

sum of each pair (100+1) x number of pair(100/2)= sum of


number from 1 to 100.
Step 4 :Algorithm (Develop step-by-step instruction)
• sum of each pair (100+1) x number of pair(100/2)= sum of
number from 1 to 100.

• Step 1: 100+1 =101


• Step 2:100/2 =50
• Step 3: 101 x 50 =5050

• Use the same algorithm on other question to make sure


your algorithm is valid.

You might also like