Traveling Salesman Problem using Dynamic Programming | DAA

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • 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 ปีที่แล้ว +74

    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 ปีที่แล้ว +587

    My Teacher posted this link in our Google classroom 😂

    • @anirudhakulkarni9134
      @anirudhakulkarni9134 3 ปีที่แล้ว +72

      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 ปีที่แล้ว +10

      Same here

    • @chenchuladeepika9782
      @chenchuladeepika9782 3 ปีที่แล้ว +9

      Everything.... Google 🧘‍♀️

    • @waterspray5743
      @waterspray5743 3 ปีที่แล้ว +26

      @@anirudhakulkarni9134 You're paying them to take exams. lol

    • @shrutisharma3962
      @shrutisharma3962 3 ปีที่แล้ว +1

      😂😂😂😂😂😂

  • @sunnybambooflute
    @sunnybambooflute 3 ปีที่แล้ว +41

    this is again the easiest-to-understand video I found. Thank you Jenny!

  • @joels978
    @joels978 3 ปีที่แล้ว +18

    Awesome and intuitive explanation that beats all the others I found on TH-cam for this topic. Thanks so much!

  • @justpurs2306
    @justpurs2306 4 ปีที่แล้ว +22

    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

  • @nishitkashyap8748
    @nishitkashyap8748 3 ปีที่แล้ว +31

    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

  • @rohan8758
    @rohan8758 4 ปีที่แล้ว +10

    your explanation is too good & you deliver your knowledge in simple terms, thank you madam..

  • @xoxo_kylie
    @xoxo_kylie 3 ปีที่แล้ว +6

    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

  • @Nam_David
    @Nam_David 6 หลายเดือนก่อน +2

    Ms. Jenny, your explanation is absolutely clear. Thank you

  • @AshutoshKumar-ne5wv
    @AshutoshKumar-ne5wv 4 ปีที่แล้ว +8

    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 ❤️❤️❤️❤️

  • @irishjoybvillanueva8417
    @irishjoybvillanueva8417 3 ปีที่แล้ว +20

    i did not skip the ads because u have really taught me.

  • @RathourShubham
    @RathourShubham 5 ปีที่แล้ว +26

    beauty with brain❤️❤️❤️
    Edited : U too take care!!!

  • @gidartsproduction5439
    @gidartsproduction5439 4 ปีที่แล้ว +3

    I have been watch tutorials for years and thankfully I found a helpful channel. Keep up with good work.

  • @aidaahmadiaraghi
    @aidaahmadiaraghi 3 หลายเดือนก่อน +1

    you are the best teacher

  • @nirmaltom4424
    @nirmaltom4424 4 ปีที่แล้ว +4

    👏🏻👏🏻👏🏻 Better than our college faculty....Thank you mam.. Worth subscribing.. Worth video 👍👍🤓❤️

  • @arvindg553
    @arvindg553 4 ปีที่แล้ว +1

    Only vedio only which explain the formula
    Thank you ma'am ❤️

  • @manav____
    @manav____ 3 ปีที่แล้ว +1

    I was kind of stressed out but your smile in the begging made my day! and by the way great explaination.

    • @user-gq1ij
      @user-gq1ij 3 ปีที่แล้ว

      To unka exam nhi hai, vo to smile krengi hi, hmara exam hai, hm royenge

  • @shrinathgaikwad8028
    @shrinathgaikwad8028 ปีที่แล้ว +2

    Great teaching techniques and skills mam

  • @dhanushh2171
    @dhanushh2171 ปีที่แล้ว +2

    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

  • @Ghouse0312
    @Ghouse0312 ปีที่แล้ว +2

    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 😊😊

  • @wasit-shafi
    @wasit-shafi 5 ปีที่แล้ว +2

    osom...! i am CS from past 5 year & i think ur way of teaching just osom...how simply u explain in ur videos i to like ur quick sort vidoe too much...keep it up...

  • @RahulKumar-ck1hr
    @RahulKumar-ck1hr 3 ปีที่แล้ว +2

    Got exactly what I was looking for... Thanks

  • @sharonlul8181
    @sharonlul8181 5 ปีที่แล้ว +5

    Plz do a topic on traveling salesman with branch and bound method

  • @crazydrifter13
    @crazydrifter13 5 ปีที่แล้ว +6

    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.

  • @bhavanipandugah4455
    @bhavanipandugah4455 ปีที่แล้ว

    I watched this vedio before my exam and got full marks.... thank you so much madam

  • @santhoshk2722
    @santhoshk2722 ปีที่แล้ว +2

    Helped me a lot Thank you

  • @warriorforsure
    @warriorforsure ปีที่แล้ว

    Aaapki awaaj me suru me itni sehmi sehmi se thi...aur last me boom boom...you are sweet so..❤️❤️... thanks

  • @patelshubhamkumar6263
    @patelshubhamkumar6263 4 ปีที่แล้ว

    The best teacher ever...
    Give like if u also like the way ma'am teaches!!

  • @abhishekmahawadi7670
    @abhishekmahawadi7670 5 ปีที่แล้ว +4

    Good and easy explanation

  • @yuvaraj9268
    @yuvaraj9268 3 ปีที่แล้ว +2

    Explained beautifully, thank you 🙂🙏

  • @falonlisten3269
    @falonlisten3269 ปีที่แล้ว +2

    Thank you Jenny

  • @4thsemlab
    @4thsemlab ปีที่แล้ว

    I got very good faculty here, I can understand easy way. Thankyou ma'am

  • @nishantsaxena7500
    @nishantsaxena7500 5 ปีที่แล้ว +4

    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 ...

  • @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....😊😊😊

  • @bhavana.hgowda2743
    @bhavana.hgowda2743 4 หลายเดือนก่อน

    Mam ur teaching is just amazing😊

  • @prayagpatel5887
    @prayagpatel5887 4 ปีที่แล้ว +2

    Love you mam. And also love your effort to make topic simple.

  • @vobensingh8404
    @vobensingh8404 ปีที่แล้ว

    Best class mam where we never disappointed. 👌❣️❣️❣️

  • @shalsteven
    @shalsteven 2 ปีที่แล้ว +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"

  • @haadbajwa7565
    @haadbajwa7565 3 ปีที่แล้ว +1

    Mathematics makes a simple problem so complicated

  • @vinoduppara1246
    @vinoduppara1246 3 ปีที่แล้ว +1

    Tomorrow is my exam Ur saviour to me

  • @SAM-mug
    @SAM-mug ปีที่แล้ว

    Wah yr kamal ker diya apne tu... Mujhy samajh aa gya 😃

  • @jatinkhanna6681
    @jatinkhanna6681 5 ปีที่แล้ว +2

    Excellent work mam god bless you

  • @amritpalsingh7262
    @amritpalsingh7262 4 ปีที่แล้ว +6

    Great video👌😍, plz upload a series on Fibonacci heap and binomial heap
    I'll greatly appreciate it.
    Thanks 🙏

  • @poojatikhe2046
    @poojatikhe2046 5 ปีที่แล้ว +2

    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

  • @pdivyapdivya7455
    @pdivyapdivya7455 2 ปีที่แล้ว +1

    Really exllent teaching mam

  • @brahmareddythumu9885
    @brahmareddythumu9885 4 ปีที่แล้ว +2

    Please upload all concepts on DAA and computer networking

  • @akshitmangotra5370
    @akshitmangotra5370 4 ปีที่แล้ว +3

    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

  • @mamatanayak6739
    @mamatanayak6739 ปีที่แล้ว

    Many many thank you mam .excellent your explain travelling sales man problem .

  • @reyvanadryan2513
    @reyvanadryan2513 4 ปีที่แล้ว +4

    Thanks a lot, i do appreciate this!

  • @fitnesswithvaibhav
    @fitnesswithvaibhav 4 ปีที่แล้ว

    Thanks mam you are the best teacher in the world please ap hamay thoday or questions kraya kro taki hamari gate ki preparation ho Jaye ❤️❤️😍😍😘😘😘😘😘

  • @nishantsaxena7500
    @nishantsaxena7500 5 ปีที่แล้ว +4

    Good Work jenny .. hope soon your subscribers or views will be in millions :)

  • @AmitKumar-ub3ev
    @AmitKumar-ub3ev 5 ปีที่แล้ว +5

    Loved the way

  • @utkarshkumar5349
    @utkarshkumar5349 3 ปีที่แล้ว +1

    Thanks for the nice video madam . I had been struggling with graph theory for a long time . But you explained as easily as teachers used to explain in middle school.

  • @iamrising7176
    @iamrising7176 6 หลายเดือนก่อน

    You are the best, Jenny.

  • @supriya3665
    @supriya3665 3 ปีที่แล้ว +2

    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

  • @biswadeepchakraborty5354
    @biswadeepchakraborty5354 5 ปีที่แล้ว +16

    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.

  • @himanshumangoli6708
    @himanshumangoli6708 ปีที่แล้ว +1

    How time complexity is order of n to the power n

  • @nirajmeshram4
    @nirajmeshram4 5 ปีที่แล้ว +2

    excellent mam......................................

  • @supernova7870
    @supernova7870 4 ปีที่แล้ว +2

    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 ปีที่แล้ว +1

      DP should be removed from the video title.

    • @girishdama1778
      @girishdama1778 4 ปีที่แล้ว

      Yes, same doubt 🧐

  • @obsinankebebe6567
    @obsinankebebe6567 3 ปีที่แล้ว +1

    Really, I appreciate this lecture video incase of its more understandable. 10q jenny's am with you when ever I am in Cs.

  • @Aditya-dv5wg
    @Aditya-dv5wg 3 ปีที่แล้ว

    Excellent teacher and teaching style🔥🔥🔥🔥

  • @saieedkaiser8830
    @saieedkaiser8830 2 ปีที่แล้ว

    In detail explanation ...hats off to u

  • @isaacade2075
    @isaacade2075 7 หลายเดือนก่อน

    Amazing teacher. Wow

  • @johnmctavish1021
    @johnmctavish1021 2 ปีที่แล้ว +1

    Isn't this essentially Brute-Force only? You essentially analyzed all possible paths.

  • @ashvend
    @ashvend 4 ปีที่แล้ว +1

    Mam, Please make a video on the branch and bound

  • @shaikzohab2967
    @shaikzohab2967 ปีที่แล้ว +1

    Can we choose any one method or two methods ?

  • @mygchrome9135
    @mygchrome9135 5 ปีที่แล้ว +1

    You rock Jenny Lamba! You made this problem so easy! Amazing explanation by a very attractive lady! Keep it up!

  • @sudinkirtan3993
    @sudinkirtan3993 6 หลายเดือนก่อน

    Ma'am please make a video on N-Queen problem. You helps us a lot ma'am.

  • @sireeshauppala2084
    @sireeshauppala2084 2 ปีที่แล้ว

    very clear explanation mam ,thank you

  • @rituvishwkarma1887
    @rituvishwkarma1887 3 ปีที่แล้ว

    Thank you so much mam for solving this problem

  • @SS40519
    @SS40519 4 ปีที่แล้ว

    Love you 😘😘 and your teaching skills

  • @dheerajnemalikanti3703
    @dheerajnemalikanti3703 5 ปีที่แล้ว +2

    Great work didi !!

  • @mohammedtayyab4959
    @mohammedtayyab4959 4 ปีที่แล้ว +2

    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 ปีที่แล้ว +2

      Abdul bari ke pas jao 😂

    • @mohammedtayyab4959
      @mohammedtayyab4959 4 ปีที่แล้ว

      @@jawadkazim6610 gaya thaa unkaynpaas bechara nahi dekha 😂😂

  • @cri789
    @cri789 ปีที่แล้ว

    Mind blowing explainition

  • @user-hv7li2ko7l
    @user-hv7li2ko7l 4 ปีที่แล้ว +1

    I love you so much with your perfect vedios.

  • @exploreworld743
    @exploreworld743 4 ปีที่แล้ว +2

    Mind blowing sperrrrr

  • @esgmodiyt1359
    @esgmodiyt1359 5 ปีที่แล้ว +4

    Mam aapse pyar ho gya h😍😍

  • @tejaskumarknayak537
    @tejaskumarknayak537 7 หลายเดือนก่อน

    In our clg the lectures have this much beautiful even our boys didn't miss one class also 😂

  • @biswadeepchakraborty5354
    @biswadeepchakraborty5354 5 ปีที่แล้ว +1

    Nicely explained

  • @yatri6329
    @yatri6329 3 ปีที่แล้ว

    Plz make videos on service to product based company switch.....&video on Graph theory,Bit manipulation

  • @nirajmeshram4
    @nirajmeshram4 5 ปีที่แล้ว

    bhot bhot bhot bhot bhot bhot thankyou...............................................

  • @sunguru981
    @sunguru981 5 ปีที่แล้ว +3

    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! ☺️

  • @yatinplays7606
    @yatinplays7606 2 ปีที่แล้ว +2

    Mam app kitne cute ho🤧 sab samaj agaya vaise thx🤧

  • @newplaylist-oc3kx
    @newplaylist-oc3kx 3 ปีที่แล้ว +1

    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.

  • @patricechaula3430
    @patricechaula3430 ปีที่แล้ว

    Thank you Jenny.

  • @anmolkesharwani8208
    @anmolkesharwani8208 5 ปีที่แล้ว +1

    great work ma'am

  • @donLennin
    @donLennin 4 ปีที่แล้ว

    @Jenny's lectures CS/IT NET&JRF You should do a video on the proof of the complexity for this method.

  • @anandsingh2653
    @anandsingh2653 2 ปีที่แล้ว

    Life saver mam..tqq soooo much

  • @ganeshjaggineni4097
    @ganeshjaggineni4097 ปีที่แล้ว

    NICE SUPER EXCELLENT MOTIVATED

  • @likhithanarayanaswamy8538
    @likhithanarayanaswamy8538 2 ปีที่แล้ว +1

    Mam plz explain multistage graph in dynamic programming

  • @saitejamerugu3725
    @saitejamerugu3725 7 หลายเดือนก่อน

    Thank you so much mam

  • @raihanhafiz1221
    @raihanhafiz1221 4 ปีที่แล้ว +1

    Please Make video on computer networks.

  • @deepanaaruchamy
    @deepanaaruchamy ปีที่แล้ว

    Thank you Soo much it help me ah lot

  • @NaveenPGForYou
    @NaveenPGForYou 2 วันที่ผ่านมา

    How was the matrix calculated? Why is A to B 16 and reverse just 8? This is not clear.

  • @shivbali9837
    @shivbali9837 2 ปีที่แล้ว

    Will you explain this problem with different example, ie more than 6 nodes, I am fed-up with this common example

  • @rudratejjadhav911
    @rudratejjadhav911 3 ปีที่แล้ว

    👌👌 great lecture easy to learn

  • @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 !

  • @MSSKEERTHIKAK
    @MSSKEERTHIKAK 4 ปีที่แล้ว

    Thank you so much mam!! Such a good explanation!! ❤

  • @PRAVH
    @PRAVH 8 หลายเดือนก่อน

    Thanks Mam