Đ Đinh Yến New member Sep 21, 2021 #1 What is the average case time complexity of odd-even sort? A. O B. O(n log n) C. O(n$^{2}$) D. O(log n)
What is the average case time complexity of odd-even sort? A. O B. O(n log n) C. O(n$^{2}$) D. O(log n)
N Nguyễn Tâm Hảo New member Sep 21, 2021 #2 Answer: c Explanation: Odd-even sort takes O(n$^{2}$) time on average as it keeps on applying bubble sort on the elements in two phases until they are sorted. Upvote 0 Downvote
Answer: c Explanation: Odd-even sort takes O(n$^{2}$) time on average as it keeps on applying bubble sort on the elements in two phases until they are sorted.