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
Writing of a Welding Procedure specification (WPS ) A typical working procedure specification is written with all the factors of production in mind. Both experience and latest t

What is Hopper unit Two hydraulically operated folding type hoppers are provided on the front side of the machine. The capacity of the hopper is 4.25 CM.


Main Factors to be Considered when Selecting Material The main factors to be considered when selecting a material to meet some specific requirement are: Fitness of use,

what is hoop stress

Navy divers are called to rescue a group of office workers trapped in a basement under floodwater in Leeds, UK. The only access to the basement is via a 1.5 x 1.5 m horizontal hatc

the spring k2 is attached to a base that is moving vertically with displacement y=yo sin(wt).assume x>y.derive the equation of motion .find the natural frequency and derive the ste

How ca I make an opc & fpc chart

Can you show us - Overall length of external surfaces, cm In image Material Cast Overall length of external surfaces, cm 0 to 30 30 to 60 60 to 105 1

Q. Explain about Vertical Vessels? Vertical vessels shall normally be designed as self-supporting units, and shall resist overturn based upon wind or earthquake considerations.