Design and Analysis of Algorithms
Design and Analysis of Algorithms
  • 57
  • 2 261 746
Course Outline
To access the translated content:
1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation
The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video.
Your feedback is highly appreciated. Kindly fill this form forms.gle/XFZhSnHsCLML2LXA6
2. Regional language subtitles available for this course
To watch the subtitles in regional languages:
1. Click on the lecture under Course Details.
2. Play the video.
3. Now click on the Settings icon and a list of features will display
4. From that select the option Subtitles/CC.
5. Now select the Language from the available languages to read the subtitle in the regional language.
zhlédnutí: 234 118

Video

Example: Xerox shop
zhlédnutí 73KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Example: Document similarity
zhlédnutí 53KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Example: Air Travel
zhlédnutí 103KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Examples: Analysis of iterative and recursive algorithms
zhlédnutí 75KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Introduction and motivation
zhlédnutí 115KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Input size, worst case, average case
zhlédnutí 97KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Quantifying efficiency: O( ), Omega( ), Theta( )
zhlédnutí 87KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Selection Sort
zhlédnutí 51KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Insertion sort
zhlédnutí 43KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Merge sort
zhlédnutí 44KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Quicksort - analysis
zhlédnutí 27KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Sorting - Concluding remarks
zhlédnutí 20KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Merge sort - analysis
zhlédnutí 36KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Arrays and lists
zhlédnutí 71KPřed 6 lety
To access the translated content: 1. The translated content of this course is available in regional languages. For details please visit nptel.ac.in/translation The video course content can be accessed in the form of regional language text transcripts, books which can be accessed under downloads of each course, subtitles in the video and Video Text Track below the video. Your feedback is highly ...
Quicksort
zhlédnutí 38KPřed 6 lety
Quicksort
Searching in an array
zhlédnutí 49KPřed 6 lety
Searching in an array
Representing graphs
zhlédnutí 36KPřed 6 lety
Representing graphs
Introduction to graphs
zhlédnutí 49KPřed 6 lety
Introduction to graphs
Breadth first search (BFS)
zhlédnutí 53KPřed 6 lety
Breadth first search (BFS)
Depth first search (DFS)
zhlédnutí 34KPřed 6 lety
Depth first search (DFS)
Directed acylic graphs: topological sort
zhlédnutí 37KPřed 6 lety
Directed acylic graphs: topological sort
Directed acylic graphs: longest paths
zhlédnutí 40KPřed 6 lety
Directed acylic graphs: longest paths
Applications of BFS and DFS
zhlédnutí 42KPřed 6 lety
Applications of BFS and DFS
Single source shortest paths: Dijkstras algorithm
zhlédnutí 33KPřed 6 lety
Single source shortest paths: Dijkstras algorithm
Negative edge weights: Bellman-Ford algorithm
zhlédnutí 28KPřed 6 lety
Negative edge weights: Bellman-Ford algorithm
All pairs shortest paths
zhlédnutí 23KPřed 6 lety
All pairs shortest paths
Minimum Cost Spanning Trees
zhlédnutí 18KPřed 6 lety
Minimum Cost Spanning Trees
Kruskals algorithm
zhlédnutí 18KPřed 6 lety
Kruskals algorithm
Prims Algorithm
zhlédnutí 23KPřed 6 lety
Prims Algorithm

