• retagged by
10,960 views
8 8 votes

Selection sort algorithm design technique is an example of

  1. Greedy method
  2. Divide-and-conquer
  3. Dynamic Programming
  4. Backtracking

3 Answers

8 8 votes

Correct Answer would be A) Greedy Algorithm

Because, In the first iteration we put a pointer in the start of the array. Then next we start searching index of minimum element index in the rest of the array. Then replace the starting pointer value with minimum index value. (Considering the we are sorting in ascending order). Then repeat this process for each element. 

5 5 votes

Selection Sort is Brute force Approach

http://faculty.simpson.edu/lydia.sinapova/www/cmsc250/LN250_Weiss/L28-Design.htm#brute

As we move through all the elements of array so greedy is within available elements we select min between 2 elements but we further move to all elements so i think it wont be greedy

4 4 votes
Selection sort used in divide and conquer technique

Here smallest element replaces 1st element of the array , 2nd smallest element replaces 2nd element and like that all element sorted
Answer:
Position:
Show:

Related questions

61 61 votes
5 answers 5 answers
14.6k
14.6k views
Kathleen asked Sep 17, 2014
14,553 views
A program consists of two modules executed sequentially. Let $f_1(t)$ and $f_2(t)$ respectively denote the probability density functions of time taken to execute the two ...
1 1 vote
1 1 answer
3.4k
3.4k views
go_editor asked Mar 27, 2020
3,426 views
Binary search tree is an example of :Divide and conquer techniqueGreedy algorithmBack trackingDynamic Programming
35 35 votes
7 answers 7 answers
11.6k
11.6k views
khushtak asked Feb 14, 2017
11,557 views
Consider the following table:$$\begin{array}{|ll|ll|}\hline & \textbf{Algorithms} & & \textbf{Design Paradigms} \\\hline \text{(P)} & \text{Kruskal} & \text{(i)}& \text...
19 19 votes
1 answers 1 answer
9.5k
9.5k views
Misbah Ghaya asked Nov 19, 2016
9,509 views
Match the pairs in the following questions:$$\begin{array}{|ll|ll|}\hline (a) & \text{Strassen's matrix multiplication algorithm} & (p) & \text{Greedy method} \\\hline (...