Question
An m×n
array A
of real numbers is a Monge array if for all i,j,k,
and l
such that 1≤i<k≤m
and 1≤j<l≤n
, we have
>A[i,j]+a[k,l]≤A[i,l]+A[k,j]>

In other words, whenever we pick two rows and two columns of a Monge array and consider the four elements at the intersections of the rows and columns, the sum of the upper-left and lower-right elements is less than or equal to the sum of the lower-left and upper-right elements. For example, the following array is Monge:
>>10>17>24>11>45>36>7517222813443366131622632195128293417372153232324723634>>
Prove that an array is Monge if and only
An m x n array A of real numbers is a Monge array if for all i, j, k, and I such that lsi<km and 1 sj<Is n, we have > Ali,jl
1. Prove that an array is Monge if and only i for all i-1,2,....m- 1, and - 1,2, , n - 1 we have (Hint: For the if part, us
2. Here is a description of a divide-and conquer algorithm that computes the leftmost minimum element in each row of an m X n
An m x n array A of real numbers is a Monge array if for all i, j, k, and I such that lsi In other words, whenever we pick two rows and two columns of a Monge array and consider the four elements at the intersections of the rows and columns, the sum of the upper-left and lower-right elements is less than or equal to the sum of the lower-left and upper-right elements. For example, the following array is Monge: >10 17 13 28 23 > 17 22 16 29 23 >24 28 22 34 24 13 6 17 7> 45 44 32 37 23 36 33 19 21 6 75 66 51 53 34>
1. Prove that an array is Monge if and only i for all i-1,2,....m- 1, and - 1,2, , n - 1 we have (Hint: For the "if" part, use induction seperately on rows and columns) 1. The following array is not Monge Change one element in order to make it Monge. (Hint: Use part (a).) 37 23 22 32 21 6 710 53 34 30 31 32 13 96 43 21 15 8 1. Let f(i) be the index of the column containing the leftmost minimum element of the row i. Prove that f(l) 3f(2) ...f(m) for any m xn Monge array
2. Here is a description of a divide-and conquer algorithm that computes the leftmost minimum element in each row of an m X n Monge array A: Construct a submatrix A of A consisting of the even-numbered rows of A. Recursively determine the leftmost minimum for each row in A.Then compute the leftmost minimum in the odd-numbered rows of A Explain how to compute the leftmost minimum in the odd-numbered rows of A (given that the leftmost minimum of the even-numbered rows is known) in O(m+n) time. 1. Write the recurrence describing the running time of the algorithm described in part (d). Show that its solution is O(m + n log m).
0 0
Add a comment Improve this question Transcribed image text
Answer #1

AnsweGiven Nonge anay 0713 a8 3 69 3 31 | 2.3 36 | 33 | 13, 7S1 66SS3 * ps ove that an anty vろMonge iff for all assume thatFes the fnductive Caie, ak utu e that equationの s true for sonne We rua vel Asimilas unient Cin du ction on the Colem TherefoChange 13 to la in cider make frasmenge ヴ1 Proof : A unit by Ctnti adiction that tfu JA, tint u e. Than let t be the nnalleto be Ts Column inde For the unning tinie, note that tre Outer loop 、ㅅ executed O (n) tinu Cone toi eacP Odd i,and a fotal of

Add a comment
Know the answer?
Add Answer to:
An m×n array A of real numbers is a Monge array if for all i,j,k, and l such that 1≤i<k≤m and ...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8...

    Question 1 a. Define the following matrices in a script file (M-file), ? = ( 8 9 10 11; 23 9 16 15 ;11 12 3 6; 1 2 8 9 ) ? = ( 2 21 7 15; 12 4 8 22; 23 9 5 13; 23 4 21 22) ℎ = (4 9 12 15) b. Add suitable lines of codes to the M-file to do the following. Each of the following points should be coded in only...

  • Using Matlab Write a program which will: a. Accept two numbers from the user m and...

    Using Matlab Write a program which will: a. Accept two numbers from the user m and n b. Define an array with the dimensions a(n,m) and fill it with random numbers in the range of -100 to 100 inclusive. c. Provide the user the following menu from which he can select: 1. Sum of all elements in the array. Print the result. 2. Sum of the element in a row that he’ll specify. Print the result. 3. Sum of the...

  • Using MATLAB 15. Write a program that: a. b. c. Accept two numbers n and m...

    Using MATLAB 15. Write a program that: a. b. c. Accept two numbers n and m in the range of 1-6 Define three arrays A, B and Cof size n by m. (n-# of rows, m-H of columns) Fill the elements of array A by A(ij)-itj i-5 d. Fill the elements of array B by B(ij)ij e. Fill the elements of array C with the average of the corresponding elements of A f. g. h. and B Print the results...

  • #include "stdio.h" int main() { float array[5][3],rowsum=0.0,colsum=0.0; int i,j; for(i=0;i<5;i++){ printf("Enter the %d elements of array:\n",i);...

    #include "stdio.h" int main() { float array[5][3],rowsum=0.0,colsum=0.0; int i,j; for(i=0;i<5;i++){ printf("Enter the %d elements of array:\n",i); for(j=0;j<3;j++){ scanf("%f",&array[i][j]); } } printf("Given table data:\n"); for(i=0;i<5;i++){ for(j=0;j<3;j++){ printf(" %0.1f",array[i][j]); } printf("\n"); } for(i=0;i<5;i++){ for(j=0;j<3;j++){ rowsum=rowsum+array[i][j]; } printf("sum of the %d row is %0.1f\n",i,rowsum); rowsum=0; } for(j=0;j<3;j++){ colsum+=array[j][i]; printf("Sum of %d coloumn is %0.1f\n",j,colsum); colsum=0; } return(0); } can someone help me to get the correct row sum and column sum in c program

  • Assume L is an array, length(L) returns the number of records in the array, and qsort(L,i,j)...

    Assume L is an array, length(L) returns the number of records in the array, and qsort(L,i,j) sorts the records of L from i toj (leaving the records sorted in L) using the Quicksort algorithm. What is the average-case complexity for the following code fragment? for (i = @; i<length(L); i++) asort(1, 0, 1); Consider the time for each pass of the for loop, and sum them all together. Prove the upper and lower bound, then argue for an average case....

  • 3. A Latin square of order n with entries in Z is called idempotent if the entries on the main diagonal from upper...

    3. A Latin square of order n with entries in Z is called idempotent if the entries on the main diagonal from upper left to lower right are 0, 1, 2, . . . , n-1 in that order. (a) Prove that any symmetric idempotent Latin square must have odd order (b) Let n -2m +1 for a positive integer m. Construct the nx n array A whose i,j entry is given by (m +1) (i+j (mod Prove that this...

  • C# 1. Given two lengths between 0 and 9, create an rowLength by colLength matrix with...

    C# 1. Given two lengths between 0 and 9, create an rowLength by colLength matrix with each element representing its column and row value, starting from 1. So the element at the first column and the first row will be 11. If either length is out of the range, simply return a null. For exmaple, if colLength = 5 and rowLength = 4, you will see: 11 12 13 14 15 21 22 23 24 25 31 32 33 34...

  • please answer in Java..all excercises. /** * YOUR NAME GOES HERE * 4/7/2017 */ public class...

    please answer in Java..all excercises. /** * YOUR NAME GOES HERE * 4/7/2017 */ public class Chapter9a_FillInTheCode { public static void main(String[] args) { String [][] geo = {{"MD", "NY", "NJ", "MA", "CA", "MI", "OR"}, {"Detroit", "Newark", "Boston", "Seattle"}}; // ------> exercise 9a1 // this code prints the element at row at index 1 and column at index 2 // your code goes here System.out.println("Done exercise 9a1.\n"); // ------> exercise 9a2 // this code prints all the states in the...

  • I need help writing these functions in C programming. Write a C function that checks if...

    I need help writing these functions in C programming. Write a C function that checks if an array is sorted or not using an iterative approach. Write a C function that checks if an array is sorted or not using a recursive approach Write a C function to reverse the elements of an array. Note you are not allowed to use an 1. additional array to do that Write a C function to find the sum of the elements of...

  • Let M be an n x n matrix with each entry equal to either 0 or 1. Let mij denote the entry in row i and column j. A diago...

    Let M be an n x n matrix with each entry equal to either 0 or 1. Let mij denote the entry in row i and column j. A diagonal entry is one of the form mii for some i. Swapping rows i and j of the matrix M denotes the following action: we swap the values mik and mjk for k = 1,2, ... , n. Swapping two columns is defined analogously. We say that M is rearrangeable if...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT