Unit 2 computing Flashcards
What is caching?
Predicting the data that will be needed later on in the program and storing it in cache (faster to access)
What is prefetching?
Where data is requested from main memory before it’s actually required
What are the benefits of caching?
Improves speed and efficiency of processing
What are the drawbacks of caching?
Complexity, wrong data can be cached and has to be flushed
Can reusing code be a positive?
Saves time and resources
What is recursion?
When a subroutine calls itself within its own subroutine
What are the 3 characteristics of a recursive subroutine?
Stopping condition, routine calls itself for any value except stopping condition, stopping condition reachable within finite number of times
What does IDE stand for?
Integrated development environment
What is the purpose of an IDE?
To provide a range of tools and features that help speed up and enhance program development
What are examples of features in an IDE?
Code editors, error diagnostics, run-time environments, translators and auto-documentation
What is an example of an IDE?
Python IDLE (Integrated Development and Learning Environment)
What is a run-time environment?
Software that supports the running of programs allowing programmers to easily run code during development
What is done in auto-documentation?
Variables and modules are tracked with a view to produce documentation that aids in program maintenance, debugging and support
What are the two rules of Big O notation?
Remove all terms except one with largest exponent, remove any constant from this
What does O(1) mean in Big O notation?
Constant - always executes in same amount of time regardless of data set