Bobble Sort
Step1: Start
Step2: K=1 to N-1 while Loop Step 3 & 4
Step3: Set PTR=1
Stpe4: while PTR≤N-K, Looping
Step5: if DATA [PTR]>DATA[PTR+1] then,
Swapping
DATA[PTR] & DATA[PTR+1]
Step6: PTR=PTR+1
Step7: End
No comments:
Post a Comment