Let A be a real valued matrix of order n*n already stored in memory.
Its (i, j)-th element is denoted by a[i, j]. The elements of the
matrix A satisfy the following property:

Let the largest element in row i occur in column l_i. Now, for any two
rows i_1, i_2, if i_1<i_2, then l_i_1<=l_i_2.

(a)
2 6 4 5 3
5 3 7 2 4
4 2 10 7 8
6 4 5 9 7
3 7 6 8 12

(b)

Row I l(i)
1 2
2 3
3 3
4 4
5 5

Figure shows an example of (a) matrix A, and (b) the corresponding
values of l_i for each row i.

Write an algorithm for identifying the largest valued element in
matrix A which performs at most O(n*logn) comparisons.

Plz give the detailed design.

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to