Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is solution to exercise 4.3.6 wrong ? #457

Open
RyanTalbi opened this issue Aug 8, 2022 · 0 comments
Open

Is solution to exercise 4.3.6 wrong ? #457

RyanTalbi opened this issue Aug 8, 2022 · 0 comments

Comments

@RyanTalbi
Copy link

RyanTalbi commented Aug 8, 2022

I think there is a major error in the solution for the exercise 4.3.6. We pass from $$T(n) = c(n+34-2a)lg(n+34-2a)-c(n+34-2a)+n$$ to $$T(n) <= c(n+34-2a)lg(n+34-2a)$$ assuming c > 1 but we then pass from this to $$T(n) <= c(n-a)lg(n-a)$$ assuming a >= 34 but if a >= 34 then the previous step is not valid, if we have a >= 34 and c > 1 then we do have $c(n+34-2a) = c*n$ so we do not have $-c(n+34-2a)+n < 0$ so we can't pass from $$T(n) = c(n+34-2a)lg(n+34-2a)-c(n+34-2a)+n$$ to $$T(n) <= c(n+34-2a)lg(n+34-2a)$$.

@RyanTalbi RyanTalbi changed the title Exercise 4.3.6 Is solution to exercise 4.3.6 wrong ? Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant