Time complexity calculation in loop
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
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
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
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
New contributor
New contributor
asked 5 hours ago
Xinyi Chen
1
1
New contributor
New contributor
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
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