How bubble sort is different from selection sort - counter
Sponsored Links


Popular Links


List of Abbreviations

National Highways in India

States & Union Territories of India

Currency of All Countries

How bubble sort is different from selection sort

You are Here: Home > Computer Subjects > Programming in C Language > …

How bubble sort is different from selection sort.

Ans. In bubble sort we compare two adjacent elements & swap them if they are in descending order. So the largest element goes in last position in each step.
In selection sort at each step we find out minimum element in array & swap it with the element under consideration.

Selection sort shows good performance over Bubble sort.

 

Click Here to Find Latest Jobs and Current Affairs

Updated: May 31, 2013 — 2:19 pm

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2016. All Rights Reserved. WikiIND.com