Тёмный

Maximum Sum Rectangular Submatrix in Matrix dynamic programming/2D kadane 

Tushar Roy - Coding Made Simple
Подписаться 243 тыс.
Просмотров 203 тыс.
50% 1

Find maximum sum rectangle in 2D matrix.
/ tusharroy25
github.com/mission-peace/inte...
github.com/mission-peace/inte...

Опубликовано:

 

3 май 2015

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 249   
@khaleja26
@khaleja26 7 лет назад
2, 0, 2, -3 maximum sum using Kadence algorithm is 4
@anderson101866
@anderson101866 4 года назад
I believe it just a typo, so it should be 4. It might not be a big problem because it doesn't affect the final answer in this video.
@lakshyaagarwal2005
@lakshyaagarwal2005 4 года назад
Yes it is 4
@biswamohandwari780
@biswamohandwari780 3 года назад
to err is human
@30saransh
@30saransh Год назад
Pain And Suffering, replayed that section 10 times to see how TF it's 5.
@lakshaythegupta
@lakshaythegupta Год назад
@@30saransh 💯🤣
@Official-tk3nc
@Official-tk3nc 4 года назад
if you are watching this in lockdown you are one of the rare species on the earth . many students are wasting their time on facebook, youtube, twitter, netflix, watching movies playing pubg, but you are working hard to achieve something . ALL the best ...nitj student here
@gauravchaudhari9279
@gauravchaudhari9279 4 года назад
True. Thank you and same to you. iiit-h student here
@maythecodesbewithyou29
@maythecodesbewithyou29 4 года назад
all the best for future man
@ayushraj-zb6sv
@ayushraj-zb6sv 4 года назад
bit mesra here!
@rahulkumarchaubey4266
@rahulkumarchaubey4266 4 года назад
Nit jaipur here
@vikashkumarchaurasia1299
@vikashkumarchaurasia1299 4 года назад
NIT jsr here !!
@ranavij
@ranavij 3 года назад
Beautiful! I was looking for a simple explanation, and this is by far the best i've found. Great work!
@Cryogenics12
@Cryogenics12 8 лет назад
Very well done video. Thank you for tracing steps and explaining logic without code. That's really important
@RaviKumar-vk6ib
@RaviKumar-vk6ib 4 года назад
Thanks tushar...you are doing a wonderful job and helping the coding community a lot...big follower of your videos
@harishkumarrayasam
@harishkumarrayasam 9 лет назад
Beautifully explained. Please upload more videos... Will recommend this channel to all my friends...
@golamazamabbasy1565
@golamazamabbasy1565 8 лет назад
loud and clear,awesome
@user-bv6bi2sz8r
@user-bv6bi2sz8r 7 лет назад
Great video, it helps me a lot! The explanation is very thorough.
@hennessytj24
@hennessytj24 8 лет назад
Thanks for posting this video. I found it informative and easy to follow. Great job!
@nitin7829
@nitin7829 2 месяца назад
Coming back to this even after 6 years of college. Big Time Nostalgia !!!
@sanchitjain7204
@sanchitjain7204 7 лет назад
Couldn't be more easier than this. Great job mate !
@nicolaswolyniec1354
@nicolaswolyniec1354 5 лет назад
thanks! I was shocked at the first time for the current sum=5 instead 4, but the best explanation I found! :)
@rajendrab6509
@rajendrab6509 8 лет назад
Became Fan boy of Tushar Roy.. Great Explanation.
@SmartProgramming
@SmartProgramming 5 лет назад
perfectly explained, thanks a lot for this tutorial 👍👍👍👍🙂🙂🙂🙂
@JAYLATHIA
@JAYLATHIA 7 лет назад
Awesome explanation with traces and step-by-step process...
@jy5886
@jy5886 8 лет назад
Definitely the best algo instructor!
@mayur_madhwani03
@mayur_madhwani03 2 года назад
What an explanation It was so clear that I wrote code on my own
@ashishgoyal2711
@ashishgoyal2711 9 лет назад
sir its amazing.... keep doing it lyk this.... thank u so much for the video
@rituagrawal2218
@rituagrawal2218 7 лет назад
As usual; awesome explaination . Thanks Tushar
@JaySolanki91
@JaySolanki91 5 лет назад
This is a really awesome approach!
@youngmoney1990
@youngmoney1990 9 лет назад
Nice initiative dude. I'd advice you to give a proof of concept of the algorithm you are walking through, like why this would actually always work. For some algorithms its trivial but for some it's not. Its always good for the sake of completeness. Like in this example, for every column_start and column_end combination you are finding the maximum submatrix and then taking the max of all those combinations. Anyways, a really good initiative and keep up the good work.
@clusteringmiu
@clusteringmiu 5 лет назад
omg it's 2019 and you are still contributing to the coding noobs like me! Love you~~
@rishabhratan2925
@rishabhratan2925 3 года назад
2021
@lolnoob5015
@lolnoob5015 3 года назад
I'm from the future, 2026
@rizz_z1380
@rizz_z1380 2 года назад
explanation was very clear and I understood the solution in one go. Thanks.
@omkarpanhalkar6837
@omkarpanhalkar6837 7 лет назад
thank you Tushar... You are the best
@shyampatil8399
@shyampatil8399 7 лет назад
This is a great help Tushar. Thanks a lot!
@bhaskarsuthar7600
@bhaskarsuthar7600 8 лет назад
Very nice explanation Tushar. Thanks for sharing.
@harshsahu7825
@harshsahu7825 4 года назад
You really made coding easy. Thanks!!
@abdullahalnayem1849
@abdullahalnayem1849 4 года назад
Thanks brother. You really made coding simple.
@darshitdalal3273
@darshitdalal3273 Год назад
This is such a lovely and lucid explanation.
@vivekpatel8109
@vivekpatel8109 8 лет назад
you are just awesome tushar sir... very very nice explaination
@niranjanagrawal294
@niranjanagrawal294 8 лет назад
Hats off to you bro, you made the dynamic programming so simple!! Loved all your videos .. thanks once again man :-)
@aseemchakrabarthy9455
@aseemchakrabarthy9455 8 лет назад
Really helpful !! Nice explanation ...Thankyou
@durgeshdeep2544
@durgeshdeep2544 8 лет назад
Thanks Tushar !!
@saifurrahmanbhuiyan925
@saifurrahmanbhuiyan925 9 лет назад
the best channel for dynamic programming Bro plz continue . We r benifitted. I need Bitmask dp Thanks
@bogdanrizescu8271
@bogdanrizescu8271 5 лет назад
Well done, Tushar! :D
@Felix-wo7qz
@Felix-wo7qz 3 месяца назад
Very good explanation, very clear. Thank you very much 👍🏻
@harshpanwar1550
@harshpanwar1550 3 года назад
Thanks a ton sir... U made it extremely easy to understand!!!!!!!
@abhimanyushekhawat2626
@abhimanyushekhawat2626 7 лет назад
Yeah you explained it very well but a little intuitive walk through for the algorithm will be great!
@jonathanhoyos8191
@jonathanhoyos8191 9 лет назад
Thanx a lot!!! I really appreciate you to do this
@deshabhaktg6530
@deshabhaktg6530 2 года назад
Thanks for making such a great video. You made problem look really simple,.
@shubhamsingh-nt9mm
@shubhamsingh-nt9mm 6 лет назад
we could'nt ask for more..excellent explaination ..thanks alot,we hope u upload videos on other topics..i know dp is ur fav :P
@jmanuelc1839
@jmanuelc1839 8 лет назад
Great explanation, thank you.
@saumya1857
@saumya1857 8 лет назад
you made the dynamic programming so simple, thank you :)
@vicky501513
@vicky501513 9 лет назад
Thanku Sir.. Amazing explanation..
@petrugurita9728
@petrugurita9728 8 лет назад
Very well explained . Hats off.
@Komachka92
@Komachka92 7 лет назад
It is so perfect explanation! Thank you very much!!
@TheParvMudgil
@TheParvMudgil 4 года назад
How is 2 + 2 = 5 if its perfect? Refer - 02:28
@himanshu222222
@himanshu222222 9 лет назад
thanks a lot sir,.......the explanation is perfect .... thank u .......
@akashmishra5630
@akashmishra5630 9 лет назад
Respect for such nice efforts..
@pramichak6762
@pramichak6762 8 лет назад
The best algo teacher..
@sadmanahmmed2214
@sadmanahmmed2214 8 лет назад
your all vdos r awesome
@vin0summers
@vin0summers 8 лет назад
Amazing description!
@argc
@argc Год назад
amazing algorithm and explanation/video. thanks!
@ZhihongCheng
@ZhihongCheng 9 лет назад
Hi brother, I am your fan! Thanks for the video!
@anyu8109
@anyu8109 8 лет назад
+Zhihong Cheng Me too. He explains those algorithms so clear and easy to understand.
@sandeepvulluri8887
@sandeepvulluri8887 5 лет назад
@@anyu8109 hahaha me tooo!
@nayanjain5761
@nayanjain5761 3 года назад
Tushar Sir you are awesome.
@shekhataul5736
@shekhataul5736 4 года назад
Awesome tutorial, very thanks.
@yeasinmollik502
@yeasinmollik502 6 лет назад
Lots of love bro!!
@rishuinindia
@rishuinindia 8 лет назад
That was perfect !
@TheParvMudgil
@TheParvMudgil 4 года назад
How is 2 + 2 = 5 if its perfect? Refer - 02:28
@yuzhao3648
@yuzhao3648 7 лет назад
thanks! brilliant algorithm
@gobindsingh1792
@gobindsingh1792 6 лет назад
You're Awesome sir!!
@sujatakulkarni5012
@sujatakulkarni5012 9 лет назад
Too good. :)
@SergeyAngelov
@SergeyAngelov 4 года назад
Great explanation!
@sidhantkushwaha2766
@sidhantkushwaha2766 6 лет назад
Excellent explanation.
@muskangupta5873
@muskangupta5873 3 года назад
Amazing explanation sir
@user-dq8tf9sb3s
@user-dq8tf9sb3s 8 лет назад
شرح جميل. شكرا استفدت كتير
@mengqianliu4299
@mengqianliu4299 7 лет назад
Thank you so much for sharing this video
@HimanshukhantwalDeveloper
@HimanshukhantwalDeveloper 8 лет назад
easy explanation.. thanks for the help..
@yaolu5044
@yaolu5044 7 лет назад
Very Nice! Thank You!
@afsarabc
@afsarabc 7 лет назад
EExcellent Explanation.Thanks
@banaaboy6504
@banaaboy6504 3 года назад
Five Stars!!! Thanks from Russia! ))))
@apoorvchaturvedi6614
@apoorvchaturvedi6614 8 лет назад
Another nice explanation....:)
@aritrobanerjee8024
@aritrobanerjee8024 5 лет назад
That was so clever!
@AlokGuptakumar
@AlokGuptakumar 6 лет назад
ignore two errors...video is awesome
@SonuSonu-tk5pk
@SonuSonu-tk5pk 7 лет назад
zabardast samjhate hai aap sir ji
@algorithmimplementer415
@algorithmimplementer415 4 года назад
You are a genius!!
@ErfanHossainShoaib
@ErfanHossainShoaib 9 лет назад
Please add a video for sub squire matrix max sum. Thanks for your best effort .......
@bruce160280
@bruce160280 8 лет назад
Nice explanation man
@princejohn4152
@princejohn4152 2 года назад
When understand same the algorithm from other source, then time complexity of understanding the algorithm is O(n^2). But listening your lecture on same algorith, then time complexity of understanding is reduce to O(n). 🙂🙂🙂
@yernaryerkin147
@yernaryerkin147 3 года назад
THANK YOUUUUUUUUUU, so understandable
@akhileshkumar-xk7so
@akhileshkumar-xk7so 8 лет назад
thank u very much.... u r awesome
@sonicabathija4464
@sonicabathija4464 9 лет назад
simply justt waaooo explanation......
@shilinwang2958
@shilinwang2958 3 года назад
NICE explanation
@saifurrahmanbhuiyan925
@saifurrahmanbhuiyan925 9 лет назад
When, L = 0 and R = 0. isn't the max sum 4? Why is it 5?
@KrishanaKantPareek
@KrishanaKantPareek 9 лет назад
***** No.
@VishalSharma-hq5ti
@VishalSharma-hq5ti 4 года назад
yes, its 4
@dumbskull5593
@dumbskull5593 3 года назад
Yea, I'm pretty sure the max sum's supposed to be 4. He might have just made a typo.
@SnapSHORT1
@SnapSHORT1 3 года назад
ignore it
@Hameddelavar99
@Hameddelavar99 Год назад
I appreciate about this understandable video
@siddharthagarwal8662
@siddharthagarwal8662 9 лет назад
great explanation...
@prinzmukka
@prinzmukka 9 лет назад
Excellent !!
@rajatsran5213
@rajatsran5213 3 года назад
thanks bro nice explanation
@clyt9636
@clyt9636 9 лет назад
great explanation Tushar! But can you explain how you come up with the algorithm. The intuitions that guide you towards this approach.
@JoanFFF
@JoanFFF 4 года назад
bro you are so good
@federicoteotlhamelius677
@federicoteotlhamelius677 7 лет назад
VERY helpfull!
@shuxuannie1470
@shuxuannie1470 7 лет назад
best of the best!
@sajaljayanto7953
@sajaljayanto7953 8 лет назад
I like it .. good one.
@dvnsravan
@dvnsravan 8 лет назад
nice explanation
@Raj-ev8um
@Raj-ev8um 8 лет назад
thanks for the video Tushar...! if the size of sub-matrix is already given then what can be the best approach to solve this problem. ( i think naive approach will cost n^4 ).
@koustavchatterjee2907
@koustavchatterjee2907 9 лет назад
Hello tushar, I am waiting for suffix array video tutorials .Thanks
@srikanthvelpuri2973
@srikanthvelpuri2973 2 года назад
Good Explanation
@MOHDSALMAN-sj2zu
@MOHDSALMAN-sj2zu 8 лет назад
I found this link on geeksforgeeks, u explained this algorithm much better than geeks , it really helped me to understand what actually is going on. Will u plz make more videos of some difficult article which r on geeksforgeeks
@bhagwatkumarsingh2820
@bhagwatkumarsingh2820 8 лет назад
Hi Tushar , It was a great help from your tutorial . I understand the logic so cool that I was able to write the code in one go.
@yanivgardi9028
@yanivgardi9028 8 лет назад
great video. thanks
@darkprince2703
@darkprince2703 Год назад
The video was really good but the answer for the first iteration curr_sum is 4
@ophuc9555
@ophuc9555 Год назад
really helpful!
Далее
Egg Dropping Dynamic Programming
11:17
Просмотров 198 тыс.
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌇
3:16:26
2D Prefix Sum and Submatrix Sum Queries
5:12
Просмотров 4,2 тыс.
🎙ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ🌇
3:16:26