Sie sind auf Seite 1von 1

(BUBBLE SORT)

1. for I=L TO U
2. { for J=L TO [(U-1)-I]
3. { if AR[J]>AR[J+1] then
{
4.
temp=AR[J]
5.
AR[J]=AR[J+1]
6.
AR[J+1]=temp
}
}
}
7. END.

Das könnte Ihnen auch gefallen