Shortest Path in Weighted undirected graph | Dijkstra's | Why not BFS ? | Graph Concepts & Qns - 27

Subscribers:
92,300
Published on ● Video Link: https://www.youtube.com/watch?v=icVJUN45f1E



Duration: 30:18
262 views
27


This is the 27th Video on our Graph Playlist.
Since we have studied Dijkstra's Algorithm, now it's time to brush it by solving problems on it.
In this video we will solve a very famous problem "Shortest Path in Weighted undirected graph".

We will understand today :
- Why can't we solve it using BFS ?
- What small modification needs to be done in Dijkstra's to solve this problem.

If you have been following my "Graph Concepts & Qns" playlist , then these will become very easy. Make sure to watch from the beginning of this playlist to master graph
in the easiest way possible.

Problem Name : Shortest Path in Weighted undirected graph
Company Tags : Flipkart, Microsoft
My solutions on Github : https://github.com/MAZHARMIK/Interview_DS_Algo/blob/master/Graph/Shortest%20Path%20in%20Weighted%20undirected%20graph.cpp
GfG Link : https://practice.geeksforgeeks.org/problems/shortest-path-in-weighted-undirected-graph/1


My Graph Concepts Playlist : https://youtu.be/5JGiZnr6B5w
My GitHub Repo for interview preparation : https://github.com/MAZHARMIK/Interview_DS_Algo
Subscribe to my channel : https://www.youtube.com/@codestorywithMIK

╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

#coding #helpajobseeker #easyrecipes #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #hindi #india #hindiexplanation #hindiexplained #easyexplaination #interview #interviewtips
#interviewpreparation #interview_ds_algo #hinglish




Other Videos By codestorywithMIK


2023-04-27Bulb Switcher | With Intuition | (AMAZON) | Leetcode-319 | Live Code + Explanation
2023-04-26Add Digits | With Proof | (MICROSOFT, ADOBE) | Leetcode-258 | Live Code + Explanation
2023-04-24Smallest Number in Infinite Set | 3 Approaches | (MICROSOFT) | Leetcode-1046 | Live Code 🧑🏻‍💻
2023-04-24Minimum Insertion Steps to Make a String Palindrome - (GOOGLE) | Recur+Memo | Leetcode-1312 🧑🏻‍💻
2023-04-24Last Stone Weight - | 2 Approaches | (GOOGLE, AMAZON) | Leetcode-1046 | Live Code + Explanation
2023-04-23Ghar 🏠
2023-04-23Restore The Array - (GOOGLE, MICROSOFT) | Recur+Memo | Leetcode-1416 | Live Code + Explanation
2023-04-21Profitable Schemes - (AMAZON) | Recur+Memo | Leetcode-879 | Live Code + Explanation
2023-04-20Maximum Width of Binary Tree - | Leetcode-662 | Flipkart, Amazon | Explanation + Live Code
2023-04-18Longest ZigZag Path in a Binary Tree - | Leetcode-1372 | MICROSOFT | Explanation + Live Code
2023-04-18Shortest Path in Weighted undirected graph | Dijkstra's | Why not BFS ? | Graph Concepts & Qns - 27
2023-04-17Remove Zero Sum Consecutive Nodes from Linked List - | Leetcode-1171 | Explanation + Live Code
2023-04-16Kids With the Greatest Number of Candies - (Leetcode - 1431) - : Explanation ➕ Live Coding
2023-04-16Number of Ways to Form a Target String Given a Dictionary - (Bottom Up) | Leetcode-1639|Live Code
2023-04-16Number of Ways to Form a Target String Given a Dictionary - (Recur + Memo) | Leetcode-1639|Live Code
2023-04-15Dijkstra's Algorithm | PART-3 | Why not Queue ? | Microsoft | Graph Concepts & Qns - 26 |Explanation
2023-04-15Maximum Value of K Coins From Piles - (META) | Leetcode-2218 | Explanation ➕ Live Coding
2023-04-14Longest Palindromic Subsequence - (Google, Amazon) | Leetcode-516 | Explanation ➕ Live Coding
2023-04-13Validate Stack Sequences | Leetcode - 946 | AMAZON | Explanation ➕ Live Coding
2023-04-12Simplify Path | Leetcode - 71 | META | Explanation ➕ Live Coding
2023-04-10Removing Stars From a String | Leetcode - 2390 | MICROSOFT | Explanation ➕ Live Coding