L-4.12: Why does Dijkstra fail on Negative Weights?? Full Explanation with examples
Gate Smashers
0:00 / 0:00
L-4.12: Why does Dijkstra fail on Negative Weights?? Full Explanation with examples
363 962 просмотра · 5 л. назад
Gate Smashers
2,9 млн подписчиков
363 962 просмотра · 5 л. назад
In this video, Varun Sir will explain why Dijkstra's algorithm doesn't work correctly with negative edge weights. Using simple, relatable examples and clear visuals, we’ll explain the core issue and show you exactly where the algorithm goes wrong. Whether you're preparing for competitive exams, interviews, or just want to strengthen your concepts—this video will make your concepts clear! #algorithm
--------------------------------------------------------------------------------------------------------------------------------------
Timestamps:
0:00 - Introduction
3:09 - Case 1
5:08 - Case 2
--------------------------------------------------------------------------------------------------------------------------------------
🚀 MASTER COMPUTER SCIENCE | INTERVIEWS | EXAMS
Gate Smashers — Learn Computer Science through free lectures, structured playlists, interview resources, important questions, notes & exam preparation. 💻📚
🌐 FREE CS RESOURCES & INTERVIEW PREPARATION : https://gatesmashers.com
━━━━━━━━━━━━━━━━━━━━━━
📚 SUBJECT-WISE COMPUTER SCIENCE PLAYLISTS
► Placement Interview Questions: • Placement Interview Questions | One Shot S...
► System Design: • System Design
► Deep Learning: • Deep Learning (ANN, RNN, Tranformers, RNN)
► Machine Learning:
• Machine Learning
► Design and Analysis of Algorithms (DAA): • Design and Analysis of algorithms (DAA)
► Software Engineering: • Software Engineering
► Database Management System (DBMS): • DBMS (Database Management system) Complete...
► Cloud Computing: • Cloud Computing (Complete Course)
► Theory of Computation (TOC): • TOC(Theory of Computation)
► Artificial Intelligence: • Artificial Intelligence (Complete Playlist)
► Computer Networks (CN): • Computer Networks (Complete Playlist)
► Operating System (OS): • Operating System (Complete Playlist)
► Structured Query Language (SQL): • Structured Query Language (SQL)
► Discrete Mathematics: • Discrete Mathematics
► Compiler Design: • Compiler Design (Complete Playlist)
► Number System: • Number system
► Programming in C: • C Programming
► Data Structures: • Data Structure
► Computer Architecture: • Computer Organization and Architecture (Co...
► Graph Theory: • Graph Theory
► Digital Logic: • Digital Logic (Complete Playlist)
━━━━━━━━━━━━━━━━━━━━━━
🌐 CONNECT WITH GATE SMASHERS
► Website: https://gatesmashers.com
► YouTube: / gatesmashers
► Instagram: / gate.smashers
► Telegram: https://t.me/gatesmashersofficial
► Facebook: / gatesmashers
► Threads: https://threads.net/@gate.smashers
GsetGo
► YouTube: / @gsetgoofficial
► Instagram: / gsetgo_
VarunNainaShots
► YouTube: / @varunainashots
► Instagram: / varunainashots
━━━━━━━━━━━━━━━━━━━━━━
Subscribe to Gate Smashers and start your Computer Science learning journey today! 🚀💻