Recent content by kasper_2211
-
K
Solving recurence T(n)=T(n-1)+O(n lg n)
Here is a, maybe, better attempt at a solution. 1. Homework Statement I am trying to solve this here recurrence : T(n)=T(n-1)+O(n lg n). I am trying to do it by guessing the solution, and then use substitution to prove it right. I think that I am way off though...2. Homework Equations...- kasper_2211
- Post #2
- Forum: Engineering and Comp Sci Homework Help
-
K
Solving recurence T(n)=T(n-1)+O(n lg n)
Homework Statement I am trying to solve this here recurrence : T(n)=T(n-1)+O(n lg n). I am trying to do it by guessing the solution, and then use substitution to prove it right. I think that I am way off though...Homework Equations T(n)=T(n-1)+O(n lg n). lg n = log_2 nThe Attempt at a Solution...- kasper_2211
- Thread
- Replies: 1
- Forum: Engineering and Comp Sci Homework Help
-
K
What is the relationship between C.D^n.F and A^n in matrix algebra?
Oh, thanks a lot for the reply. I've never heard of similar matrices before (this is my first week of linear algebra), but i looked it up and it got me going. So yeah, thanks.- kasper_2211
- Post #3
- Forum: Precalculus Mathematics Homework Help
-
K
What is the relationship between C.D^n.F and A^n in matrix algebra?
Homework Statement Given 3 matrices C, D, F and another matrix A, can i say anything in general about the relationship between C.D^n.F and A^n if i know that F = C^-1 and that C.D.F = A. Homework Equations The Attempt at a Solution For example, If C.D.F = A then (C.D.F)^2 = A^2...- kasper_2211
- Thread
- Relationship
- Replies: 2
- Forum: Precalculus Mathematics Homework Help
-
K
What is the formula to prove algorithm A is O(logN) based on given constraints?
Obviously my "proof" is not correct. Just forget it.- kasper_2211
- Post #2
- Forum: Precalculus Mathematics Homework Help
-
K
What is the formula to prove algorithm A is O(logN) based on given constraints?
Homework Statement Given an algorithm A i need to figure out a formula that can be used to prove that the algorithm is O(logN). I will try to avoid the details of the algorithm, since i need help with the math only. I think all you need to know is that A takes two arguments i and j. So you...- kasper_2211
- Thread
- Inequalities
- Replies: 1
- Forum: Precalculus Mathematics Homework Help
-
K
Proof by induction (Implication)
Thanks a lot! I think i got it now. I will post the final proof here when the homework is turned in (don't want to get in trouble for posting the final solution before that). But thanks a lot for the help.- kasper_2211
- Post #12
- Forum: Engineering and Comp Sci Homework Help
-
K
Proof by induction (Implication)
Or maybe i need to show that if I call A with j - i < 2^(n+1), then for the first recursive call j - i will be less than 2^n, and then by the induction hypothesis that will imply A(i, j) <= n which is less than n + 1?? The first step in the algorithm is to cut the list in half...so when i call A...- kasper_2211
- Post #10
- Forum: Engineering and Comp Sci Homework Help
-
K
Proof by induction (Implication)
Ok, so now i "completely" understand the logic behind the proof. Show basecase, j - i < 1 => A(i,j) <= 0 Now assume that, j - i < 2^n => A(i, j) <= n for some arbitrary n. This is the induction hypothesis. Now assume that, j - i < 2^(n+1) and show that this implies A(i, j) <= n +1 BUT, i...- kasper_2211
- Post #9
- Forum: Engineering and Comp Sci Homework Help
-
K
Proof by induction (Implication)
Thanks! That got me started! I can find and prove the base case. I did not write it in the problem statement, but by definition a call A(i, i) = 0. So if j - i < 1, then j = i and then A(i, i) = 0. So the base case is ok. So, i guess for the next part i need something similar. I am still...- kasper_2211
- Post #7
- Forum: Engineering and Comp Sci Homework Help
-
K
Proof by induction (Implication)
Yeah, i wish i could explain things better. The way the algorithm is called is by A(1, N), where N is the length of the sequence T (the algorithm is not actually given a list T as input, since it's not "a real algorithm"). So N = 12 in the example A(1, 12). The algorithm is given parameters 1...- kasper_2211
- Post #5
- Forum: Engineering and Comp Sci Homework Help
-
K
Proof by induction (Implication)
I pushed the wrong button and published some gibberish before i was finished writing. Sorry about that.- kasper_2211
- Post #3
- Forum: Engineering and Comp Sci Homework Help
-
K
Proof by induction (Implication)
Homework Statement The problem statement is as follows: Let T be a ordered list(sequence) with N entrys. Prove by induction that, j-i< 2^{n} \Rightarrow A(i,j) \leq n for all integers i, j, n where 1 \leq i \leq j \leq N and n \geq 0 A(i, j) is the number of steps taken by a certain...- kasper_2211
- Thread
- implication Induction Proof
- Replies: 11
- Forum: Engineering and Comp Sci Homework Help