User Tools

Site Tools


computer_science

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computer_science [2021/09/16 23:20] – [Case study: addition] manacomputer_science [2021/09/25 05:27] (current) mana
Line 41: Line 41:
  
  
-===== Algorithm ===== 
-==== Design ==== 
-  * Step 1: Do something 
-  * Step 2: Do something 
-  * Step 3: Do something 
-  * ...   : ... 
-==== Sequential steps ==== 
-A sequential step is a single task; for example ''%%a 1 to x%%''. 
  
-==== Conditional steps ==== 
-Ask a question that is answered with a logic answer. The answer can be ''%%true%%''/''%%false%%''. 
-For example: 
-<code> 
-if (x > 0) add 1 to x 
-else substract 1 from x 
-</code> 
- 
-==== Loops ==== 
-Iterative steps. 
-<code> 
-add 1/2 cup to mixture 
-while mixture is dry 
-</code> 
- 
-==== Recursion ==== 
-FIXME (This will be filled at a later point.) 
- 
-==== Case study: addition ==== 
-Example:  
- 
-<code> 
- 472 
-+593 
-</code> 
- 
----- 
-FIXME 
-Conceptualise: 
-<code> 
-Let m => 1 be number of digits 
- 
-''a a a a'' 
- 
-''<sup>m-1</sup> <sup>3</sup> <sup>2</sup> <sup>1</sup>'' 
computer_science.1631802010.txt.gz · Last modified: 2021/09/16 23:20 by mana