computer science programming paper Flashcards
what is a register
a temporary memory location located inside the CPU which is used for a single purpose
compare the efficiency of using a binary tree to a linked list when searching
the binary tree is more efficient as it removes half of the values at a time where a a linked list has to go through every single value
Compare the efficiency of a binary search tree to a hash table when searching for data.
binary tree is less efficient than a hash table, a hash table can find data immediately without having to look at other values
what is an object
an instantiated class
recursion
this a programming construct where the subroutine calls it self during execution
heuristics
a non-optimal way of solving a problem this finds an approximate solution TO A PROBLEM WHICH IS TIME CONSUMING
performance testing
eliminates the need for true performance testing by providing mathematical methods to test on a variety of load son different operating systems
what is the MAIN difference between functions and procedures
a function RETURNS a value
what is the difference between branching and iteration
branching decides which code is run and only runs the code once
how to remove form a tree
find the node
replace the content of node with null
add to empty list
similarities between trees and graphs
both made of nodes
both are connected by links
differences between tree and graphs
trees are one directional
trees will not be weighted(edges)
differences between recursion and iteration
recursion uses more memory iteration uses less
recursion can run out of memory while iteration cannot run out of memory
what are preconditions
requirements which must be met before a program can be executed
what is caching
storing instruction which have been used as they may be used again