JIGYASA

An online placement forum.


You are not connected. Please login or register

Bubble Sort

Go down  Message [Page 1 of 1]

1 @arubuee on Sun Mar 14, 2010 4:44 pm

Lucifer


Admin
[You must be registered and logged in to see this link.]

View user profile http://jigyasa.forumn.org

2 @arubuee on Sun Mar 14, 2010 4:47 pm

Bubble sort is a sorting technique to sort an array of orderable elements. It's basically based on Brute Force technique(straightforward approach to solve a problem).
The algo will be like below:-

for i=0 to n-2 do
for j=0 to n-2-i do
if A[j+1]<A[j] swap A[j] and A[j+1]

View user profile

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum