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
Find out the strain energy stored: A close coiled spring is subjected into an axial moment of 16 N-m. If the spring contains 15 coils with wire diameter of 10 mm and mean coil

Effect of curing conditions on strength, porosity, absorptivity, and shrinkage of concrete in hot and dry climate Abstract This term paper will study the effect of the wet a

Wall-type bunds / dikes for storage compounds should be from 0.5 m to 1.5 m high (1.5 ft. - 5 ft. - check local codes and regulations), depending on the required containment capaci

we have to design crane we did already with calculation remaining is process planning

Calculate the weight of body and the coefficient of friction: Q: Bodies resting on rough horizontal plane required pull of 24N inclined at 30ยบ to the plane just to move it. I

Calculate mean effective pressure of engine: A 4 stroke diesel engine is having length of 20 cm and diameter of 16 cm. The engine is generating indicated power of 25 KW when

Calculate for the resultant of the force system: A rectangle ABCD is having sides AB = CD = 80 mm and BC = DA = 60 mm. Forces of 150 N each of them act along AB a

Method of joint: How you can find out force in the member of truss by using method of joint? Sol.: In this, after determining the reactions at supports, the equilibrium

How to design a flat form tool when the form of the workpiece is given.

Internal and external diameters - solid shaft: Two shafts are of the similar material, length & weight. One is solid & of 100 mm diameter, the outer is hollow. If hollow shaft