Traveling Salesman Problem using Dynamic Programming | DAA

  Рет қаралды 555,244

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Discussed Traveling Salesman Problem -- Dynamic Programming--explained using Formula.
TSP solved using the Brute Force method and Dynamic Programming approach
Time Complexity using DP approach would be O(2^n * n^2)
See Complete Playlists:
Placement Series: • Placements Series
Data Structures and Algorithms: https: • Data Structures and Al...
Dynamic Programming: • Dynamic Programming
Operating Systems: // • Operating Systems
DBMS: • DBMS (Database Managem...
Connect & Contact Me:
Facebook: / jennys-lectures-csit-n...
Quora: www.quora.com/...
Instagram: / jayantikhatrilamba

Пікірлер: 298
@cse47ritikpal85
@cse47ritikpal85 3 жыл бұрын
You are really very good teacher of data structure & algorithms. I learn very soon from your explanations. Thanks a lot ma'am for your without paid teaching, may God bless you .
@VinodKumar-fn2iq
@VinodKumar-fn2iq 3 жыл бұрын
My Teacher posted this link in our Google classroom 😂
@anirudhakulkarni9134
@anirudhakulkarni9134 3 жыл бұрын
Same for me...I don't know why we are paying them...I am doing my engineering through online material and YT
@harshkamboj8044
@harshkamboj8044 3 жыл бұрын
Same here
@chenchuladeepika9782
@chenchuladeepika9782 3 жыл бұрын
Everything.... Google 🧘‍♀️
@waterspray5743
@waterspray5743 3 жыл бұрын
@@anirudhakulkarni9134 You're paying them to take exams. lol
@shrutisharma3962
@shrutisharma3962 3 жыл бұрын
😂😂😂😂😂😂
@RathourShubham
@RathourShubham 5 жыл бұрын
beauty with brain❤️❤️❤️ Edited : U too take care!!!
@sunnybambooflute
@sunnybambooflute 3 жыл бұрын
this is again the easiest-to-understand video I found. Thank you Jenny!
@yatinplays7606
@yatinplays7606 2 жыл бұрын
Mam app kitne cute ho🤧 sab samaj agaya vaise thx🤧
@justpurs2306
@justpurs2306 4 жыл бұрын
After watching your tutorials a lot....I got something very clear... You explain things more beautifully than Abdul Bari... He teaches well also... your tutorials look similar to him... but you are good at explaining... and thanks ... Lots of Love from...Balochistan
@shalsteven
@shalsteven 2 жыл бұрын
Where is the dynamic programming part of this solution? Did you store any previous calculated value?
@ddjampani5480
@ddjampani5480 2 жыл бұрын
There is no such case for storing and reusing bro, it is just a recursive approach
@shalsteven
@shalsteven 2 жыл бұрын
@@ddjampani5480 this video title is "dynamic programming"
@himanshumangoli6708
@himanshumangoli6708 Жыл бұрын
How time complexity is order of n to the power n
@crazydrifter13
@crazydrifter13 5 жыл бұрын
Mam this video also has relative content loudness of -3.5db. Many of us are watching you on mobiles and laptops without earphones. Please give some efforts on good video editing and processing too. Thanks.
@juanj.sanchez2216
@juanj.sanchez2216 10 ай бұрын
I came to learn optimization and ended up falling in love with the beautiful lady 😞
@AshutoshKumar-ne5wv
@AshutoshKumar-ne5wv 4 жыл бұрын
Your teaching skill osam keep it up...... I am an 3rd year engineering student so this day's you help me lot of So I just say love you ❤️❤️❤️❤️
@joels978
@joels978 3 жыл бұрын
Awesome and intuitive explanation that beats all the others I found on KZbin for this topic. Thanks so much!
@nishitkashyap8748
@nishitkashyap8748 3 жыл бұрын
Seeing this before my seminar now I feel confident, Thanks a lot Mam ❤
@anonymousfan9703
@anonymousfan9703 Жыл бұрын
Aaya hai bhai Dil vala emoji Kya baat ha bhai
@sharonlul8181
@sharonlul8181 5 жыл бұрын
Plz do a topic on traveling salesman with branch and bound method
@rohan8758
@rohan8758 4 жыл бұрын
your explanation is too good & you deliver your knowledge in simple terms, thank you madam..
@santhoshk2722
@santhoshk2722 Жыл бұрын
Helped me a lot Thank you
@supriya3665
@supriya3665 3 жыл бұрын
Mam .. in previous coin problem video for finding maximum number of ways , .... You told there is 1 way to get the amount 0 .. But in this video , you are telling there are 0 ways to get the amount 0 .. Can u explain me this clearly mam
@dhanushh2171
@dhanushh2171 Жыл бұрын
Sometimes when people first hear about the Traveling Salesman problem, they think: "Oh, that's not hard. Start with a city on the map; move to the nearest unvisited city; and then on each subsequent step, move to the nearest still-unvisited city, until you're done." This strategy is called a "greedy strategy": it always goes to the nearest allowed step. Now consider four cities, all placed along the number line. City A is at point 0, City B at point 2, City C at point 3, and City D at point 10: A B C D 00-01-02-03-04-05-06-07-08-09-10 Now, start a traveling salesman tour at City B, and use the greedy algorithm to choose your tour of the four cities, beginning and ending at B. How long is the greedy algorithm’s tour? Can you answer me, mam
@nishantsaxena7500
@nishantsaxena7500 5 жыл бұрын
i want to give u one suggestion please give link of code also so that students can also visit it understand how to write program for given algorithm.. which will really helpful ...
@esgmodiyt1359
@esgmodiyt1359 5 жыл бұрын
Mam aapse pyar ho gya h😍😍
@supernova7870
@supernova7870 4 жыл бұрын
Mam, how is this a DP problem , i mean that was just a Recursion thing in which you took Decision Tree to give a understanding of the problem , you didn't used any Top or Bottom approach ??
@digitalnomad303
@digitalnomad303 4 жыл бұрын
DP should be removed from the video title.
@girishdama1778
@girishdama1778 4 жыл бұрын
Yes, same doubt 🧐
@aidaahmadiaraghi
@aidaahmadiaraghi 3 ай бұрын
you are the best teacher
@falonlisten3269
@falonlisten3269 Жыл бұрын
Thank you Jenny
@tppt3987
@tppt3987 5 жыл бұрын
You're too cute.
@biswadeepchakraborty5354
@biswadeepchakraborty5354 5 жыл бұрын
Hello ma'am according to the tree you represented there are few methods like g(C, D) has been used twice to calculate the result in each recursive call. So can we just hold the first result and apply this during its second call to decrease time complexity or we are recalculating the methods over and over. And what approach is this whether top to down or bottom up approach
@nandanbanerji8309
@nandanbanerji8309 3 жыл бұрын
Yes, exactly you should do it, as it saves computational cost with respect to recursive calls. That is the primary difference with Recursive approach and DP.
@Ghouse0312
@Ghouse0312 Жыл бұрын
Thank you so much Ma'am All concept clear I watched your 0/1 knapsack problem using Dynamic programming It's very helpful Thank you ma'am ❤❤ I shared this with my friends too 😊😊
@nirmaltom4424
@nirmaltom4424 4 жыл бұрын
👏🏻👏🏻👏🏻 Better than our college faculty....Thank you mam.. Worth subscribing.. Worth video 👍👍🤓❤️
@NitinKumarVasdhani
@NitinKumarVasdhani Жыл бұрын
Ma'am last vo A pe vapis toh lotke aaya hi nahi ma'am🙄🙄
@levi-lb6dp
@levi-lb6dp 5 жыл бұрын
Mam starting me appke awaaz ko kya ho jata hai bohot irrating lgta hai
@cri789
@cri789 Жыл бұрын
Mind blowing explainition
@irishjoybvillanueva8417
@irishjoybvillanueva8417 3 жыл бұрын
i did not skip the ads because u have really taught me.
@shaikzohab2967
@shaikzohab2967 Жыл бұрын
Can we choose any one method or two methods ?
@amritpalsingh7262
@amritpalsingh7262 4 жыл бұрын
Great video👌😍, plz upload a series on Fibonacci heap and binomial heap I'll greatly appreciate it. Thanks 🙏
@shashikantkumar1417
@shashikantkumar1417 4 ай бұрын
Her eyes can easily attract me😂😂
@NaveenPGForYou
@NaveenPGForYou 29 минут бұрын
How was the matrix calculated? Why is A to B 16 and reverse just 8? This is not clear.
@xoxo_kylie
@xoxo_kylie 3 жыл бұрын
If only my teacher explained to me this clearly in class i would be somewhere now.... Thanks madam for breaking down a complex problem so intuitively
@shrinathgaikwad8028
@shrinathgaikwad8028 Жыл бұрын
Great teaching techniques and skills mam
@brahmareddythumu9885
@brahmareddythumu9885 4 жыл бұрын
Please upload all concepts on DAA and computer networking
@SASIPRATHEEK
@SASIPRATHEEK 7 ай бұрын
Oh 🎉 Jenny:
@haadbajwa7565
@haadbajwa7565 3 жыл бұрын
Mathematics makes a simple problem so complicated
@johnmctavish1021
@johnmctavish1021 2 жыл бұрын
Isn't this essentially Brute-Force only? You essentially analyzed all possible paths.
@nishantsaxena7500
@nishantsaxena7500 5 жыл бұрын
Good Work jenny .. hope soon your subscribers or views will be in millions :)
@akshitmangotra5370
@akshitmangotra5370 4 жыл бұрын
mam could you please suggest me from where you have read and understood the concepts. You are damn well explaining and i want to learn this subject more deeply.So suggest me a website or books or the best place u know so that it increases my conceptual and coding skills in DSA
@Nam_David
@Nam_David 6 ай бұрын
Ms. Jenny, your explanation is absolutely clear. Thank you
@abhishekmahawadi7670
@abhishekmahawadi7670 5 жыл бұрын
Good and easy explanation
@VinodThakurGaming
@VinodThakurGaming 5 жыл бұрын
Shimla 😌 I live in Shimla 😅 ..
@RahulKumar-ck1hr
@RahulKumar-ck1hr 3 жыл бұрын
Got exactly what I was looking for... Thanks
@nirajmeshram4
@nirajmeshram4 5 жыл бұрын
excellent mam......................................
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
Thanks😊
@nirajmeshram4
@nirajmeshram4 5 жыл бұрын
@@JennyslecturesCSIT your welcome
@likhithanarayanaswamy8538
@likhithanarayanaswamy8538 2 жыл бұрын
Mam plz explain multistage graph in dynamic programming
@rx_100_mathesh
@rx_100_mathesh 2 ай бұрын
You are very cute 💋
@ganeshjaggineni4097
@ganeshjaggineni4097 Жыл бұрын
NICE SUPER EXCELLENT MOTIVATED
@sunguru981
@sunguru981 5 жыл бұрын
Could this be solved via Dijkstra algorithm ? Because it resembles like that..
@050138
@050138 3 жыл бұрын
Dijkstra algorithm.... ♥️ Had to learn it in my MATLAB in my masters to solve a transportation problem using Dijkstra algorithm.... What beautiful memories! ☺️
@jawadkazim6610
@jawadkazim6610 4 жыл бұрын
Mam starting mai aram se bolti hai phir form mai ajaaati hai 😆 #shimla
@newplaylist-oc3kx
@newplaylist-oc3kx 3 жыл бұрын
Mam one doubts in all lecture. Mai note banata hu serial by serial isiliye "topic ke saath defination" ko vi boad pe likhiye mam please Revision me problem ho jata hai.
@reyvanadryan2513
@reyvanadryan2513 4 жыл бұрын
Thanks a lot, i do appreciate this!
@AmitKumar-ub3ev
@AmitKumar-ub3ev 5 жыл бұрын
Loved the way
@yaredasmat3263
@yaredasmat3263 2 жыл бұрын
why is A to B and B to A not similar.
@coder_abhi
@coder_abhi 9 ай бұрын
It can be different, like going by cycle 🚲 and coming by bike 🛵
@srujanwankhede5314
@srujanwankhede5314 3 жыл бұрын
I have one doubt .. why is dynamic programming named here there is no repetitive processing done in this approach .. this is a simple recursion problem .. plx explain an thankyou for explaining 🙏🙏🙏
@ashvend
@ashvend 4 жыл бұрын
Mam, Please make a video on the branch and bound
@mayanktripathi3915
@mayanktripathi3915 4 жыл бұрын
Could you please share code in java..
@anshuprakash5022
@anshuprakash5022 5 жыл бұрын
madam jii please implement krke v samjha dijiye c++ me,bohot shukrgujar rhunga
@prayagpatel5887
@prayagpatel5887 4 жыл бұрын
Love you mam. And also love your effort to make topic simple.
@smtownofficial7918
@smtownofficial7918 Жыл бұрын
Subha subha aapka face dekha hai paper accha jaan Chahiye brna soch lio dislike kr dunga 🙂
@mohammedtayyab4959
@mohammedtayyab4959 4 жыл бұрын
That problem is in dynamic.. What we do when problem is in branch and bound
@mohammedtayyab4959
@mohammedtayyab4959 4 жыл бұрын
March 1 and blue dress at Diwali and sunrise can't wait 🤔🤔
@jawadkazim6610
@jawadkazim6610 4 жыл бұрын
Abdul bari ke pas jao 😂
@mohammedtayyab4959
@mohammedtayyab4959 4 жыл бұрын
@@jawadkazim6610 gaya thaa unkaynpaas bechara nahi dekha 😂😂
@yuvaraj9268
@yuvaraj9268 3 жыл бұрын
Explained beautifully, thank you 🙂🙏
@NAYANACN-f9o
@NAYANACN-f9o 2 ай бұрын
Can u please explain kanapsack problem using branch bound
@rajeshgowda1727
@rajeshgowda1727 5 жыл бұрын
explanation is too good.I think matrix values is not similar eg: w(A,B)=16 hence W(B,A) should be 16 right.
@noorfatima8524
@noorfatima8524 5 жыл бұрын
Rajesh Gowda it is not always true that weight should be similar... in a graph cost of (a,b) and (b,a) can be different. its just an example.
@JennyslecturesCSIT
@JennyslecturesCSIT 5 жыл бұрын
No it's not always true... Weight of edges will be given in question..I have taken just an example.
@poornachandra4348
@poornachandra4348 3 жыл бұрын
Pls upload program for this
@petrifiedmach
@petrifiedmach Жыл бұрын
I came here with full enthusiasm to study TSP because Red Black Trees wasn't interesting enough ( tomorrow's my exam ), and Jayanti begins with such a soft voice 😂😂...
@arbazansari7696
@arbazansari7696 2 ай бұрын
love it mam your way of explaining is very simple and convenient to us. I have also learned data structures lectures from your videos that was also very compatible for me. it's my pleasure to learn from you Jenny mam....😊😊😊
@yatri6329
@yatri6329 3 жыл бұрын
Plz make videos on service to product based company switch.....&video on Graph theory,Bit manipulation
@panche_short
@panche_short 3 ай бұрын
Not looking on the solution but start to end only see the man😅
@Anuragsharma-gf8xy
@Anuragsharma-gf8xy Ай бұрын
Why distance between a to b is not same as b to a, can you help
@poojatikhe2046
@poojatikhe2046 5 жыл бұрын
Very good explanation thank a lot.
@LogicalSharmaSupport
@LogicalSharmaSupport 2 жыл бұрын
😀 kal mst hai mera aaj iss video ko dekhne k baad lag raha hai ye sab easy hai
@madhumathi5528
@madhumathi5528 Жыл бұрын
Mam please take about ford fulkarson method problem.i didn't get any clear picture about this problem.please
@usmanbhattis7881
@usmanbhattis7881 5 жыл бұрын
YOU'RE SO BEAUTIFULL
@saumikroy3853
@saumikroy3853 10 ай бұрын
You are soo sweet mam❤❤❤ You are my love Can you marry me?
@LegendBoy99999
@LegendBoy99999 Ай бұрын
🔥🔥🔥🔥
@jatinkhanna6681
@jatinkhanna6681 5 жыл бұрын
Excellent work mam god bless you
@shivbali9837
@shivbali9837 2 жыл бұрын
Will you explain this problem with different example, ie more than 6 nodes, I am fed-up with this common example
@raihanhafiz1221
@raihanhafiz1221 4 жыл бұрын
Please Make video on computer networks.
@ItsAnu276
@ItsAnu276 4 жыл бұрын
Mam please upload a video of tsp problem using branch and bound plse soon mam
@iotvasu5017
@iotvasu5017 Жыл бұрын
beauty💝💝💝💝
@gjajeetukumar8821
@gjajeetukumar8821 Жыл бұрын
♥️♥️
@obsinankebebe6567
@obsinankebebe6567 3 жыл бұрын
Really, I appreciate this lecture video incase of its more understandable. 10q jenny's am with you when ever I am in Cs.
@vinoduppara1246
@vinoduppara1246 3 жыл бұрын
Tomorrow is my exam Ur saviour to me
@arvindg553
@arvindg553 4 жыл бұрын
Only vedio only which explain the formula Thank you ma'am ❤️
@SAM-mug
@SAM-mug Жыл бұрын
@jenny, Is this C Matric standard or we can use any numbers within this matrix? like how come 16, 11,6 are the numeric values for B,C,D respectively?
@Mavihs_Rocks
@Mavihs_Rocks Жыл бұрын
Are mam, the graph is showing two values for each pair, for eg. A-B has weight 8 and 16, this is making it confusing !
@exploreworld743
@exploreworld743 4 жыл бұрын
Mind blowing sperrrrr
@kothabrahmanandareddy6219
@kothabrahmanandareddy6219 4 жыл бұрын
you look cute😍😍😍
@tejaskumarknayak537
@tejaskumarknayak537 7 ай бұрын
In our clg the lectures have this much beautiful even our boys didn't miss one class also 😂
@naveenp6883
@naveenp6883 2 жыл бұрын
Looking soooo cute mam fan of ur face glow
@pdivyapdivya7455
@pdivyapdivya7455 2 жыл бұрын
Really exllent teaching mam
@sudinkirtan3993
@sudinkirtan3993 6 ай бұрын
Ma'am please make a video on N-Queen problem. You helps us a lot ma'am.
@suparnasadhu7994
@suparnasadhu7994 3 жыл бұрын
Hello mam, can u pls give the link for travelling salesman problem using brute-force method and using branch and bound? I am not finding.
@ddjampani5480
@ddjampani5480 2 жыл бұрын
It is just a recursive approach , there is no dynamic programming in it
@mr.prathu.s3212
@mr.prathu.s3212 2 жыл бұрын
Mam can you make traveling salesman problem by branch n bound technique
@nunugondahansika9116
@nunugondahansika9116 9 ай бұрын
By which method we have to solve in xam mam by brute force or formula
@shubhamramola6874
@shubhamramola6874 2 жыл бұрын
Mam aapse padke to pkka pass Ho jaunga daa me
0/1 knapsack problem-Dynamic Programming | Data structures and algorithms
27:31
Jenny's Lectures CS IT
Рет қаралды 1,2 МЛН
4.7 Traveling Salesperson Problem - Dynamic Programming
15:25
Abdul Bari
Рет қаралды 1,5 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН
Spongebob ate Patrick 😱 #meme #spongebob #gmod
00:15
Mr. LoLo
Рет қаралды 19 МЛН
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
7.3 Traveling Salesman Problem - Branch and Bound
24:42
Abdul Bari
Рет қаралды 1,7 МЛН
Longest Common Subsequence- Dynamic Programming | Data structures and algorithms
25:47
Lec-33 Travelling Salesman Problem | In Operation Research | In Hindi
19:47
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН