Explanation of Solution
a.
Symmetric matrix:
An
Now, consider a matrix
Now the product
If the elements of this product matrix are
To show this, consider a
Then transpose is as follows:
Therefore, multiplication is,
Explanation of Solution
b.
Symmetric matrix:
Now taking the same matrix as in part (a.), we have
Trending nowThis is a popular solution!
Chapter 2 Solutions
Introduction to mathematical programming
- Given a 2-D square matrix: ant mat{3}[{3]={{1, 2 3} {4,586}, {7.8.9FF Write a function transpose which Create a 3*3 matrix trans and store the transpose of given matrix in it.And prxnt the ' transpose, IN C++.arrow_forwardLet A be an m × n matrix with m > n. (a) What is the maximum number of nonzero singular values that A can have? (b) If rank(A) = k, how many nonzero singular values does A have?arrow_forwardConsider the chain of matrices below. M = M1 x M2 x M3 x M4 [15 x 5] [5 x 25] [25 x 30] [30 x 45] (a) Show the complete table used by the dynamic programming algorithm for the matrix chain problem.arrow_forward
- Type in Latex **Problem**. Let $$A = \begin{bmatrix} .5 & .2 & .3 \\ .3 & .8 & .3 \\ .2 & 0 & .4 \end{bmatrix}.$$ This matrix is an example of a **stochastic matrix**: its column sums are all equal to 1. The vectors $$\mathbf{v}_1 = \begin{bmatrix} .3 \\ .6 \\ .1 \end{bmatrix}, \mathbf{v}_2 = \begin{bmatrix} 1 \\ -3 \\ 2 \end{bmatrix}, \mathbf{v}_3 = \begin{bmatrix} -1 \\ 0 \\ 1\end{bmatrix}$$ are all eigenvectors of $A$. * Compute $\left[\begin{array}{rrr} 1 & 1 & 1 \end{array}\right]\cdot\mathbf{x}_0$ and deduce that $c_1 = 1$.* Finally, let $\mathbf{x}_k = A^k \mathbf{x}_0$. Show that $\mathbf{x}_k \longrightarrow \mathbf{v}_1$ as $k$ goes to infinity. (The vector $\mathbf{v}_1$ is called a **steady-state vector** for $A.$) **Solution**. To prove that $c_1 = 1$, we first left-multiply both sides of the above equation by $[1 \, 1\, 1]$ and then simplify both sides:$$\begin{aligned}[1 \, 1\, 1]\mathbf{x}_0 &= [1 \, 1\, 1](c_1\mathbf{v}_1 +…arrow_forwardLet f ∈ C+ 2π with a zero of order 2p at z. Let r>p and m = n/r. Then there exists a constant c > 0 independent of n such that for all nsufficiently large, all eigenvalues of the preconditioned matrix C−1 n (Km,2r ∗ f)Tn(f) are larger than c.arrow_forwardIf matrix A is a 2 x 3 matrix, it can be multiplie by matrix B to obtain AB only if matrix B has:A. 2 rowsB. 2 columnsC. 3 rowsD. 3 columnsarrow_forward
- Given a matrix of dimension m*n where each cell in the matrix can have values 0, 1 or 2 which has the following meaning: 0: Empty cell 1: Cells have fresh oranges 2: Cells have rotten oranges So we have to determine what is the minimum time required so that all the oranges become rotten. A rotten orange at index [i,j] can rot other fresh orange at indexes [i-1,j], [i+1,j], [i,j-1], [i,j+1] (up, down, left and right). If it is impossible to rot every orange then simply return -1. Examples: Input: arr[][C] = { {2, 1, 0, 2, 1}, {1, 0, 1, 2, 1}, {1, 0, 0, 2, 1}}; Output: All oranges cannot be rotten. Below is algorithm. 1) Create an empty Q. 2) Find all rotten oranges and enqueue them to Q. Also enqueue a delimiter to indicate beginning of next time frame. 3) While Q is not empty do following 3.a) While delimiter in Q is not reached (i) Dequeue an orange from queue, rot all adjacent oranges. While rotting the adjacents, make sure that time frame is incremented only once. And time frame is…arrow_forwardProblem 1) Change the diagonal elements of a 3X3 matrix to 1. Diagonal elements of the example matrix shown here are 10, 8, 2 10 -4 0 7 8 3 0 0 2 Read the given values from input (cin) using for loops and then write your code to solve the diagonal.arrow_forwardWrite down the tensor expression for the following matrix operations. Where A,B are 3 × 3, C is 3 × 4, and D is 4 × 7 matrices. And for a matrix M, its i-th row j-th column component will be denoted as M_ij . (a) det(A · B^T ).(b) Tr[A · B].(c) B · C · D, and explicitly spell out all the index summation.(d)δ_ii =?(e) ϵ_ijkϵ_ijk =?arrow_forward
- Draw the graph from the adjacency matrix given below. Handwritten please.arrow_forwardPls Use Python If there is a non-singular matrix P such as P-1AP=D , matrix A is called a diagonalizable matrix. A, n x n square matrix is diagonalizable if and only if matrix A has n linearly independent eigenvectors. In this case, the diagonal elements of the diagonal matrix D are the eigenvalues of the matrix A. A=({{1, -1, -1}, {1, 3, 1}, {-3, 1, -1}}) : 1 -1 -1 1 3 1 -3 1 -1 a)Write a program that calculates the eigenvalues and eigenvectors of matrix A using NumPy. b)Write the program that determines whether the D matrix is diagonal by calculating the D matrix, using NumPy. Ps: Please also explain step by step with " # "arrow_forwardWrite a Java program that checks whether the relation of a matrix is reflexive, irreflexive, symmetric, anti-symmetric, asymmetric and transitive. (and get the square matrix)arrow_forward
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks Cole