L-4.11: Dijkstra's Algorithm Analysis | Time Complexity | Pseudocode Explanation

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии • 167

  • @adarshjhaxiif-1289
    @adarshjhaxiif-1289 Год назад +77

    I don't know why don't these teachers are getting popular in entire India .... He deserves better ❤❤ Thanks a lot bhaiya ❤❤

    • @usamasana8785
      @usamasana8785 Год назад

      because their college teachers are even better..unlike Pakistan

  • @toshibamansoori8735
    @toshibamansoori8735 3 года назад +3

    sir me hamesha se dijksta algo ki complexity find krne me confuse rehti thi....but aapke explanations se clear ho gaya hai,, ab kabhi nahi bhulungi .......sir abhi tak bahut se teachers ko explain krte dekha hai but aapke jesa explanation kabhi nahi dekha.....great sir....aap bahut shaandar samjhate hain.....

  • @hinatashoyo7985
    @hinatashoyo7985 3 года назад +27

    Sir, thank you very very very much 🙏
    Your videos are one of the most useful resources available to us. You are a blessing to us

  • @kokilagoel2714
    @kokilagoel2714 3 года назад +14

    Thank u sir .....I m in 6th sem of my B Tech. Maine 3rd aur 5th ....dono sem mein Dijkstra algorithm padhi thi....iska question bhi kiya tha exam mein .....but aaj tak iski time complexity smjh ni aayi thi ....par aaj gayi....only bcz of you....thanks mere interest ko padhai m aur develop karvane m aur mereko confidence dilane m ki I can also prepare for GATE exam.....Aapko shat shat naman sir🙏🙏.I wish m bhi GATE crack kr paun aur apka aur apne parents ka naam roshan kr paun.

    • @kokilagoel2714
      @kokilagoel2714 3 года назад +3

      Thanks a lot sir sir for replying to my msg🙏🙏👍

  • @bhaskarkumarsingh322
    @bhaskarkumarsingh322 2 года назад +6

    Thanks for explaining everything related to this Dijstra Algo

  • @yogitasharma7344
    @yogitasharma7344 3 года назад +10

    Thanks a lot sir for sharing such a wonderful , awesome , outstanding n understandable videos

  • @bigfish5768
    @bigfish5768 Год назад +2

    Overwhelming lectures.Don't know how to pay you back, want to give more likes but there is option for only one.Thank you ❤❤❤

  • @yourhero3254
    @yourhero3254 8 месяцев назад +77

    Legends watching on Same day exam.

  • @soniyafareedmfareed5775
    @soniyafareedmfareed5775 2 года назад +5

    Mashallah your way of teaching ❤️✨💫

  • @DIPANSHU_KAPOOR
    @DIPANSHU_KAPOOR 3 года назад +3

    Mene bhi krdiya subscribe kyunki subscriber bhot jruri h 👌🏻👌🏻👌🏻

  • @jawadhashmi655
    @jawadhashmi655 Год назад +1

    Pakistani Students are taking your notes they have more trust on you rather then their university professors ...Kudos Sir 👏

  • @sahilanand30
    @sahilanand30 2 года назад +18

    Legends studying last night before exams 🔥
    Thank You sir

    • @throttle4you70
      @throttle4you70 2 года назад

      😐🥲

    • @daynadalia
      @daynadalia Год назад +2

      Tomorrow is exam.. Now watching this

    • @abdulkarishma8519
      @abdulkarishma8519 Год назад +1

      Yes bro 😂

    • @Sangwan7
      @Sangwan7 29 дней назад

      Tomorrow is exam,and I listening the name of Dijksta 1st time in sir's video 😢😂😂

  • @kushpatel4811
    @kushpatel4811 3 года назад +6

    Amazing video. I can understand very easily 😊

  • @monderfact.1680
    @monderfact.1680 Месяц назад

    God gifted teacher for us💌💌

  • @minahilfatima3781
    @minahilfatima3781 2 года назад

    Yes i share ur channel with my all fellows

  • @AMAR-pc6ht
    @AMAR-pc6ht Год назад

    Bhai maza aa gya yr literally, not expected this much clarity.

  • @surbhi_official9206
    @surbhi_official9206 3 года назад +17

    thank you so much sir... :)

  • @roshinroy5129
    @roshinroy5129 2 года назад +1

    Amazing explanation ji

  • @nafisnawalnahiyan5032
    @nafisnawalnahiyan5032 2 года назад

    You are such a gem ! Love from Bangladesh Sir

  • @mani_fitness03
    @mani_fitness03 Год назад

    Apki videos sa mera pichhle sare sem clear hogya h tw❤

  • @himanshusharma3382
    @himanshusharma3382 3 года назад

    💯💯💯 dimag mein ghus gya

  • @ch0c0_1
    @ch0c0_1 3 года назад +4

    Thankyou very much sir.. i always used to cram the complexity of this algorithm. Now i understand it

    • @malcolmmathias5881
      @malcolmmathias5881 3 года назад

      i guess Im pretty randomly asking but does anyone know a good website to stream new movies online ?

    • @abdielamir915
      @abdielamir915 3 года назад

      @Malcolm Mathias I watch on Flixzone. Just search on google for it =)

    • @louiekhari3200
      @louiekhari3200 3 года назад

      @Abdiel Amir Yup, I've been using flixzone for months myself =)

    • @johnnymayson9150
      @johnnymayson9150 3 года назад

      @Abdiel Amir definitely, I have been using flixzone for years myself :)

    • @cyrusgrayson7457
      @cyrusgrayson7457 3 года назад

      @Abdiel Amir thank you, I went there and it seems like a nice service :) Appreciate it!

  • @ayushiydvKG
    @ayushiydvKG 7 месяцев назад

    great explanationn 👏👏

  • @rohitmittapally2322
    @rohitmittapally2322 5 месяцев назад

    really so great sir thank you very much 😊😊😊😊

  • @GujjuBrothersvlogsssssss
    @GujjuBrothersvlogsssssss 2 года назад +1

    thank you 💯💯

  • @ayyan6061
    @ayyan6061 Год назад

    Stunning

  • @ritiksolanki3519
    @ritiksolanki3519 11 месяцев назад

    very nice explanation ❤❤

  • @monushilla6072
    @monushilla6072 3 года назад

    बहुत-बहुत धन्यवाद सर

  • @CryptozHub
    @CryptozHub Год назад

    Very nice explanation 🔥🔥🔥🔥

  • @msvlogs3744
    @msvlogs3744 Год назад +1

    Thankyou sir :) ❤

  • @mohitkaushik21
    @mohitkaushik21 2 года назад +1

    Thanks sir 👍

  • @MUHAMMADRASHID-rg6dw
    @MUHAMMADRASHID-rg6dw Год назад

    Love from Pakistan ❤❤ your great sir really great ❤

  • @ngcreations4770
    @ngcreations4770 3 года назад +1

    Thank you sir

  • @DileepKumar-oi2gb
    @DileepKumar-oi2gb 2 месяца назад

    thank you sir ❤❤❤

  • @MANISHSINGH-bf3rs
    @MANISHSINGH-bf3rs 2 года назад

    Thanks sir . Your video very help in my study . Your video very awsm .

  • @komalbhadarka4329
    @komalbhadarka4329 Год назад +1

    Sir. Airthmetic macro operation in computer organisation
    1) .binary substraction
    2).Binary increment
    3).Binary adder
    Ka lecture playlist me send kar do plz kyuki aapke sivai kisike lecture me vo sahi nahi sikhate or hum pehle aapke video dekhte aayehe to obviously aap ka lecture samaj aaye ga
    Thank you

  • @karanjotsingh4814
    @karanjotsingh4814 2 года назад +1

    Thank you sir

  • @vishaltomar925
    @vishaltomar925 5 месяцев назад

    congratulation sir for 1k subscriber🥳🥳

  • @tryambkeshwartripathi4522
    @tryambkeshwartripathi4522 2 года назад +3

    Srr kya samjhate hai aap ,aap ko mere university m hona chahiye😃

  • @rishigarnayak681
    @rishigarnayak681 3 года назад

    u r an amazing person with amazing knowledge

  • @nisarganag
    @nisarganag 2 года назад +1

    Correct Pronunciation is Dike - Struh

  • @Drowsy_jaat
    @Drowsy_jaat Год назад

    Superb sir ❤🎉

  • @shivammishra5853
    @shivammishra5853 2 года назад +1

    Thanks sir

  • @ਮਨਦੀਪਕੌਰ-ਹ7ਫ
    @ਮਨਦੀਪਕੌਰ-ਹ7ਫ 3 года назад +1

    Thnkuu sir 😍😍

  • @WebDevAnjali
    @WebDevAnjali Год назад +12

    who else is watching a day bfr exam?

  • @IslamicWorld.2505
    @IslamicWorld.2505 Год назад

    great teacher

  • @shubhammishra-gf7lm
    @shubhammishra-gf7lm 11 месяцев назад

    thank you, it was really helpfull.

  • @mpanghal9801
    @mpanghal9801 3 года назад

    Great job sir

  • @animesh06
    @animesh06 Год назад

    Nice

  • @69upasonabiswas88
    @69upasonabiswas88 3 года назад

    Thank you sir.. Take care of your health.. :)

  • @SubhamKumar-9009
    @SubhamKumar-9009 3 года назад

    Nice ❤️❤️❤️💜💜💜💜💜

  • @aimenshah3234
    @aimenshah3234 3 года назад +1

    Love from Pakistan 😍

  • @aadarsh8306
    @aadarsh8306 Год назад +1

    Correction - Dude there are more vertices than edges at last on the other way around.

  • @kohinoorkhan8529
    @kohinoorkhan8529 3 года назад

    superb sir .. :)

  • @parneetkaur-gs4bk
    @parneetkaur-gs4bk Год назад

    Thanku so much sir..great explanation ❤️

  • @ayushnigam9424
    @ayushnigam9424 3 года назад

    amazing lecture.

  • @muhammadbilal2627
    @muhammadbilal2627 2 года назад

    thanks for copertating

  • @aimenshah3234
    @aimenshah3234 3 года назад

    You're the best 😍

  • @sipaliverma9806
    @sipaliverma9806 3 года назад

    Thank you so much sir

  • @abdulkarishma8519
    @abdulkarishma8519 Год назад

    Thank you sir

  • @shanieee9929
    @shanieee9929 2 года назад +2

    Sir, do you have an English version of your explanation T_T really need that

  • @DMTech4U
    @DMTech4U 3 года назад

    Nice sir

  • @parakhchaudhary7453
    @parakhchaudhary7453 2 года назад +4

    How would the value of u iterate through the graph? Since, u = Extract_min[Q] should return 1 again and again right (it's the lowest distance) ?

  • @mumarmalik8015
    @mumarmalik8015 3 года назад

    Sir Love from Pakistan

  • @dhruvilsoni4900
    @dhruvilsoni4900 3 года назад +6

    Sir, At 8:48 you said that to decrease (Performing Relaxation) we take logV time.
    But considering the worst case Senario where a vertex is connected with all the vertices (Eg : Complete Graph). In this example, we would be checking and relaxing V times for a particular vertex (As there exists a direct edge from each edge to all the other edges). This process would be continued for all the V vertices.
    So we would be checking V*V times the Relaxation process. So won't the Time Complexity overall be O(V*V) ??

    • @siddhantjha6649
      @siddhantjha6649 3 года назад +4

      bro aapko bhi pata hai time complexity v2 hogi hame bhi pata hai sir ko bhi pata hai to faltu ka doubt leke wannabe good student mat baniye......

    • @nikhilflautist
      @nikhilflautist 3 года назад +3

      @@siddhantjha6649 savage reply bro 😂.
      Aise doubt RnD sector mein acche lgte hain, placements and college exams ke time nhi

    • @sankalparora9374
      @sankalparora9374 3 года назад +1

      You are right.
      And video me bhi yahi bataya hai.
      The complexity can even be worse than O(v*v).
      For a complete graph or a graph "close to" a complete graph, the number of edges are O(v * v)
      For each edge, we'll decrease key which will take O(log(v))
      which makes the complexity: O(v * v * log (v))
      And this case is covered in the complexity given as O(Elog(v)) as E = O(v * v).
      The idea is not to find the worst possible and O(E log (v)) is certainly the worst possible.

  • @Sonuchoubey-kq8wf
    @Sonuchoubey-kq8wf 3 месяца назад

    This is the first time I'm watching the 2nd day before the exam 😅😅😅

  • @zanijutt311
    @zanijutt311 3 года назад

    Thnx sir 😊

  • @jaydutta4304
    @jaydutta4304 3 года назад +4

    Sir can you please explain why relaxation time for each vertex is log v?

    • @ayushnigam9424
      @ayushnigam9424 3 года назад +6

      because in relaxation procedure we are mainly performing decrease key operation, and rest will take constant amount of work therefore only consider the time of decrease key operation in min heap i.e, O(log n) that is equal to O(log v).

  • @badalsaini1236
    @badalsaini1236 3 года назад +7

    I am first

  • @cod-e-break246
    @cod-e-break246 2 года назад +1

    sir
    first step mein har vertex ko infinity assign kr diya
    second step mein relax karne ke liye min heap mein se 2 pick kiya agar 1,2,3.. ki jagah a,b,c... vertices ho to kaise decide karenge ki heap mein min element kaun sa hai

  • @shantipriya370
    @shantipriya370 Год назад

    best..

  • @arpannewarpradhan9614
    @arpannewarpradhan9614 2 года назад +3

    We are given a dictionaryD, which is an array ofndistinct strings, sorted in lexicographic order.We are also given a procedureCompare-Strings(x,y), which will compare two stringsxandyin Θ(1) time, and returntrueifxcomes beforey, andfalseifycomes beforexin lexicographicorder. We are also given an arrayC, which containsn-1 of thenstrings inD, butCis not sorted.We would like to develop an algorithm that will find the string that is missing inC.(a) [15 pts] Design a divide-and-conquer algorithm that will find the missing string in Θ(n) time.You can assume that we can utilize thePartitionalgorithm that is used byQuickSort, bymodifying it to compare strings instead of comparing numbers (you do not need to show howto do the modification). Write the pseudo-code of your algorithm and explain how it works.(b) [10 pts] Show that the runtime of your algorithm is Θ(n)

  • @manu-prakash-choudhary
    @manu-prakash-choudhary 3 года назад

    you are too good

  • @akhileshyadav9862
    @akhileshyadav9862 Месяц назад

    7:07
    Add heap to q this is wrong
    We will create heap in starting only

  • @mickmouse7059
    @mickmouse7059 2 года назад +1

    Sir kindly upload the lecture of N-Queen with algorithm please please sir it's request

    • @alexmercerind
      @alexmercerind 2 года назад

      its not algorithm but a leetcode problem based on backtracking bruh

  • @PakBunny-y5e
    @PakBunny-y5e 7 месяцев назад +2

    Where is UET students

  • @Deshwal.mahesh
    @Deshwal.mahesh 2 года назад +1

    Shouldn't it be O(V + E log v) ??

  • @aswanikumarnayak4801
    @aswanikumarnayak4801 Месяц назад

    ❤❤

  • @learnteluguwithme821
    @learnteluguwithme821 9 месяцев назад

    But why extractMin() is logarithm time complexity?

  • @VedantGholap-rf5vr
    @VedantGholap-rf5vr Год назад

    VlogV kyu nahi aya ... edges to V-1 ke barabar hote hai so apparently vertices > edges

  • @nisarggogate8952
    @nisarggogate8952 5 месяцев назад

    I doubt think it should be log V. It should be log E, b'coz we can insert same vertex multiple times.

  • @kajalsrivastava310
    @kajalsrivastava310 3 года назад +1

    Can you please include videos on bf and df and also b+ trees🙏🙏

  • @deepikagoyal07
    @deepikagoyal07 2 года назад

    How to subscribe from multiple devices. Is it multiple accounts or multiple devices?

  • @VivekBambhaniya-w2v
    @VivekBambhaniya-w2v Месяц назад +1

    Nice but not enough

  • @snehasiskarmakar3235
    @snehasiskarmakar3235 7 месяцев назад

    actually writing on te opposite side of where you are standing might be better because we cant see what is written since it is being coverd by you

  • @rebeccap7412
    @rebeccap7412 Год назад

    does this method work for complex problems...my teacher told it does not work for complex problems...

  • @ReenaGurjar-mr3jg
    @ReenaGurjar-mr3jg 6 месяцев назад

    I'm watching before 30 min on exam

  • @NewsBollyw
    @NewsBollyw 3 года назад

    Sir please ek baar o(v*v) ek baar bta do sirf apka hi samjh aata h

  • @firefistace1909
    @firefistace1909 Год назад

    what does relax mean

    • @lovekumar3912
      @lovekumar3912 8 месяцев назад

      😅 relax means after enjoying your relax

  • @akashmalviya1759
    @akashmalviya1759 Год назад

    Sir, in this also we're creating kind of spanning tree and in a spanning tree no. of edge should be v-1 so in calculating time complexity VlogV and ElogV me ElogV wala kaise jada hua sir ??

  • @akashbansal5501
    @akashbansal5501 3 года назад

    ❤️❤️

  • @xdspali
    @xdspali 3 года назад

    Dsssb mock test k kb tk proper site working

  • @samarthdixit2036
    @samarthdixit2036 8 месяцев назад +3

    sir esa kuch hai jo aapko nahi aata

  • @shivanigupta7661
    @shivanigupta7661 3 года назад

    Sir adobe shop ka course krna kesa rahe ga iski market kitni dimand kya mujhe is ko karne se work mil apyega

  • @ataywaris331
    @ataywaris331 Месяц назад

    Ultra legend watching 20 days before exam

  • @letsCode27Ayush
    @letsCode27Ayush Месяц назад

    Legends watching before 30 min of exam😊

  • @ayyan6061
    @ayyan6061 Год назад

    Classic ovrview

  • @animehflix
    @animehflix 7 месяцев назад

    Legends are watching one day before exam 😂

  • @AnkitKumar-nx2tq
    @AnkitKumar-nx2tq 3 года назад

    Aman Dhattarwal OP.

  • @shubhangihatkar1347
    @shubhangihatkar1347 3 года назад

    ⭐⭐⭐⭐⭐