FINAL EXAM discrete maths Flashcards
tautology
always true
contradiction
always false
contingency
True or False
nCr used when?
choosing r number of items from a total set of n
repetition
n!/(r!*r2!)
determinant
ad-bc
A^-1=
1/D(d,-b,-c,a]
To find matrix solution
x=Inverse of A * b (use dot product rule)
if D!=0
, non singular, has an inverse
magnitude of vector v=<a,b>
square root of a^2+b^2
dot product
v.w=(ac)+(bd)
dot product (with cos)
magnitude of v * magnitude of w* cos(theta)
if 2 vectors are orthogonal
dot product =0, cos 90 =0 (perpendicular)
first order linear difference equation (inhomogoneous)
y(n)=a*y(n-1)+b(n)
general solution for linear difference
a^n * y(0)
general solution for b(n)
replacement of equation (NOT general solution), solve for D
when finding overall general solution:
a^n*k-D (substitute y(0), solve for k)
shortest path
bellman algorithm