Second year test Flashcards
What is normalisation?
Every attribute is dependent upon the key, the whole key and nothing but the key
What is 1st normal form?
Stops repeated groups
What is 2nd normal form?
Partial key dependence test
What is 3rd normal form?
non-key dependence test
Why is normalisation important?
reduces data duplication
eliminates data inconsistency
What SQL commands are there?
Select From Where Order By And Insert Into Update Delete from Create
What is record locking?
A technique to prevent updates being lost or inconsistencies in data rising. Database is locked until table has been edited and updated.
What is underflow?
When number is too close to 0 to be represented
What is overflow?
a number is too big to be represented in a given number of bits
What is cancellation error?
When a sum is between two numbers of a very different size
What is a recursive route?
A route that is defined in terms of itself
What is an intractable problem?
Can be solved by a computer, but cannot be solved in a reasonable time for large inputs. Anything less than O(n^2)
Example or logarithmic time
Binary search
Example of Linear time search
Linear search
Example of quadratic time search
Bubble sort