COULAMB SORTING
imagine there is q1,q2,q3,q4,q5,q6 has givens
then f=q1.q2/rsquqre same others f=q1.q3/r squqre and f= q1.q3/r squqre
liek to tends to q6
then the value taht will be less then taht pair will come in sorted manners on froce bahalves
like imagine if it coems q1.q3 teh in first and second place q1,q3
tehn 'nxt iteration for q2
f=q2.q3/rsquqre same otheers f=q2.q4/rsuqre f=q2.q5/rsuare f=q2.q6/rsuae tehen teh leatsvalue is cocmin
q2.q5 then its compaers the
q2.q5/rsuqre with q1.q3/r squqre if it less then by q2.q5/rsquqre then it comes that q2.q5 will be comes firts tehn q1,q3
pairs
same way whne thsiiteration will traces then we comes on sortings
Comments
Post a Comment