Question

In: Computer Science

Given two 2x2 matrices: M=1     21     1,N=-1       2     1   -1 (a).Verify multiplication of M x N...

  1. Given two 2x2 matrices:
    M=1     21     1,N=-1       2     1   -1

(a).Verify multiplication of M x N mod 26 = N x M mod 26 = I (identity matrix)

(b). Use Hill cipher to encrypt the message EXAMS

Solutions

Expert Solution

We know that what is identity matrix, that identity matrix is the matrix whose diagonal elements are always 1.Below are the images for both answers a) and b) .

For hill Cipher,

Solution


Related Solutions

3. Suppose that a divide and conquer algorithm for multiplication of n x n matrices is...
3. Suppose that a divide and conquer algorithm for multiplication of n x n matrices is found such that it requires 6 multiplications and 31 additions of n/2 x n/2 submatrices. Write the recurrence for the running time T(n) of this algorithm and find the order of T(n).
Consider the nonlinear equation f(x) = x3− 2x2 − x + 2 = 0. (a) Verify...
Consider the nonlinear equation f(x) = x3− 2x2 − x + 2 = 0. (a) Verify that x = 1 is a solution. (b) Convert f(x) = 0 to a fixed point equation g(x) = x where this is not the fixed point iteration implied by Newton’s method, and verify that x = 1 is a fixed point of g(x) = x. (c) Convert f(x) = 0 to the fixed point iteration implied by Newton’s method and again verify that...
Given two functions, M(x, y) and N(x, y), suppose that (∂N/∂x − ∂M/∂y)/(M − N) is...
Given two functions, M(x, y) and N(x, y), suppose that (∂N/∂x − ∂M/∂y)/(M − N) is a function of x + y. That is, let f(t) be a function such that f(x + y) = (∂N/∂x − ∂M/∂y)/(M − N) Assume that you can solve the differential equation M dx + N dy = 0 by multiplying by an integrating factor μ that makes it exact and that it can also be written as a function of x + y,...
Prove that if A and B are 2x2 matrices, then (A + B)^(2) = A^(2) +...
Prove that if A and B are 2x2 matrices, then (A + B)^(2) = A^(2) + AB + BA + B^(2). Hint: Write out 2x2 matrices for A and B using variable entries in each location and perform the operations on either side of the equation to determine whether the two sides are equivalent.
create a function in matlab that sums two m x n matrices using nested loops, then...
create a function in matlab that sums two m x n matrices using nested loops, then returns result into a new matrix. Use nesed for loops to add matrices piece by piece. Basically means, dont program simply A+B Function should perform error check to make sure both matrices have same number of rows/ columns.
2. Using matrices, create an algorithm that takes a matrix of dimension N x N and...
2. Using matrices, create an algorithm that takes a matrix of dimension N x N and feed it in a spiral shape with the sequential number from 1 to N^2. Then do an algorithm in PSEint
Write a function such that given a number N, display the N*N multiplication matrix from 1...
Write a function such that given a number N, display the N*N multiplication matrix from 1 to N. Then, write a C++ program such that, it prints the multiplication matrices of numbers 1,4,7, and 10 using a loop concept. Check the sample output below, to see how the program should work. Make sure to have your output exactly the same as the below output.
Let M 2,2 be the set of all 2x2 matrices determine whether the following subspaces. A)...
Let M 2,2 be the set of all 2x2 matrices determine whether the following subspaces. A) the set of all 2x2 diagnol matrices B) the set of all matrices with a12 entry C) the set of all 2x2 triangular matrices
generate the following matrices with given rank and verify with the rank command. Include the Matlab...
generate the following matrices with given rank and verify with the rank command. Include the Matlab sessions in your report as indicated. A) is 8x8 with rank 3. B) is 6x9 with rank 4. C) is 10x7 with rank 5 .
Sketch the graph of the function ?(?)= (2x2-5x+2)/(x+1)2, given the derivatives: ? ′(?) = (9?−9)/(?+1)3 and...
Sketch the graph of the function ?(?)= (2x2-5x+2)/(x+1)2, given the derivatives: ? ′(?) = (9?−9)/(?+1)3 and ? ′′(?) = (36?−18)/(?+1)4 Your sketch should consider the following: ● x- and y-intercepts, if any. ● Horizontal and vertical asymptotes, if any. (Show the computation of any relevant limit.) ● Intervals over which ?(?) is increasing/decreasing. ● Intervals over which ?(?) is concave up/down. ● Relative (local) maximum/minimum points and points of inflection, if any. Identify these clearly on the sketch.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT