aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Test 4 - Algorithms | Computer Science(CS)
  • The running time of the following algorithm Procedure A(n...
Multiple choice

The running time of the following algorithm Procedure A(n) If n <= 2 return (1) else return (A($|\sqrt n|$)); Is best described by

  1. 0(n)

  2. 0(log n)

  3. 0(loglog n)

  4. 0(1)

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

Keep practicing — related questions

  • What is the order of growth of the running time of an algorithm, if its running time is: T(n) = [n(n log n ...
  • The running time of an algorithm is represented by the following recurrence relation: $T(n) = \begin{cases}...
  • The running time of an algorithm is represented by the following recurrence relation: $T(n) = \begin{cases}...
  • Let w(n) and A(n) denote respectively, the worst case and average case running time of an algorithm execute...
  • Let w(n) and A(n) denote respectively, the worst case and average case running time of an algorithm execute...
  • Let W(n) and A(n) denote respectively, the worst case and average case running time of an algorithm execute...
  • What is the running time of the code written below. myfn(int n) if n<1 then return
  • Consider the following C functions: int f1(int n) { If(n == 0 | | n == 1) return n; else return (2 * f1(n -...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Data Structures and Algorithms (1518 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy