Recent content by discoverer02

  1. D

    Why is my mergesort function only working for arrays up to three items?

    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...
  2. D

    Why is my mergesort function only working for arrays up to three items?

    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...
  3. D

    Why is my mergesort function only working for arrays up to three items?

    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...
  4. D

    Writing a Recursive Function for Placing n Queens on an n x n Chessboard

    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.
  5. D

    Writing a Recursive Function for Placing n Queens on an n x n Chessboard

    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...
  6. D

    Is {(sinx)^2, (cosx)^2} a Basis of W in Linear Algebra?

    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.
  7. D

    Is {(sinx)^2, (cosx)^2} a Basis of W in Linear Algebra?

    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...
  8. D

    Relationship between Linear Algebra and Differential equations

    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.
  9. D

    Relationship between Linear Algebra and Differential equations

    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:
  10. D

    Relationship between Linear Algebra and Differential equations

    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...
  11. D

    Can a Linear Transformation Be Onto If the Codomain's Dimension Is Higher?

    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...
  12. D

    Can a Linear Transformation Be Onto If the Codomain's Dimension Is Higher?

    I'm wondering the same thing, so there must be something that I'm not seeing. I'll think about it some more. Thanks.
  13. D

    Can a Linear Transformation Be Onto If the Codomain's Dimension Is Higher?

    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...
Back
Top