What are preconditions?
What are the benefits of specifying preconditions in an algorithm’s documentation?
What would the preconditions be for a binary search tree?
The tree must be ordered
Each parent node can have a maximum of 2 child nodes
What could be the preconditions for an algorithm that renders a 3D cube based on dimensions provided by the user?
The size of the cube cannot be negative and must be a number
What are reusable components?
Components that are written in a way that makes it possible to use the code again in another project. An example is code libraries that can be used when developing a program.
What are the benefits of writing reusable components?
What are the benefits of using reusable components?
What is caching?
The temporary storage of instructions or data that has been recently used, in fast memory on the processor chip (cache) so that if they are needed again, they can be retrieved very quickly.
What are the benefits of caching?
What are the drawbacks of caching?
What is cache?
Small high-speed memory located on the CPU / GPU
What items could be cached if someone was programming the game of Monopoly?