mock\ Flashcards
1.
what is an algorithm?
- a finite sequence of operations for carrying out a procedure/solving problems
what is a heuristic algorithm?
a method which finds the solution efficenlty , with no gurantee that it is optimal solution
eg: packing algorithms, integer LP
what is optimisation?
optimal= “best”
optimisation= making it best
* finding the best availible values
when is a LP in standard form?
- Objective function to be maximised
- with constraints <=
- non negative variables
what is augmented/ slack form?
non-negative slack variables convert ineualities to equalities
what are basic variables?
variables which have been cleared out and only have one non zero column in it
hold and actual value
what are non-basic variables?
variables which have multiple values in thier column and so are given a 0 value
when would a LP require integer solutions?
when the variable is discrete
* should be mentioned in working out
What does this sigma notation mean?
Sigma notation
Sigma notation
Sigma notation
Express the sum using Sigma notation
The standard formula for the sum to n terms of r
Find the sum
The standard formula for the sum to n terms of r squared
Find a general expression for
Method of differences
What are the general steps for proof by induction?
Proof by induction factorial
Proof by induction product
What is the order of the following matrices ?
Number of rows by numbers of columns
y by x
What does it mean for matrices to be “non conformable”?
This means that they matrices do not have the exact same order. For example
What does associative mean?
It means that despite the order/ grouping of numbers, the answers will be the same.
What does it mean for something to be commutative ?
What are the general steps to carrying out matrices multiplication?
- write out the order of both matrices
- see if compatible, if they are write order of answer matrix
- start with first element (1x1) first row by first colum
- multiply each pair of numbers and add up the answers
- then go onto next element (1x2) first row by second column
- multiply each pair and add up numbers
Multiply
Multiply (find FE)
Is matrix muliplication commutative or associative?
-
not commutative
as order within which multiplied does matter - is associative
what is the original point/shape and the transformed point/shape reffered to ?
- orginal= object
- transformed= image
what is a transformation?
the mapping of an object onto a image
how do you find the transformation representated by a given matrix?
- split up the identity matrix into points (unit vectors)
- see how they have been transformed by ploting the points on a graph
Describe the transformation of the matrix
What is the transformation matrix for any angle theta anti-clockwise. ?
What is the matrix transformation for any clockwise rotation by angle theta?
Describe the transformation by the matrix
Describe the transformation by the matrix
What are shears?
The base stays rooted and the rest shifts and becomes parallel. The area of original shape is the same to the shear.
What are the 2 different types of shears?
Successive transformations
3D matrices
Describe the Transformation under matrix
Describe the Transformation under matrix
Describe the transformation
What are invariant points?
Points that do not change after a transformation.
The origin will always be an invariant point
What are invariant lines?
A line of points that MAY be invariant or points that remain upon that line after a transformation
More proof by induction matrices
What are the components of an algorithm?
- finite number of steps
- unambigious steps
- deterministic
What is complexity ?
- Size in relation to run time (efficiency )
- measure of which one is faster
Perform a quick sort algorithm to sort it into ascending order
values less than or equal to go to the left of pivot
what is
* first fit
* first fit decreasing
* full bin
- FF: putting the numbers using given order in question
- FFD: ordering the list into descending order - biggest first
- FB: using brain for optimal solution
what does heuristic mean?
- a method that finds the solution efficently, but with no gurante that this solution is optimal
- important when classical methods fail, only way to find is exhauting all solutions
how can the efficency of different packing methods be tested?
counting the number of comparisions needed in worst case
what is the complexit of the first fit and first fit decreasing algorithm , in the worst case?
o (n sqaured)
what is the complexity of the quick sort algorithm , in the worst case?
O (n squared)
What is big O notation?
Use quick sort to sort the following numbers in descending order
Use quick sort to sort the following numbers in descending order
What is i?
The square root of negative 1
What is an do the following symbols mean ?
What is an imaginary number ?
Any multiple of i
What is a complex number ?
An imaginary number and a normal number
How is the equality different for complex numbers?
Questions
Questions
Question
What is a conjugate ?
A change in the sign in the middle of two terms
What do you know about the roots of a quadratic equation that are non- real complex numbers?
The roots are conjugate.
If f(z)=0
Then f(z*)=0
What is the Argand diagram?
Plot the points
How would two conjugate pairs be represented geometrically? (On the Angrand diagram)
Reflection on the x axis