the open box problem

This is a discussion on the open box problem within the A Brief History of Cprogramming.com forums, part of the Community Boards category; lo. Being a general retard, I am having difficulty with my coursework, and the deadline grows ever nearer. The problem ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220

    Question the open box problem

    lo.
    Being a general retard, I am having difficulty with my coursework, and the deadline grows ever nearer.

    The problem stated is:
    An open box is to be made from a sheet of card
    Identical squares are cut off the four corners of the card as shown in Figure 1
    Code:
    ____________________
    |_|...............|_|
    | .               . |
    | .               . |
    | .               . |
    | .    Figure 1   . |
    | .               . |
    | .               . |
    |_................._|
    |_|_______________|_|
    The card is then folded along the dotted lines to make a box.

    The main aim of this activity is to determine the size of the square cut which makes the volume of the box as large as possible for any given rectangular sheet of card.

    Part one
    For any sized square sheet of card, investigate the size of the cut out square which makes an open box of the largest volume.

    Part two
    For any sized rectangular sheet of card, investigate the size of the cut out square which makes an open box of the largest volume.

    You may do practical work and/or work in symbols.
    Your teacher will help you choose the best way of working on the problem
    I'm not expecting you to do my homework for me, but it would be extremely helpful if you could point me in the right direction.

    I have done:
    I have figured out the formula for working out the volume for the dimensions:
    cutoffwidth * (lengthofcard - 2 * cutoffwidth) * (widthofcard - 2 *cutoffwidth)

    and I have discussed how to calculate the formula for finding a square piece of cards' optimal cutoff width from it's dimensions, which is:
    Optimal Cutoff Width of Square = Square's Width (or length) / 6

    being mentally handicapped when it comes to mathematics, I am stuck on the bit which involves working out how to find the optimal cutoff width for a rectangle. The only method I have been able to employ so far is brute force.

    Hope at least one of you has understood that.
    Furthermore, I hope that person can help.

    Thanks in advance.

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Are you in calc?

    EDIT: I don't feel like waiting around so I'll give you the calc way of doing it which can be modified for other courses. You'd want to take the derivative of the volume function.


    V=(l-2s)*(w-2s)*s

    where l=length of piece, w=width of piece, s=length of square cut out


    From here, expand and get
    V=4s^3 - 2ls^2 - 2ws^2 + lws

    Now, take the derivative of V so that you can find the maximum of V (If you aren't in calc, you are going to have to find the max graphically).
    Last edited by golfinguy4; 02-27-2003 at 01:45 PM.

  3. #3
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    this is a question of a maximum (extrema? I don't remember what they called it) Your function of volume is a function of the length of a side of the cut out boxes. simply calculate the maximum on the graph.

    there's probably a more basic way but I know this can be done with a little basic calc. simply derive and find out where the f'(x) is 0.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  4. #4
    Cheesy Poofs! PJYelton's Avatar
    Join Date
    Sep 2002
    Location
    Boulder
    Posts
    1,728
    if w=width of card, l=length of card, and x is the size of the box you are cutting out, then this is the equation:

    x*(l-2x)*(w-2x)=y

    To solve, you can graph this equation with l and w being whatever value you want, and your answer is where the graph is maximum and positive. The other way (and its been awhile since I've done this so I might be a little wrong) is to take the derivitive of the above equation for any value of w and l, set it equal to zero, and solve for x, and this should be your maximum as well.
    Last edited by PJYelton; 02-27-2003 at 02:58 PM.

  5. #5
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Originally posted by golfinguy4
    Are you in calc?
    No, I'm in England.

    Don't know what calc would be.


    Thanks for the help so far. A friend of mine will be helping me with this, for now I'll just plot a few meaningless graphs to make it look like I've done work, and I might see a pattern in the mean time.

  6. #6
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,806
    This website has a bunch of problems dealing with these types of Min/Max problems. You should be able to get an idea of what you need to do by looking there.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  7. #7
    duhman
    Guest
    duh ! how did you cook up that name 'hk_mp5kpdw' ?

  8. #8
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Calc would be calculus.

  9. #9
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,806
    duh ! how did you cook up that name 'hk_mp5kpdw' ?
    Click here!
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with Dialog Box
    By KonArtis in forum Windows Programming
    Replies: 3
    Last Post: 01-04-2005, 02:28 PM
  2. Command to open the 'Open Dialog Box' found in most programs.
    By OmegaFirebolt in forum Windows Programming
    Replies: 5
    Last Post: 03-16-2003, 08:58 PM
  3. problem with the open dialog box
    By stallion in forum Windows Programming
    Replies: 13
    Last Post: 02-19-2003, 08:28 AM
  4. Dialog Box Problem....
    By minime6696 in forum Windows Programming
    Replies: 2
    Last Post: 01-08-2002, 08:24 PM
  5. I have a problem in an EDIT box
    By SyntaxBubble in forum Windows Programming
    Replies: 1
    Last Post: 10-19-2001, 02:31 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21