Disusun Oleh:
Yoga Saputra R.
Nim : E31200356
Arrays.sort(numbers);
}
2. Complete the following table using O notation. Under the notes section
describe which would on average perform the best?
Algorithm Worst Average Best Notes
Selection O(n2) O(n2) O(n2) Selection sort terkenal simpel
Comparasions Comparasion Comporation dan memiliki keunggulan
O(n) 0(n) Swaps O(1)swaps performa dibandingkan dengan
pertukaran algoritma yang lebih rumit
dalam situasi tertentu