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
asymptotic complexity of iterative loops
[closed]
Nayyir
asked
in
Algorithms
Sep 30, 2018
closed
Oct 3, 2018
by
Shaik Masthan
150
views
0
votes
0
votes
closed as a duplicate of:
MIT ASSIGNMENT
Hii guys.Someone please have a look at this and tell me if I got it right.
for(i=1;i<=n;i++)
for(j=1;j<=i^2;j++)
for(k=1;k<=j;k++)
printf("welcome");
what is the time complexity? I got it to be O(n^4).
Nayyir
asked
in
Algorithms
Sep 30, 2018
closed
Oct 3, 2018
by
Shaik Masthan
by
Nayyir
150
views
comment
Follow
share this
share
3 Comments
by
Shaik Masthan
commented
Sep 30, 2018
reply
Follow
share this
I am getting $\sum_{I=1}^{n}i^{4}$
0
0
by
Nayyir
commented
Sep 30, 2018
reply
Follow
share this
I did it many times and finally found O(n^5) to be the resulting dominant term in the expansion of summation . Still not sure though
0
0
by
Swapnil Naik
commented
Sep 30, 2018
reply
Follow
share this
https://gateoverflow.in/247729/mit-assignment
0
0
Please
log in
or
register
to add a comment.
0
Answers
← Previous
Next →
← Previous in category
Next in category →
Related questions
0
votes
0
votes
0
answers
1
usdid
asked
in
Algorithms
Apr 16, 2022
148
views
a) what is the iterative equation showing the running time of the algorithm whose pseudocode is given below? b) What is this repeated equation in asymptotic notation using the Master's theorem. c) What is the same repeated equation in asymptotic notation using the recursion tree method.
usdid
asked
in
Algorithms
Apr 16, 2022
by
usdid
148
views
asymptotic-notations
time-complexity
algorithms
1
vote
1
vote
2
answers
2
sh!va
asked
in
Algorithms
Dec 4, 2016
613
views
Find the time complexity of given loops
for (int i = 1; i <=m; i += c) { ---do something ---} for (int i = 1; i <=n; i += c) { ---do something --- } What will the the tiem complexity of given code pseudococde? A. O (max(m,n)) B. O(min(m,n)) C. O( m+n) D. O(mn)
sh!va
asked
in
Algorithms
Dec 4, 2016
by
sh!va
613
views
algorithms
time-complexity
2
votes
2
votes
3
answers
3
Meenakshi Sharma
asked
in
Algorithms
Sep 4, 2016
1,498
views
time complexity of for loops
For(I=1 ; I<=n ; I++) { For(J=1 ; J<=I ; J++) { For(K=1 ; K<=n^5 ; K=15 × K) { x=y+z; } } } What is the time complexity of above code ?
Meenakshi Sharma
asked
in
Algorithms
Sep 4, 2016
by
Meenakshi Sharma
1.5k
views
algorithms
time-complexity
0
votes
0
votes
1
answer
4
Siramdas Vamshidhar
asked
in
Algorithms
Dec 9, 2014
214
views
time complexity of for loops of program is?
for(i=1;i<=n;i++) for(j=1;j<=n;j=j+i) x=x+1;
Siramdas Vamshidhar
asked
in
Algorithms
Dec 9, 2014
by
Siramdas Vamshidhar
214
views
algorithms
time-complexity
Subscribe to GATE CSE 2023 Test Series
Subscribe to GO Classes for GATE CSE 2023
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
GATE CSE 2023 Paper & Analysis - Memory Based
From GATE to Australia
DRDO Previous Year Papers
From Rank 4200 to 64: My Journey to Success in GATE CSE Exam
What are the key things to focus on during the final 10-15 days before the GATE exam to improve performance?
Subjects
All categories
General Aptitude
(2.5k)
Engineering Mathematics
(9.3k)
Digital Logic
(3.3k)
Programming and DS
(5.9k)
Algorithms
(4.6k)
Theory of Computation
(6.7k)
Compiler Design
(2.3k)
Operating System
(5.0k)
Databases
(4.6k)
CO and Architecture
(3.8k)
Computer Networks
(4.6k)
Non GATE
(1.3k)
Others
(2.4k)
Admissions
(649)
Exam Queries
(842)
Tier 1 Placement Questions
(17)
Job Queries
(74)
Projects
(9)
Unknown Category
(853)
Recent Blog Comments
when is next analysis starting?
This guy was just exceptional. I remember hearing...
Inspirational! Found the right Blog at the right...
That was my second attempt. I already had notes,...
Sorry to break the news, but: I see a few flaws...
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy