Monday

March 30, 2015

March 30, 2015

Posted by **su** on Sunday, October 4, 2009 at 6:17pm.

- computers -
**MathMate**, Sunday, October 4, 2009 at 6:35pmDo the three integers come in an array or in three distinct variables?

Can you clarify if the sorting algorithm should work for 3 (and no more) or is it a general algorithm that you are supposed to do?

A general one is not much more complicated, but requires the use of for-loops.

- computers -
**MathMate**, Sunday, October 4, 2009 at 6:46pmFor a general sorting using bubble sort (the simplest and the slowest):

N=number of items

A(i)=item i from array A

loop i from 1 to N-1

loop j from i+1 to N

if(A(i)>A(j)) exchange A(i) and A(j)

end loop j

end loop i

**Answer this Question**

**Related Questions**

computers - The recursive algorithm of the 4th Section of the chapter "...

algebra - consider three consecutive even intergers, the least of which is x. ...

8th grade math - the sum of three intergers is 193.The smaller two are ...

computers - Write an algorithm, in English, to solve the following problem. Be ...

computers:algorithm - Write a pseudocode to find the average of any amount of ...

english - Write if the sentence is simple, compound,or complex. 1-I'd like to ...

Math - I am a triangle that has been translated to rest on (-1, -1),(-1,3), and...

Computers - Problem-Solving 1. Develop an algorithm or write pseudocode to ...

English - Thank you very much! I still haven't found anything on biodiversity in...

Need help, 3 questions - 19. Most readers will wait patiently for the next book ...