Greedy algorithm
Characteristics of greedy method
Components of greedy algorithm
Applications of greedy method
Disadvantages of greedy Algorithm
fractional knapsack
Three approaches to solve Fractional knapsack problem
spanning tree
(V,E) = |V|-1) Working
Conditions Existing in minimum spanning tree
=V = |V|-1) Krushkal’s algorithm for mst
and E=V-Eprim’s M S T
Difference between Kruskal’s algorithm and prim’s Algorithm
in Kruskal’s algorithm while creating mst we get Unlinked edges But finally connects without Making loop whereas in Primm algorithm by creating only mst will be linked
dijkstra algo
Single source shortest path
Visited and path property
Working of dijkstra algorithm
dijkstra –algo time complexity ka
dijkstra(garph, source)
Create vertex set Q
for each vertex v in graph
dist[v]=infinity(sym)
add v to Q
dist[source]=0
while Q is not empty
u=extract-min[q]
for each neighbour v of u
relax(u,v)
Job sequencing with deadlines