in Algorithms retagged by
721 views
1 vote
1 vote

What is the ans and give reason

in Algorithms retagged by
721 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

7 Comments

I agree with @joshi_nitish
0
0
Sir, I think bubble sort is also an example of greedy approach.Right?
0
0
@rajatmyname, why would bubble sort be greedy? What are you being greedy for in this sort?
0
0
The largest element are always being arranged after every pass like selection sort for minimum, bubble sort for maximum. Is it not correct?
0
0
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