What is the complexity of the bubble sort algorithm in the worst case scenario?
a. O(n^2)
b. O(n)
c. O(2^n)
d. O(log(n))
a. O(n^2)
For an unsorted set of data, bubble sort is not an efficient solution.
Computer Science & Information Technology
You might also like to view...
If the Split Form Datasheet property is set to Read Only, editing cannot be done in the datasheet section
Indicate whether the statement is true or false
Computer Science & Information Technology
In a for statement, a loop control variable is initialized, tested, and ____________________.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology