Time complexity calculation in loop

Multi tool use
up vote
0
down vote
favorite
a problem about time complexity
int j = 2
while (j < n) {
int k = j
while (k < n) {
sum += a[k] * b[k]
k += n^1/3 * logn
}
j = 2^j
}
The T(n) = ?
Thank u so much!
time-complexity
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
a problem about time complexity
int j = 2
while (j < n) {
int k = j
while (k < n) {
sum += a[k] * b[k]
k += n^1/3 * logn
}
j = 2^j
}
The T(n) = ?
Thank u so much!
time-complexity
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What do you need help with? Can you post any errors?
– Mr.Turtle
5 hours ago
Just wanna know how to calculate the time complexity of this
– Xinyi Chen
5 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
a problem about time complexity
int j = 2
while (j < n) {
int k = j
while (k < n) {
sum += a[k] * b[k]
k += n^1/3 * logn
}
j = 2^j
}
The T(n) = ?
Thank u so much!
time-complexity
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
a problem about time complexity
int j = 2
while (j < n) {
int k = j
while (k < n) {
sum += a[k] * b[k]
k += n^1/3 * logn
}
j = 2^j
}
The T(n) = ?
Thank u so much!
time-complexity
time-complexity
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 5 hours ago


Xinyi Chen
1
1
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Xinyi Chen is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
What do you need help with? Can you post any errors?
– Mr.Turtle
5 hours ago
Just wanna know how to calculate the time complexity of this
– Xinyi Chen
5 hours ago
add a comment |
What do you need help with? Can you post any errors?
– Mr.Turtle
5 hours ago
Just wanna know how to calculate the time complexity of this
– Xinyi Chen
5 hours ago
What do you need help with? Can you post any errors?
– Mr.Turtle
5 hours ago
What do you need help with? Can you post any errors?
– Mr.Turtle
5 hours ago
Just wanna know how to calculate the time complexity of this
– Xinyi Chen
5 hours ago
Just wanna know how to calculate the time complexity of this
– Xinyi Chen
5 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Xinyi Chen is a new contributor. Be nice, and check out our Code of Conduct.
draft saved
draft discarded
Xinyi Chen is a new contributor. Be nice, and check out our Code of Conduct.
Xinyi Chen is a new contributor. Be nice, and check out our Code of Conduct.
Xinyi Chen is a new contributor. Be nice, and check out our Code of Conduct.
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53203330%2ftime-complexity-calculation-in-loop%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
3qr9,7,tX Hgb8cU,BQznR0Hn,vCkVxNXm,2BSAKlIDL3p,WRj,1715sS1dbVJCNy SgIAD9Rgl6ofJ Tx5
What do you need help with? Can you post any errors?
– Mr.Turtle
5 hours ago
Just wanna know how to calculate the time complexity of this
– Xinyi Chen
5 hours ago