Dijkstra Algorithm in Graphs | Single Source Shortest Path in Weights | Graphs Algorithms in JAVA

Поділитися
Вставка
  • Опубліковано 14 сер 2020
  • Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
    NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. This video discuss the Dijkstra Algorithm in Graphs to find the Single Source Shortest Path in Weights using a Priority Queue (Heaps). This algorithm in similar to Breadth First Search (BFS) where we used a queue instead of a priority queue. We then state the problem where:
    1. You are given a graph and a source vertex. The vertices represent cities and the edges represent distance in kilometers.
    2. You are required to find the shortest path to each city (in terms of kms) from the source city along with the total distance on path from source to destinations.
    For a better experience and more exercises, VISIT: www.pepcoding.com/resources/o...
    #graphs #dijkstra #greedy
    Have a look at our result: www.pepcoding.com/placements
    Follow us on our FB page: / pepcoding
    Follow us on Instagram: / pepcoding
    Follow us on LinkedIn: / pepcoding-education
    Join us on Telegram: t.me/joinchat/UVTjJE83a-zFnPB

КОМЕНТАРІ • 147

  • @reyazahmed9320
    @reyazahmed9320 3 роки тому +34

    You made dijkstra's algo so simple. Even Dijsktra would have liked for this impementation!

  • @kuldeepnarayanminj
    @kuldeepnarayanminj 3 роки тому +16

    sir, aaj aapke 2 videos dekhe, get saged, aur singh in USA wala........bahut zabardast, salute to your honesty , respect 100%.

  • @ankitamehra5045
    @ankitamehra5045 3 роки тому +25

    THANK YOU FOR AMAZING CONTENT FOR FREE to support students who cannot afford it and wish to learn. Never seen a person like you

  • @akashsrivastava8324
    @akashsrivastava8324 3 роки тому +10

    I was afraid of Dijkstra before this video. Thanks a lot for making it so easy!!!

  • @monikavaid5083
    @monikavaid5083 2 роки тому +4

    this is the first time in my life that i have found dijktra's easy : all the credit goes to you!

  • @biswadeepchakraborty2254
    @biswadeepchakraborty2254 2 роки тому +1

    This is one of best UA-cam channel I have ever encountered, Thank you so much for your kindness.

  • @cheforces4053
    @cheforces4053 2 роки тому +1

    i watched sir's videos became a specialist on codeforces , yesterday i had a doubt in a question that need this algo , learning again from sir .......

  • @anishranjan5714
    @anishranjan5714 2 роки тому +1

    I still can't believe how simply you explained dijkstra. Hats off to you sir.

  • @UCHAmanGupta
    @UCHAmanGupta 2 роки тому

    Thank you sir for wonderful explanation,I saw so many videos for dijkstra algorithm but didn't able to understand but your explanation is on another level

  • @rajeshkishore7171
    @rajeshkishore7171 2 роки тому

    This algo made so easy with your approach, awesome job

  • @priyankajhamb7061
    @priyankajhamb7061 Рік тому +2

    I am doing DSA in C++, but your videos are so powerful to understand the concept. Thankyou so much Sir

  • @hemantvardani1436
    @hemantvardani1436 Рік тому

    Thanks , i checked many other video , but this one was best ,and simplest.

  • @AtithiKumarSingh
    @AtithiKumarSingh 3 роки тому +4

    Can't belive you taught it so easily.

  • @TheAngelyup
    @TheAngelyup 3 роки тому

    Best explanation of Dijkstra Algorithm so far. Thank you!

  • @karanveersingh5535
    @karanveersingh5535 2 роки тому

    Teaching sir ki mind blowing hai. Seriously 😘❤️🔥🔥🔥

  • @somyasaxena6943
    @somyasaxena6943 Рік тому +1

    Sumeet Sir... The way you teach DSA is exemplary...!💫

  • @abrarawsaftalukder2379
    @abrarawsaftalukder2379 2 роки тому

    it was so helpful i was looking to print the path but eventually though i should clear my concept as it was in java in the end found that this code also giving the

  • @Paaaaaaaaaaal
    @Paaaaaaaaaaal 3 роки тому +2

    Damn!!!

  • @ankitprasad7612
    @ankitprasad7612 3 роки тому +1

    Awesome video. Very well explained sir! Eagerly waiting for next video.

  • @akankshasinha3352
    @akankshasinha3352 2 роки тому

    Sir .. kya hi bole ab 🥹🙏.. speechless hain aur dukhii hai kyuki ye playlist bht late se pata chali🥺🥺 .. sir dil se dhanywaaadd apka 🙏