Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Wednesday, January 22, 2020

Match the methodology of List-A with the application of List

Match the methodology of List-A with the application of List-B :
Aa->III b->I c->IV d->II
Ba->IV b->III c->II d->I
Ca->III b->IV c->I d->II
Da->III b->II c->I d->IV

Answer : a->III b->I c->IV d->II

Explanation:

“greedy algorithm” is optimization problem is one in which you want to find, not just a solution, but the best solution
Example: Finding MST using Kruskal’s algorithm (min-weight spanning tree)

DFS algorithm is used to find strongly connected component.

dynamic programming algorithm remembers past results and uses them to find new results example:Floyd–Warshall algorithm (All Pair Shortest path algorithm)

divide and conquer algorithm consists of two parts:
Divide the problem into smaller subproblems of the same type, and solve these subproblems recursively
Combine the solutions to the subproblems into a solution to the original problem
Example: quicksort

Nithin K
answered Dec 7 '2016 at 21:43

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories