What is Computation?
“Any type of calculation that includes both arithmetical and non-arithmetical steps and which follows a well-defined model (e.g. an algorithm).”
What is an Algorithm?
An algorithm is a plan of things to do that will achieve a specified goal.
Then What is a Program?
A program is a translation of an algorithm into a set of instructions that follow all the rules of a given programming language (and can be executed by a computer.)
What is a Computer?
Something that can execute an algorithm (implemented as a program) to compute an answer. It needs to be able to take inputs, provide outputs, and remember things about where it is in the algorithm (it’s state.)
First Useful Computers
Teams of women who calculated trajectory tables, and solved other mathematical problems.
Related- watch
Electronic Machines
Microcontrollers
CPU + Memory + I/O
All in one chip!
Microcontrollers typically have two types of memory:
Extreme microcontroller: SOC (system on a chip)- e.g. Raspberry Pi, your phone…
First Programmer
Deep theory & real machines.
A very important, and amazingly simple, model that:
Made the term “bug” (in)famous after writing
“first actual case of bug being found”
in her log after her team discovered that a moth was the reason for the Cambridge Mark II computer not working.
(ref)
Led NASA’s software team that wrote the landing control software that landed astronauts on the moon. Pioneered the idea of fault tolerant software that can prioritize what to work on given tight constraints. (ref).
Also see: TedEd Video, Great talk about Apollo Control Software
Think of them as boxes, each with a piece of paper on which a reminder is written.
There can be many boxes…. so each one needs to be labelled with a name.
color = "red"
inventory = 25
...
print(f"We have {inventory} items of color {color}")
Update content of variables.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |