@ aditya kumar:

can you give the algorithm  about how to get the sub matrix?? i know how to
get the max sum from an array..but how to do it to find the sub matrix with
max sum??

On Sat, Sep 17, 2011 at 5:07 PM, aditya kumar
<aditya.kumar130...@gmail.com>wrote:

> i guess kadane's algo doesnt tell u abt the subarray element instead it
> tells abt max sum of subarray . to get the element of subarray store the
> end_offset whenever your max_sum changes .
>
>
> On Sat, Sep 17, 2011 at 4:47 PM, sukran dhawan <sukrandha...@gmail.com>wrote:
>
>> kadane s algo
>>
>>
>> On Sat, Sep 17, 2011 at 3:25 PM, prasanth n <nprasnt...@gmail.com> wrote:
>>
>>> given a matrix with +ve and -ve numbers, find the submatrix with maximum
>>> sum??
>>>
>>> --
>>> *prasanth*
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Algorithm Geeks" group.
>>> To post to this group, send email to algogeeks@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> algogeeks+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/algogeeks?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
*prasanth*

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

Reply via email to