Maximum sum subarray problem using divide and conquer approach

preview_player
Показать описание
Explanation of Maximum sum subarray problem using divide and conquer approach and its running time
Here we discussed brute force solution and improved running time of algo from cubic to quadratic.
Then we used divide and conquer technique to solve this problem and derived its time complexity to be O(n log n)
Рекомендации по теме
Комментарии
Автор

In the final part: for Crosssum, you mistakenly called the same function instead of max_crossing_subarray.
the video was great! and Informative, Thanks.

pushkarsoni
Автор

Finally, I could understand the "divide and conquer approach". Especially, the "cross-sum" part. Thanks a lot.

dineshsood
Автор

One of the best videos I've seen on this problem. Going from brute force to optimal with clear explanations. Thank you.

Trails
Автор

The only video explains combine step clearly, great job

hoseinkangavarnazari
Автор

In Divide and Conquer approach, the iteration should be i-- ?

arsenalism
Автор

line where cross sum is being calculated - we are passing 4 parameters there ? shouldnt it be just low and high ? 19:20

breezepiano
Автор

for O(n^3) solution, shouldn't the sum be which on simplification gives O(n3).Instead you gave as 1(n)+(n-2)(n-2)+... Please correct me if I am wrong or correct the solution.

viharisunkara
Автор

Hi there, great video.I just have one question, We don’t need to restart sim, when we going to calculate the right sum?

tavaresgilberto
Автор

Great content. This is really helping me in my algorithm course. Hope you continue to upload more algorithm videos.

samuelfils
Автор

how many notes u have pasted on ur wall?
;p

vikashkumaryadav
Автор

Thank you so much.... Your teaching style is very simple and helpful... Best video on this topic as far now....

MrugankNaik
Автор

Correct me if i am wrong but this algo using divide n conquer has been taken from CLRS

ritwikkumar
Автор

Can i send one question which you can help on?

sarthaknagrani
Автор

for(i=mid;i>=low;i--) is correct. you written i++ which will run infinite times

yaswanthkumar
Автор

Can anyone explain the part:
for (i=mid; i>=low; i++). Are we traversing backwards from mid, I thought it may have been for(i=low, i<=mid; i++) or (i=mid; i>=low; i--).

stayfearless
Автор

in 12:26 the 2 and -5 would come in left side and only 8 remain on the right and the same goes for 6, -2 and 5 and even when there are only two elements in array it gets divided into single element

shamanthhegde
Автор

I have collected some doubt regarding Algo...I wanna discus you

sandeepgupta
Автор

Perfectly explained! Please make one on The Skyline Problem using Divide and Conquer algorithm :D

aanandroy
Автор

you explained very clearly thank you so much

thiraviamnatarajan
Автор

Thank You So Much :)
Perfect Explanation

vikkydon
visit shbcf.ru