Ask your own question, for FREE!
Computer Science 9 Online
OpenStudy (tasreeb):

plz let me know how to implement of bubble sort algorithm(DATA,N)

OpenStudy (anonymous):

what is (DATA,N)

OpenStudy (tasreeb):

here DATA is an array with N elements

OpenStudy (rsmith6559):

Check out Wikipedia for bubble sort. They'll probably have pseudo code.

OpenStudy (tasreeb):

ok thanks

OpenStudy (anonymous):

1. start 2. for(i=1;i≤n;i++) read a[i]; 3. for(i=n-1;i≥1;i--) for(j=1;j≤i;j++) { if( a[j] > a[j+1] ) { temp=a[j] a[j]=a[j+1] a[j+1] = temp } }

OpenStudy (tasreeb):

thanks dear!

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!