Komentáře

  • @siddharthmundra9041
    @siddharthmundra9041 Před měsícem

    Better than my prof at ucsd

  • @siddharthmundra
    @siddharthmundra Před měsícem

    Practice problems on this topic?

  • @NiltraGaming
    @NiltraGaming Před měsícem

    improve the explanation to be more beginner friendly

  • @asmisrivastava3934
    @asmisrivastava3934 Před 3 měsíci

    great

  • @prayaanshmehta3200
    @prayaanshmehta3200 Před 3 měsíci

    0:15 correct 0:27 efficient 1:07 modelling 1:50 techniques (3:09 pre reqs)

  • @vasudev7828
    @vasudev7828 Před 3 měsíci

    i found the root array to be unnecessary. node[k] is equal to root[k] if k is a component root.

  • @vasudev7828
    @vasudev7828 Před 4 měsíci

    This implementation of merge sort throws an out of bounds exception, because it attempt to access A[i] (in case 1) before checking i==m (in case 2). Here's the fixed version: int Apos = 0, Bpos = 0; for (int i = 0; i < C.size(); i++) { if (Apos == A.size() || ((Bpos < B.size()) && (B[Bpos] <= A[Apos]))) { C[i] = B[Bpos]; Bpos++; } else { C[i] = A[Apos]; Apos++; } } look up short circuit evaluation if you don't know what that is.

  • @prabhatjha653
    @prabhatjha653 Před 4 měsíci

    One quick question, as you have mentioned if i use sorted array as priority queue i would need O(n) time to insert and O(1) time to delete_max, so overall to process n jobs its O(n^2), why can't i insert in a binary search way needing O(logn) to insert and take out in O(1) time making it O(nlogn) and we do not have to move to heaps in that case. Am i missing something?

  • @rishabhraj8233
    @rishabhraj8233 Před 4 měsíci

    Thank you sir.

  • @snehalkathale2477
    @snehalkathale2477 Před 6 měsíci

    Consider given array is A={2,6,8,9,11}, r = 5 & l = 0; And searching element LET K= 9; //-------fisrt call : ------ bsearch(K=9,A,l=0,r=5) { //for 1st if(r-l == 0) r -l = 5-0 not equal to 0 // if statement will not execute mid = (l+r)/2 = (0 + 5)/2 =2 //2.5 but will take integer division //For 2nd if( K == A[mid]) K= 9 and A[mid] = A[2]= 8 which is not equal to K Therefore if statement will not execute //For 3rd if(K <A[mid]) (9 is not less than 8) Therefore if statement will not execute //For else //------Second call : ------- bsearch(K= 9, A, mid+1= 3, r=5) {// l is mid+1 that is 3 r -l = 5-3=2 not equal to 0 // if statement will not execute mid = (l+r)/2 = (3 + 5)/2 =4 //For 2nd if( K == A[mid]) K= 9 and A[mid] = A[4]= 11 which is not equal to K Therefore if statement will not execute //For 3rd if(K< A[mid]) K = 9 and A[mid] = 11 therefore if statement will execute and //------Third call : -------- bsearch(K= 9, A, l= 3, mid=4) { // here r = mid = 4; r -l = 4-3=1 not equal to 0 // if statement will not execute mid = (l+r)/2 = (3 + 4)/2 =3 //3.5 but will take integer division //For 2nd if( K == A[mid]) K= 9 and A[mid] = A[3]= 9 which is equal to K Therefore if statement will execute And * return True* to second call And that will return true to 1st call of function And overall element is found }//3rd call end here }//2nd call end here }// 1st call end here

  • @princeraiyani3468
    @princeraiyani3468 Před 6 měsíci

    Where to find presentation?

  • @user-ue2kq3ip2h
    @user-ue2kq3ip2h Před 6 měsíci

    WELL I HAVE ALWAYS BEEN A FAN THE WAY MADHAV SIR EXPLAINS THE CONCEPT...BEST AMAZING,, EVEN HIS PROGRMAMMING DATASTRUCTRES USING PYTHON ALSO AMAZING..

  • @nachiketshelar8114
    @nachiketshelar8114 Před 7 měsíci

    I just hate it when the course about algorithms has algorithms wrong

  • @VK-im2nb
    @VK-im2nb Před 9 měsíci

    Does anyone have slides for the lecture

  • @user-dx7sh5ol6n
    @user-dx7sh5ol6n Před 10 měsíci

    Language should be simple ,,, difficult to understand

  • @PrithaMajumder
    @PrithaMajumder Před rokem

    Thank You So Much for This Amazing Lecture... 😊

  • @PrithaMajumder
    @PrithaMajumder Před rokem

    Thank You So Much for This Amazing Lecture... 😊

  • @PrithaMajumder
    @PrithaMajumder Před rokem

    Thank You So Much for This Amazing Lecture... 😊

  • @PrithaMajumder
    @PrithaMajumder Před rokem

    Thank You So Much for This Amazing Introduction, looking forward to completing this course... 😊

    • @Iam_Kady
      @Iam_Kady Před 6 měsíci

      Have you completed ye?

  • @taruchitgoyal3735
    @taruchitgoyal3735 Před rokem

    In the beginning of the session, example of air traffic controller was stated and the issues with respect to heap were observed when checking the predecessor and successor. Thus, can we say Binary Search Tree overcomes disadvantage of Heaps for finding successor and predecessor?

  • @nonpopuler3920
    @nonpopuler3920 Před rokem

    Hi sir muje input size nahi samaj ra hai

  • @LearnPythoninPashto

    we say to it ratalogist it means to memorize something but in practical quality is zero please don't waste time in such video

  • @PramodKumar-bu2uf
    @PramodKumar-bu2uf Před rokem

    anyone can share the code of this problem

  • @chiragwad
    @chiragwad Před rokem

    amazing explanation

  • @anuragbose2622
    @anuragbose2622 Před rokem

    Thank you very much for these applications. It helped me solve many questions .

  • @dewanshusatpude6606

    Why sir you are making such an easy thing so complex?

  • @dewanshusatpude6606

    Can you simplify the proofing part. It's getting very complex

  • @meaw3409
    @meaw3409 Před rokem

    Thank you sir for these videos your channel is really helpful !

  • @Ethan_here230
    @Ethan_here230 Před rokem

    Sir please try explaining on greenboard with chalk. Really helps in understanding things since we become a part of calculation with it and can understand steps. And gets us involved . Please consider

  • @shakthi6351
    @shakthi6351 Před rokem

    I think, at 13:21, the very last update statement should be Nbr_TV [ v ] = u ;

  • @binduaishu82
    @binduaishu82 Před rokem

    Hii i am btech IT student...but there is no option for IT dept in gate exam training session...should we follow computer science engineering videos ?

  • @shakthi6351
    @shakthi6351 Před rokem

    at 9:47 The indentation for the last statement is incorrect. The post count for vertex 'i' must be assigned a value once the For loop is completed and not inside it.

  • @aranasrehman106
    @aranasrehman106 Před 2 lety

    Thanks for the Malayalam subtitle

  • @chaitanya1999
    @chaitanya1999 Před 2 lety

    Seems bellman ford only works well for directed graphs with negative edges. If you have an undirected graph with a negative edge, that will be interpreted as a negative cycle by this algorithm, as you can go to-fro as many times as you want over the negative edge. For proof, consider the adjacency matrix representation of an undirected graph. Let's say edge from U to V has weight -W. then graph[U][V] = -W graph[V][U] = -W This will definitely be considered as two separate edges by the algorithm, hence the negative cycle.

  • @suriyars4487
    @suriyars4487 Před 2 lety

    Vera level Madhavan Sir

  • @harshkiprofile
    @harshkiprofile Před 2 lety

    Anyone pursuing the same course in july 2022 here

  • @kaustubh_ramteke_07
    @kaustubh_ramteke_07 Před 2 lety

    👍

  • @vedicbalia825
    @vedicbalia825 Před 2 lety

    hi

  • @kokkondaabhilashachary8679

    Why + 1?

  • @OmarTriguiTn
    @OmarTriguiTn Před 2 lety

    Thanks a lot ! Simple and efficient teaching techniques. Much appreciate that

  • @aniruddhadas1778
    @aniruddhadas1778 Před 2 lety

    🇮🇳

  • @vishalraja1543
    @vishalraja1543 Před 2 lety

    loved the proof man!!

  • @kamleshkumarsahu4699
    @kamleshkumarsahu4699 Před 2 lety

    This is some next level explanation. I am just loving all his videos. I wish my college teacher could teach like this. Such proper sequential explanation never seen before. Love you sir.

  • @akhileshthecoolest
    @akhileshthecoolest Před 2 lety

    at the last step of the algorithm.. it should be quicksort(A,yellow,r)

  • @adityajha2701
    @adityajha2701 Před 2 lety

    amazing lecture!!

  • @AkshatSinghania
    @AkshatSinghania Před 2 lety

    awesome lecture

  • @themetalmystic3988
    @themetalmystic3988 Před 2 lety

    I appreciate this. Of several explanations of the Proof and the concept of the Exchange Argument this is the best and for me, the one that enabled me to understand the proof. Thank you and well done sir!

  • @SURENDRAKUMAR-um7tp
    @SURENDRAKUMAR-um7tp Před 2 lety

    can left child or right child equal to parent in case of BST?

  • @devansh__jhawar
    @devansh__jhawar Před 2 lety

    Can anyone please help me where I can find the lecture slides of all the sessions on the channel.

  • @haniahania6941
    @haniahania6941 Před 2 lety

    Can you please help me to write c++ source codes for different programs