JIGYASA
Would you like to react to this message? Create an account in a few clicks or log in to continue.
JIGYASA

An online placement forum.


You are not connected. Please login or register

Bubble Sort

2 posters

Go down  Message [Page 1 of 1]

1Bubble Sort Empty @arubuee Sun Mar 14, 2010 4:44 pm

Lucifer


Admin

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

https://jigyasa.forumotion.com

2Bubble Sort Empty @arubuee Sun Mar 14, 2010 4:47 pm

sneha



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]

Back to top  Message [Page 1 of 1]

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