Question 1
GIven below are some algorthims, and some algothim design paradigms
1-i, 2-iii, 3-i, 4-v.
1-iii, 2-iii, 3-i, 4-v.
1-iii, 2-ii, 3-i, 4-iv.
1-iii, 2-ii, 3-i, 4-v.
       Algorithms       Algorithm-Paradigms       GATE 2015 -(Set-2)
Question 1 Explanation: 
(1) Dijkstra’s Shortest Path using to find single source shortest path. It is purely based on Greedy technique because it always selects shortest path among all.
(2) → All Pair shortest path algorithm is using Dynamic Programming technique. It takes worst case time complexity is O(|V|3) and worst case space complexity is O(|V|2).
→ The Floyd–Warshall algorithm is an algorithm for finding shortest paths in a weighted graph with positive or negative edge weights (but with no negative cycles).
→ A single execution of the algorithm will find the lengths (summed weights) of the shortest paths between all pairs of vertices. Although it does not return details of the paths themselves, it is possible to reconstruct the paths with simple modifications to the algorithm.
(3) Binary search on a sorted array:
Search a sorted array by repeatedly dividing the search interval in half. Begin with an interval covering the whole array. If the value of the search key is less than the item in the middle of the interval, narrow the interval to the lower half. Otherwise narrow it to the upper half. Repeatedly check until the value is found or the interval is empty.
(4) Backtracking search on a graph uses Depth-first search
There is 1 question to complete.
PHP Code Snippets Powered By :