Develop-implement method to identify numerically equivalent, Mechanical Engineering

Assignment Help:

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.


Related Discussions:- Develop-implement method to identify numerically equivalent

Shielding gas-helium, Helium Helium (He) is an inert, very light mon...

Helium Helium (He) is an inert, very light monoatomic gas, of atomic weight of 4. It is obtained by separation from natural gas. Helium is refined to a purity of min.  99.99

Jet pump, full detail of jet pump nozzle design

full detail of jet pump nozzle design

Applications of co2 welding, APPLICATIONS OF CO 2 WELDING CO 2 weldin...

APPLICATIONS OF CO 2 WELDING CO 2 welding is extremely useful for joining thin sheets of thickness range 1.0 to 2.0 mm because it is possible to keep the heat input low to av

Water overflow in the sink, Water flows into the sink shown in figure 5 at ...

Water flows into the sink shown in figure 5 at a flow rate of 8 L/min. If the drain is closed, the water will eventually flow through the overflow drain holes rather than over the

Deadlock-able non-resolvable net system, See the Petri net represent in fol...

See the Petri net represent in following figures (a) and (b) as represented in the figure for analysis and depiction of qualitative pathological behaviors. Figure: (a): An

Find the velocity of spacecraft, A space craft ‘A' has velocity 0.9 c relat...

A space craft ‘A' has velocity 0.9 c relative to the earth. Another spacecraft ‘B' overtakes A with relative velocity 0.5 c. Find the velocity of spacecraft B relative to the groun

Dimension commands-autocad, Dimension Commands: For example, the illust...

Dimension Commands: For example, the illustration above shows two different dimension styles. The one on the left is the default style known as STANDARD. If you do not create a

Heat balance sheet for an i.c engine, (a) Briefly explain the following per...

(a) Briefly explain the following performance parameters of I.C. engine : (i) Indicated men effective pressure (Pim) (ii) Brake power (BP) (iii) Indicated power (IP) (

Automated material handling, Automated Material Handling We have dealt...

Automated Material Handling We have dealt along with the automated guided vehicles and Robots utilized in the industry. Because of the industrial automation, various changes h

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd