Question Detail

The complexity of Bubble sort algorithm is

  • O(n)
  • O(log n)
  • O(n2)
  • O(n log n)
Similar Questions :

1. Recursive problems are implemented by

  • queues
  • stacks
  • linked lists
  • strings

2. A graph with one or more edges is at least

  • 1-chromatic
  • 2-chromatic
  • 3-chromatic
  • 4-chromatic

3. Which sorting method is slowest

  • Quick sort
  • Heap sort
  • Shell sort
  • Bubble sort

4. Preorder is

  • depth first order
  • breadth first order
  • topological order
  • linear order

5. minimum number of stacks of size n required to implement a queue of size n

  • One
  • Two
  • Three
  • Four
Read more from - Data Structure Questions Answers - Chapter 1