in Algorithms retagged by
711 views
1 vote
1 vote

What is the ans and give reason

in Algorithms retagged by
711 views

1 Answer

3 votes
3 votes
Best answer
A) greedy approach...

because at every step you are greedy to find smallest element...
selected by

4 Comments

I think bubble sort is a brute force algorithm as we are just swapping the elements everytime, we aren't choosing anything.
1
1

yes bubble sort is brute force and coming to the selection sort at every pass e will find 1 min then swap with number (if possible) 

Although they both are comaparison based sorting algo 

0
0
Ok. Thanks
0
0