Thanks AKG.
I figured it out. The book's Merge() function isn't written very efficiently. It requires a tempArray much larger than necessary in order to keep the items in the different arrays in sync during the sorting process. I changed the size of the array from the actual number of...
Sorry about that. I should have been much more specific.
I pulled the mergeSort and merge functions straight out of the textbook. The only difference is one parameter which is my Array class and the tempArray created in Merge() which is also my Array class.
The mergeSort function is...
I'm not sure that this post belongs here, but I'll give it a try. I'm having a devil of a time :devil: trying to figure out why my program won't work.
The assignment was to create and array class consisting of:
A constructor that takes and integer for the size of the array
A constructor...
Sorry for not being clear. By solutions, I mean all the possible ways I can place the Queens safely. ie. No Queen can attack another Queen on the board.
I have an assignment to write a recursive function that will safely place n Queens on an n x n chessboard. This wasn't all that difficult to figure out.
For extra credit I'm supposed to write another function(s) (recursive?) that figures out all the possible solutions. This is, so far...
Thanks for your reply.
For the Wronskian, W(x) = -Sin(2x). There's an definitely an x where W(x) is not equal to 0, so {(sinx)^2, (cosx)^2} are linearly independent.
Linear Algebra -- Basis
I had the following problem on an exam this morning and it kind of threw me. I'd appreciate it if someone could review my answers and reasoning and let me know if I answered correctly.
W is a subset of F and spanned by {3, (sinx)^2, (cosx)^2}
a) Prove W is a...
You're absolutely right. I guess I was caught up in the moment. I really had to work hard to stay on top of the linear algebra that leads up to this revelation.
In the long run, I'm sure it only gets tougher.
Nevermind.
We went over everything once more and finally went over some examples. Solving higher order homogeneous linear O.D.E.'s couldn't be easier. It's like a breath of fresh air after a month of sometimes grueling linear algebra.
:biggrin:
I just came from a class lecture that tied together the relationship between linear algebra and differential equations. The lecture dealt only with homogeneous linear equations. I understood about 90% of it and want to try to tie together the loose ends.
In a nutshell, if I have a...
OK, let's see what I've got so far:
A basis of W would consist of 3 elements, A basis of V would consist of 2 elements.
T(x + y ) = T(x ) + T(y )
T(kx ) = kT(x )
I also have the equation dim(ker(T)) + dim(R(T)) = dim(R2) = 2
Anyway you look at it dim(R(T)) <= 2. This means that any...
Linear Transformation -- Onto
I'm having trouble with the first part of the following problem:
Let T be a linear transformation from an n-dimensional space V into an m-dimensional space W.
a) If m>n, show that T cannot be a mapping from V onto W.
b) if m<n, show that T cannot be...