D
Programming and Computational Engineering
Writing correct, tested programs and using algorithms, numerical methods and simulation to solve engineering problems.
From algorithms in plain language, through Python foundations, to data structures and engineering algorithms, then simulation of dynamic systems, and finally complexity and reproducible computation.
Level 1 · Explorer
Computational problem solving and algorithms without code.
1.1Algorithms as step-by-step instructions
In developmentNot yet externally reviewedWhat an algorithm is, why order matters, and how searching a sorted list can be much faster. A related lesson exists but assumes some programming.
- Write a clear algorithm for an everyday task.
- Compare linear and halving search by counting steps.
- Find and fix a bug in a written algorithm.
1.2Breaking problems into parts
PlannedNot yet externally reviewedDecomposition, patterns and pseudocode: turning a large engineering problem into small steps a computer could follow.
- Decompose a robot task into sub-tasks.
- Write pseudocode with a decision and a repeat.
- Trace pseudocode by hand to check it works.
Level 2 · Builder
Python foundations: variables, conditionals, loops, functions and testing.
2.1Python basics for engineers
AvailableNot yet externally reviewedValues, variables and expressions, then control flow and functions used to run a first simulation.
- Use variables and expressions to compute engineering quantities.
- Write conditionals and loops.
- Write a function and use it in a simple simulation.
2.2Lists, dictionaries and data files
AvailableNot yet externally reviewedStoring collections of measurements, looping over them, and reading CSV data with the standard library.
- Store and loop over data with lists and dictionaries.
- Read a CSV file into Python.
- Summarise a column of measurements.
2.3Testing and debugging
AvailableNot yet externally reviewedWriting functions with docstrings and assert-based tests, and reading tracebacks to fix errors.
- Write tests that state expected outputs.
- Read a traceback and locate the error.
- Use a systematic debugging strategy.
Level 3 · Innovator
Data structures, object-oriented foundations and engineering algorithms.
3.1Engineering algorithms and complexity
AvailableNot yet externally reviewedCounting steps and big-O intuition, searching and sorting, and graph search for path planning.
- Estimate the growth of an algorithm's running time.
- Implement binary search and a simple sort.
- Implement breadth-first search and Dijkstra on a grid.
3.2Numerical methods
AvailableNot yet externally reviewedRoot finding with bisection and Newton's method, and numerical integration and differentiation with their errors.
- Implement bisection and Newton's method and compare convergence.
- Apply the trapezoid rule and finite differences.
- Explain how step size affects numerical error.
3.3Object-oriented design for engineering code
PlannedNot yet externally reviewedClasses, objects and interfaces for modelling sensors, actuators and controllers so that parts can be swapped and tested.
- Model a sensor and an actuator as classes with clear interfaces.
- Use composition to build a robot model from parts.
- Write tests for a class's behaviour.
Level 4 · Systems Engineer
Simulation of dynamic systems, optimisation and software practice.
4.1Simulating dynamic systems
AvailableNot yet externally reviewedTime-stepping with Euler's method, simulating drag and spring–mass–damper systems, and choosing a stable step size.
- Distinguish verification from validation.
- Implement explicit and semi-implicit Euler.
- Find a stable step size and justify it.
4.2Optimisation methods
In developmentNot yet externally reviewedObjective functions, gradient descent and local minima. An introductory lesson exists; constrained optimisation and step-size analysis are still to be written.
- Write an engineering decision as an objective function.
- Implement gradient descent and tune its step size.
- Handle a constraint with a penalty or by projection.
4.3Engineering software practice
In developmentNot yet externally reviewedVersion control, testing and documentation for multi-file engineering projects. Concept-level lessons exist; a hands-on project workflow is still to be written.
- Use commits and branches to manage changes.
- Organise a project into modules with tests.
- Write documentation that lets someone else run the project.
Level 5 · Research Engineer
Complexity, stochastic simulation and reproducible computation.
5.1Complexity analysis and data structures for performance
PlannedNot yet externally reviewedFormal asymptotic analysis, heaps, hash tables and spatial data structures, and their use in planning and perception code.
- Prove the complexity of a simple algorithm.
- Choose a data structure to meet a performance target.
- Implement a priority queue and use it in A* search.
5.2Monte Carlo and stochastic simulation
In developmentNot yet externally reviewedUsing randomness to estimate quantities and propagate uncertainty. An introductory lesson exists; convergence analysis and variance reduction are still to be written.
- Estimate a quantity by Monte Carlo and report its standard error.
- Propagate input uncertainty through a model.
- Explain how the number of samples affects precision.
5.3Reproducible computational pipelines
In developmentNot yet externally reviewedMaking results regenerable from code and data: environments, seeds, data provenance and open licences. Concept-level lessons exist; a worked pipeline is still to be written.
- Record environment, seeds and data provenance.
- Automate a pipeline from raw data to figures.
- Choose open licences for code and data.