Recent content by jsmith0476

  1. J

    How to Correct Recursive Methods for Array Manipulations?

    Thank you! I got them all to work! Your help is very much appreciated
  2. J

    How to Correct Recursive Methods for Array Manipulations?

    Homework Statement Ok. I am supposed to write a recursive method for the following: 1) public static double computeSumAtOdd(double[] numbers, int startIndex, int endIndex) - finds the sum at all the odd indexes of the array 2) public static double computePositiveSum(double[] numbers...
  3. J

    If A,B denumerable prove AUB denumerable

    Homework Statement Prove that if A and B are denumerable sets, not necessarily disjoint, then AUB is denumerable. Homework Equations The Attempt at a Solution So I started my saying that since A and B are denumerable then, f:N-->A and g:N-->B are bijections. The I defined h(n) in...
  4. J

    Defining a Function from a Set: A Practical Guide

    So I have been reading some other posts and I think I understand it a bit more. Tell me if this would be right: f( {2} ) = 2, f( {1,2} ) = 1 + 2 = 3, f( {1,3} ) = 1 + 3 = 4, f( {2,5} ) = 2 + 5 = 7, f( {3,4,5} ) = 3 + 4 + 5 = 12. And so if I were to find the range of f it would be f =...
  5. J

    Defining a Function from a Set: A Practical Guide

    Let A = {{1,2},{1,3},{2},{2,5},{3,4,5}}. Define f : A-->N by f(a)=the sum of the elements of a (for all a that are a member of A). I am just not sure how to define a function from a set. I have been really sick and haven't been able to make it to class :( Can someone point me in the right...
Back
Top