Greedy Algorithms | Set 9 (Boruvka’s algorithm)
Greedy Algorithms Boruvka’s algorithm - Minimum Spanning Tree Like Prim’s and Kruskal’s, Boruvka’s algorithm is also a...
Greedy Algorithms Boruvka’s algorithm - Minimum Spanning Tree Like Prim’s and Kruskal’s, Boruvka’s algorithm is also a...
C Programming Find position of the only set bit - Given a number having only one ‘1’ and all other ’0’s in its binary...
Given a dictionary, and two words ‘start’ and ‘target’ (both of same length). Find length of the smallest chain from ‘start’...
Given an unsigned integer, swap all odd bits with even bits. For example, if the given number is 23 (00010111), it should be...
Given an unsigned integer, swap all odd bits with even bits. For example, if the given number is 23 (00010111), it should be...
A Simple Solution use Max-Flow based s-t cut algorithm to find minimum cut. Consider every pair of vertices as source ‘s’...
C program to check subsequence - C Programming - User will input two strings and we find if one of the strings is a...
Maximum size square sub-matrix with all 1s - Dynamic Programming Given a binary matrix, find out the maximum size square...
Minimum number of jumps to reach end - Dynamic Programming An array of integers where elements represents the max number of...
Since B has already happened, the sample space reduces to B. So the probability of A happening becomes P(A ∩ B) divided by...
Our site uses cookies. By using this site, you agree to the Privacy Policy and Terms of Use.