Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.0k views
in Information Technology by (106k points)
closed by

Which of the given Options provides the increasing order of asymptotic complexity of functions f1, f2, f3, and f4?

f1(n) = 2n f2(n) = n3/2 f3(n) = n log2 n f4(n) = nlog2n


1. f3, f2, f4, f1
2. f3, f2, f1, f4
3. f2, f3, f1, f4
4. f2, f3, f4, f1

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 1 : f3, f2, f4, f1

The correct answer is option 1

Explanation:

Taking log base 2 on all the functions

 Function  Taking log  Taking a large number n = 220
 f1(n) = 2n  f1(n) = n× log22 = n  f1 = 220
 f2(n) = n3/2  f2(n) = 3/2 log2n  f2 = (3/2) × log2220= (3/2)× 20 =30
 f3(n) = n × log2 n  f3(n) = log2 n +log2 log2 n  f3 = log2220 +log2 log2 220 = 25
 f4(n) = nlog2n  f4(n) = log2 n × log2 n

 

 f4 =  log220× log2 220= 20 × 20=400

 Increasing order of asymptotic complexity of functions f1, f2, f3 and f4  is f3 < f2 <f4 <​ f1

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...