[Solved]4 Say Given Dimensions N Matrices Mi M Ci X Ri Matrix Two Integer Dimensions C R Want Deci Q37065930

4. Say you are given the dimensions for n matrices, Mi, , A, where M, is a ci x ri matrix, and two integer dimensions C, R. You want to decide whether any product of the Mi’s (possibly with repetitions, and not necessarily including all matrices) has dimensions C × R. (Remember that we can only multiply a q x ri matrix with a c2 x r2 matrix if ri c2. Your algorithm doesn’t have to actually multiply the matrices, just decide whether such a matrix can be written as a product) (7 points for reasonably efficient correct algorithm (with correctness proof), 5 points for correct time analysis, and 3 points for efficiency of your algorithm.) Show transcribed image text 4. Say you are given the dimensions for n matrices, Mi, , A, where M, is a ci x ri matrix, and two integer dimensions C, R. You want to decide whether any product of the Mi’s (possibly with repetitions, and not necessarily including all matrices) has dimensions C × R. (Remember that we can only multiply a q x ri matrix with a c2 x r2 matrix if ri c2. Your algorithm doesn’t have to actually multiply the matrices, just decide whether such a matrix can be written as a product) (7 points for reasonably efficient correct algorithm (with correctness proof), 5 points for correct time analysis, and 3 points for efficiency of your algorithm.)
Expert Answer
Answer to 4. Say you are given the dimensions for n matrices, Mi, , A, where M, is a ci x ri matrix, and two integer dimensions C,… . . .
OR

