aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data Structures and Algorithms
  • Which of the following sorts runs linear time, when input...
Multiple choice

Which of the following sorts runs linear time, when input is drawn from a uniform distribution?

  1. Counting Sort

  2. Bucket Sort

  3. Decision Tree

  4. Merge Sort

  5. Direct Sequence

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

It runs linear time when input is drawn from a uniform distribution.

Keep practicing — related questions

  • Which of the following sorts can be viewed abstractly in terms of decision trees?
  • Which of the following sorts assumes that each of the n elements is an integer in the range 0 to k, for som...
  • Which of the following sorting algorithms has average-case and worst-case running time of O?
  • In which of the following sorts, we recursively chop the list into two sublist of almost equal sizes and wh...
  • In which of the following sorts, division into sublist is done through the choice and use of a pivot value,...
  • If I am given an infinite memory space, which algorithm will I use to sort a set of natural numbers with be...
  • If 0(nlogn) time is used in average case, which of the following sorting techniques is used?
  • What technique is used to get a good running time for an algorithm such as quick sort, which has bad worst ...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy