The complexity of Bubble sort algorithm is

A O(n)
B O (logn)
C O (n2)
D O (n log n)

Correct Answer: O(n)

Bubble sort has a worst - case and average complexity of О(n2), where n is the number of items being sorted. Most practical sorting algorithms have substantially better worst - case or average complexity, often O(n log n). When the list is already sorted (best - case), the complexity of bubble sort is only O(n). Class: Sorting algorithm Data structure: Array
Bissoy MCQ

Related Questions

Bubble sort algorithm sorts n data items using
For a given design of bubble cap, the number of bubble caps to be used per tray is set by the
The complexity of Binary search algorithm is ---
The complexity of Binary search algorithm is ___
What is the need for bubble charts?
What happens when some charge is placed on a soap bubble?

Next steps