Develop-implement method to identify numerically equivalent, Mechanical Engineering

For example, if one were provided with the set [3 1 3 -4 -6], the resulting answers would be [3 1 -4], [3 1 -4], an [3 3 -6], as these are the three sets of three values which sum to zero from the provided set. Notice that the first and second solution appear to be the same, but correspond to two solutions for the two different 3s in the provided set.

Your code should return the answer in 2D array format, where each row is a solution set (3 columns per row). If no solution sets can be found for a given input, the code should output a value of zero.

For this assignment you should find or develop an algorithm for finding these solutions. Once you have found or developed this algorithm, create a flowchart for this algorithm. Please conform to the algorithm format outlined in class.

Your code should be adequately commented, such that one would be able to understand your code by reading comments only. Your code should also include an initial code block giving a brief overview of how to use the function and your solution process, so that someone can query your program for this code block using the help command.

EXTRA CREDIT:

Develop and implement a method to identify and remove and solutions which are numerically equivalent, so that the result from your code doesn't have any repeated solutions. This should be able to match solutions which contain the same values but in different orders. This means that if the sets [3 1 -4] and [3 -4 1] are in the solution your method should still identify them as equivalent and only return one of them.

Posted Date: 3/25/2013 4:05:36 AM | Location : United States







Related Discussions:- Develop-implement method to identify numerically equivalent, Assignment Help, Ask Question on Develop-implement method to identify numerically equivalent, Get Answer, Expert's Help, Develop-implement method to identify numerically equivalent Discussions

Write discussion on Develop-implement method to identify numerically equivalent
Your posts are moderated
Related Questions
Axi s of symmetry If in diagram half part of diagram is mirror image of next ½ part, then there is a symmetry in diagram. The axis at which symmetry is create, called as axis

how to find out hte optimal sequence and determine the minimun total elapsed time associated with a given problem

Prove that energy is a property of system

A piston-cylinder assembly fitted with a paddle wheel contains air, initially at p1=30 lbf/in2, T1=540 °F, and V1=4 ft3. The air undergoes a process to a final state where p2=20 lb

Determine the angle of twist - solid steel shaft: A solid steel shaft 6 m long is fixed at each of the end. A torque of 3 kN-m is applied to the shaft at a section 2 m from on

Dryness fraction measurement: Sensible Hea t of Water or Heat of Liquid or Enthalpy of Liquid (h) Sol.: It is quantity of heat which is required to raise unit mass

please tell me names of machine involed in making sewing machine table with their work involved...

To select the project, if not already done. Due to above Problem's in Hydrostatic sensor paver machine, now the select the project and solves the problems and also the cost eff

a motorcycle is used to stunt show to go over a valley . if the initial speed at A is u m/s, determine a. the minimum U so that the motorcycle reaches the bank at B. b. the veloc

Can you give me the Prove of the bending Equation M/I=E/R=σ/Y