Question
Download Solution PDFMatch the following :
(a) |
Merge sort |
(i) |
Greedy approach |
(b) |
8 Queens problem |
(ii) |
Dynamic programming |
(c) |
Single source shortest path |
(iii) |
Divide and conquer |
(d) |
Optimal binary search tree |
(iv) |
Backtracking |
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFKey Points
- Merge Sort uses the Divide and Conquer strategy. It divides the array into halves, recursively sorts them, and then merges the sorted halves.
- 8 Queens Problem is solved using Backtracking, which explores possible positions and backtracks upon invalid placements.
- Single Source Shortest Path (like Dijkstra’s algorithm) follows the Greedy Approach by selecting the shortest unvisited path at each step.
- Optimal Binary Search Tree uses Dynamic Programming to compute minimum expected search costs by evaluating all combinations of subtrees.
Additional Information
- Divide and Conquer: Breaks the problem into smaller sub-problems, solves them recursively, and combines their results. (Merge Sort)
- Backtracking: Systematically tries all possibilities and abandons paths that fail. (8 Queens)
- Greedy Approach: Makes optimal choices at each step to find global optimum. (Dijkstra’s algorithm)
- Dynamic Programming: Solves overlapping subproblems and builds solutions bottom-up. (Optimal BST)
Last updated on Jun 12, 2025
-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.
-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28.
-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.
-> Online application form, last date has been extended up to from 17th April 2025.
->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.
-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).