際際滷

際際滷Share a Scribd company logo
Bai tap
Cho vi du: duoi dang mot day so tu 5 so tro len. Chay cac vi du do voi tung thuat toan tuong
ung:
 Selection O(n2
)
 Interchange O(n2
)
 Merge Sort O(n2
)
 Insertion O(n2
)
 Bubble O(n2
)
 Heap O(n log n) B畉o 畉m
 Quick O(n log n) Th畛i gian th畛c hi畛n nhanh nh畉t!
 Bin Sort (Radix Sort)
Yeu cau: Chay tung buoc chi tiet cua Thuat toan. Khong dung cac vi du da cho trong bai giang.

More Related Content

Bai tap so 4

  • 1. Bai tap Cho vi du: duoi dang mot day so tu 5 so tro len. Chay cac vi du do voi tung thuat toan tuong ung: Selection O(n2 ) Interchange O(n2 ) Merge Sort O(n2 ) Insertion O(n2 ) Bubble O(n2 ) Heap O(n log n) B畉o 畉m Quick O(n log n) Th畛i gian th畛c hi畛n nhanh nh畉t! Bin Sort (Radix Sort) Yeu cau: Chay tung buoc chi tiet cua Thuat toan. Khong dung cac vi du da cho trong bai giang.