Grade 9 Computer Science
The year the question stops being how to write
A third year, in which one stops asking how to write and starts asking what is right to write. We open with abstraction — naming something complicated and using it without knowing how it works — and with the question of what may be hidden and what must stay visible. From there we choose a data structure by the question we will ask, meet recursion and the two parts without which it does not stop, and see how a balanced division turns quadratic work into something else entirely. We then leave the program for the page: the three languages that make it up, and what happens when they are properly separated. We work with real data and see that most of the mistakes are not in the computation but in the judgement around it, build models and ask what they simplify and what that costs, and close with the question that remains after everything — who is included, who is measured, and who pays for what we built. The year ends with a final exam over the whole of it.
Choosing a data structure
- The question that settles it
- Values that do not change
- Combining structures
- The price of a wrong choice
- Structures the computer does not give
- Common mistakes about data structures
- Summary practice — data structures
Recursion
- A function that calls itself
- Thinking about recursion without tracing
- When recursion is better
- The price — the call stack
- Recursion over nested structures
- Common mistakes about recursion
- Summary practice — recursion
Divide and conquer
- The three stages
- Sorting by merging
- Why halving changes the shape
- Where the pattern recurs
- When the pattern does not pay
- Common mistakes about divide and conquer
- Summary practice — divide and conquer
The web — a page’s three languages
- Three languages, three jobs
- Structure and meaning
- The appearance layer
- Behaviour in the browser
- Why the separation matters
- Common mistakes about the web
- Summary practice — the web
Working with data
- The four stages
- Cleaning without changing the answer
- Summarising without hiding
- A link is not a cause
- Stating a claim one can stand behind
- Common mistakes about data
- Summary practice — data
Computing and society
- A technical decision is a decision about people
- Who is left out
- What changes when a machine decides
- Who answers when a system errs
- Weighing a system before building it
- Common mistakes about computing and society
- Summary practice — computing and society
Final exam — Grade 9 Computer Science
- Final exam — Grade 9 Computer Science