Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Algorithms-Time Complexity
Ayush Upadhyaya
asked
in
Algorithms
Jul 14, 2018
727
views
1
vote
1
vote
What is the time complexity of the below code?
for($k=n^{10};k \geq 5;k=k^{\frac{1}{7}},k=k^2$)
{ $k=k^5;$
$k=k-10$
}
My answer comes to be $O(log_{\frac{7}{10}}log_5(n^{10}))$
Please verify.
time-complexity
algorithms
asymptotic-notation
Ayush Upadhyaya
asked
in
Algorithms
Jul 14, 2018
by
Ayush Upadhyaya
727
views
answer
comment
Follow
share this
share
4 Comments
Show 9 previous comments
by
Soumya29
commented
Jul 16, 2018
reply
Follow
share this
@Shubham...
I am getting $2^{nd}$ one and a different answer :(
Each time we are taking $(\frac{10}{7})^{th}$ power of modified $k$ and that last value of k should be $\geq 5$. So shouldn't it be - $((n^{10})^{\frac{10}{7}})^x ?$
0
0
by
Shubham Shukla 6
commented
Jul 16, 2018
reply
Follow
share this
@saumya how?
we are doing everytime k^10/7...if you apply two times than it will be k^(10/7^2)...similarly we are applying it for x times so k^((10/7)^x)..
0
0
by
Soumya29
commented
Jul 16, 2018
reply
Follow
share this
Ohh yes. Thank you @Shubham :)
0
0
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
1
vote
1
vote
1
answer
1
Markzuck
asked
in
Algorithms
Jan 6, 2019
506
views
MadeEasy Test Series: Algorithms - Time Complexity
Please show the ideal way to deal with such comparisons as I am getting g>=f IN genral what logic shall be followed to analyse such complex comparions?
Markzuck
asked
in
Algorithms
Jan 6, 2019
by
Markzuck
506
views
algorithms
asymptotic-notation
made-easy-test-series
time-complexity
0
votes
0
votes
1
answer
2
Markzuck
asked
in
Algorithms
Dec 29, 2018
833
views
MadeEasy Test Series 2019: Algorithms - Time complexity
cant we write the recurrance relation for bar() as T(n) = 5T(n-1) + c, like cant we take both the recurrance call as combined as both have same parameter? and if not, then how to solve such?
Markzuck
asked
in
Algorithms
Dec 29, 2018
by
Markzuck
833
views
time-complexity
algorithms
made-easy-test-series
asymptotic-notation
2
votes
2
votes
1
answer
3
gauravkc
asked
in
Algorithms
Apr 5, 2018
897
views
Algorithms time Complexity
What is the time complexity of this code?
gauravkc
asked
in
Algorithms
Apr 5, 2018
by
gauravkc
897
views
time-complexity
algorithms
asymptotic-notation
test-series
0
votes
0
votes
1
answer
4
Naveen Pandey
asked
in
Algorithms
Jan 8, 2017
498
views
Algorithms: Finding time complexity
T(n)=2T(log n)+c c is a constant. Base condition is if(n<2) return 1 What will be the tightest bound on time complexity?
Naveen Pandey
asked
in
Algorithms
Jan 8, 2017
by
Naveen Pandey
498
views
time-complexity
algorithms
asymptotic-notation
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy