ALGEBRA
74 flashcards · Other · by Minh Đức
dot product of vector A(a1,a2) and vector B (b1,b2) is a1.b1 + a2.b2
norm of vector A(n1,n2,n3,....n) is what ?
sqrt(n1^2 + n2^2 + ..... n^2)
if vector u and v are orthorogal, so u.v = 0 and the angle between them is 90
let Phi is the angle between 2 vector u and v. cos(Phi) = ?
(u- . v-) / ([u].[v])
when will a les has no solution
when the last row is 0, but the value of that row is != 0
when will a les has 1 solution
rank = numbers of variables
when will a les has infinite solutions
rank < numbers of variables
how to A-1 of A
convert (A|I) to (I| A-1)
when a matrix is not invertible
equal row equal column zero row
how to find the determinant of m*n matrix
pick a row or column that contains the most 0s take the sum of all the element with their cofactors
If a multiple of one row (column) of A is added to another row (column) to produce a matrix B, then det (B) = det(A) If two rows of A are interchanged to produce B, then det(B) = -det(A) If one row of A is multiplied by k to produce B, then det(B) = k.det(A)
if A is a diagonal matrix, upper triangular or lower triangular ,det(A) = product of the main diagonal
det(I) = 1
det(A.B) = det(A).det(B)
det(A-1) = 1/det(A)
A n*n, det(k .A) = k^n.det(A)
det(A + B) != det(A) + det(B)
when a A is invertible/regular => det(A) != 0, Ax =b has unique solution
when will the determinant of a matrix is equal to 0
consist of 0 row(column) equal row or equal column one row is a multiple of another row one row is linear combination of other rows
how to find solution for les by using determinant
x = |d1| / |A|, y = |d2| / |A|, ..... n = |dn| / |A|. d1,d2,dn is the matrix that we obtain when replace the b column to the ith column of A
how to find inverse of a matrix by using determinant
adj(A) / det(A)
how to find adjoint of a matrix
transpose of the cofactor of matrix A
how to find the area of parallelogram by using determinant for vector a(1,2) and b(3,4)
abs(det({1,3}, {2,4})
how to find volumn of parrallelogram spanded by vectors: v1,v2,v3,...,vn
det(v1,v2,...,vn)
check for linearly dependent or not? det = 0 -> dependent, det != 0 -> independent
how to prove subspace
check does it contain zero check does it close under addition check does it close under multiplication
a few properties of linenearly dependence: null is linearly independent {0} is linearly dependent
let S be a spanning set of a vector space V with K elements. Any set of K' > K elements is linearly dependent.
any basis of 1 vector space have the same number of elements
number of elements in a basis of V is called what ?
the dimension of V
when S will be basis of V
span(S) = V S is linearly independent
S is a basis of V, u belongs to V, so u is linear combination of elements of S
let S = {v1,v2,...,vk} be a basis for V. u = a1.v1 + a2.v2 + a3.v3 + ....... so what (a1,a2,a3,....,ak) is called ?
coordinates of u corresponding to the basis
If S = {v1,v2,...,vk} is a spanning set of V and if S is a maximal subset of linearly independent elements, then S is a basis of V
given matrix A, what is null space of A ?
set of all solution in Ax = 0
given matrix A, what is column(row) space of A ?
all linear combinations of the column(row) of A
if xp is solution to Ax = b. So every soltution of Ax = b can be written as x=xp+xh where Xh is solution of homonogenous equation.
for finding basis for Null(A)
1. Find the reduced echelon-form 2. Write dependent variables in terms of free variables 3. Find general solution to Ax = 0 in term of free variables. 4. Decompose the general solution vector into a linear combination of vectors where the coefficients are the free variables. 5. Vectors in the above step form a basis for Null(A)
for finding basis for column(row) of A
transform A into row echolon form basis of column(row) is spanning set of pivot - row(column) of (A)
how to find null space of A
N(A) = N(rref(A)) write free variables in terms of dependent variables write solution set in terms of linear combination of free variables N(A) = span({vectors of free variables in step 3})
when will it be linearly independent
Ax = 0 has one unique solution 0 N(A) contains only 0 det(A) != 0
what is dim(N(A))
number of non pivot columns
what is dim(C(A))
= dim(row(A)) = rank = numbers of pivots
what to check to prove linear mapping
f(a+b) = f(a) + f(b) f(c.a) = c.f(a)
matrix form for rotation counter clockwise. A =
cos -sin sin cos
matrix form for rotation clockwise A =
cos sin -sin cos
ways to check properties of relation on a matrix reflexive symmetric antisymmetric transitive
diagonal must be 1 it is symmetric through the diagonal the elements that reflect through diagonal must be either 0 or both 0, cannot be both 1 the product of the square matrix must be a subset of the initial matrix
how to find transitive closure by using matrix representation ( naive algortihm) , with |A| = n
M1 or M2 ..... Mn ( boolean disjunction) if Mi+1 = Mi then stop and just take into account from M1 to Mi
how to find transitive closure by using Warshall algorithm
find Mn recursively Mn = Mn-1 + các pair có elementh thứ n làm trung gian
what is partial ordering relation
relation that is reflexive antisymmetric transitive
given a set A and a partial order relation R, a,b belongs to A a,b are comparable when ............ otherwise they are ............
aRb or bRa (linearly ordered) incomparable
if p is a prime number and p | a.b => ?
p | a and p | b
if p is a prime number and p | a^r => ?
p | a
how to find gcd(a,b) and lcm(a,b)
factorise a and b into product of prime number gcd = product of the primes with min power lcm = product of the primes with max power
euler toition function , if p,q is a prime number phi ( p ) = phi ( pk ) = phi (p.q) =
p - 1 pk - pk-1 (p-1) (q-1)
(a+b) mod n =
(a mod n + b mod n ) mod n
(a.b) mod n =
(a mod n . b mod n ) mod n
ar mod n =
(a mod n)r mod n
Fermat little theorem:
ap-1 == 1 mod p if p is prime and a is not divisible by p describe the initial power to the p-1
a^n mod b, there are 2 ways to calculate, ferma little and human method, when to use each one ferma little: .......... human method:.......
if b is prime if b is not prime
for calculating exponential modular, when using human method, how to do it ?
tìm a1,2,3,4 sao cho an mod n = 1(best), -1(quite good), -2 ,2 biễu diễn số mũ ban đầu theo n
quick way to check relative prime
use euclid method , gcd(a,b) = 1 then a and b are relative prime
according to euclid algo: gcd(a,b) =
gcd(b, a mod b)
euler theorem:
aphi(n) mod n = 1
properties of a group (G,*)
closed under * associative has the identity element such that a* I = a
what is order of a group
the number of elements in that group
the order of the group (Zn*, *) is
phi(n)
if p is a prime then ap congruent a mod p
an element a of group Zn is multiplicative inverse iff
gcd(n,a) = 1
for ceasar cipher: k is private key, using modulo n encryption: decryption:
y = (x+k) mod n x = (y-k) mod n
for turing cipher version 2: k is private key, using modulo n encryption: decryption: conditon for k:
y = (x.k) mod n x = (k-1 * y) mod n gcd(k,n) = 1
for the affine cipher: k = (a,b) is private key, using modulo n: encryption: decryption: condition:
y = (ax+b) mod n x =a-1(x-b) mod n gcd(a,n) = 1
Steps of choosing keys for RSA cryptosystem:
step 1: choose p and q are large co-prime step 2: n = p.q step 3: choose public key e such that gcd(e, phi(n)) = 1 step 4: choose private key d such that e.d = 1 mod(phi(n))
RSA cryptography with x is the plain text, e is public key, d is private key, modulo n ecryption: decryption:
ecryption: y = xe mod n decryption: x = yd mod n