Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
546 views
in Information Technology by (113k points)
closed by
If algorithm A and another algorithm B take log2(n) and √n microseconds, respectively, to solve a problem, then the largest size n of a problem these algorithms can solve. respectively. in one second are_____ and _____.  
1. \({2^{{{10}^6}}}and\;{10^6}\)
2. \({2^{{{10}^6}}}and\;{10^{{12}}}\)
3. \({2^{{{10}^6}}}and\;{6.10^6}\)
4. \({2^{{{10}^6}}}and\;{6.10^{12}}\)

1 Answer

0 votes
by (114k points)
selected by
 
Best answer
Correct Answer - Option 2 : \({2^{{{10}^6}}}and\;{10^{{12}}}\)

The correct answer is option 2.
Explanation:

A microsecond is 10-6 seconds. Hence, one second =10microseconds

One hour=60x60x106= 3.6x10microseconds

One month=2.592x1012microseconds

One century=3.1104x1015microseconds

f(n)=logn in this case,the largest value n such that logn <=106.

We rewrite as, 2logn <= 2(10)^6 

thus, 21000000 = (210)100000 = (103)100000 = 10300000

Hence, log2(n) and √n, In one second

\({2^{{{10}^6}}}and\;{10^{{12}}}\) the value will be 106 and 106

Hence the correct answer is option 2.

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

...