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

Atmospheric pressure and gauge pressure - thermodynamics, Atmospheri c Pr...

Atmospheri c Pressure (P atm ): It is pressure exerted by atmospheric air on any surface. It can be measured by a barometer. The standard values of it are; 1 P atm = 760

Nature of bending stress, Natur e of Bending Stress If the beam is not...

Natur e of Bending Stress If the beam is not loaded, it will not bend as shown in the figure-a. But if the beam is loaded, it will bend as shown in the figure-b, whatever may

How long does it take a plane, How long does it take a plane, traveling at ...

How long does it take a plane, traveling at a constant speed of 190 m/s, to fly once around a circle whose radius is 2950 m?

Compressive strain, Compressiv e Strain: When the compressive load ac...

Compressiv e Strain: When the compressive load acts on body then there will be an increase in cross sectional area and decrease in length of body. The ratio of reduction in l

Find out the power - hollow shaft, Find out the power - hollow shaft: ...

Find out the power - hollow shaft: A hollow shaft of internal diameter 400 mm & external diameter 450 mm is needed to transmit power at 120 rpm. Find out the power it may tran

Dynamically induced emf and statically induced emf, Q. What is meant by dyn...

Q. What is meant by dynamically induced emf and statically induced emf? On what factors do these depend? Derive eq. for these two emfs.   Sol. Dynamically induced emf:

Entropy and Enthalpy, Ask . A vessel having a volume of 0.6 m3 contains 3.0...

Ask . A vessel having a volume of 0.6 m3 contains 3.0 kg of liquid water and water vapour mixture in equilibrium at a pressure of 0.5 MPa. Calculate : (i) Mass and volume of liquid

Determine the change in pressure rise through the compressor, We have a rec...

We have a reciprocating compressor operating at 800 rpm.  Suction pressure and discharge pressure are held constant by other systems that have nothing to do with the compressor.  W

What are the advantages of gear drive, In general, gear drive is useful for...

In general, gear drive is useful for power transmission among two shafts, which are near to each other (at most at 1m distance). In addition, it has maximum efficiency whereas tran

Structural notches-metallurgical defects, Structural notches In t he ca...

Structural notches In t he case of solid solution strengthened alloys and age hardenabled steel, the variation in heat i/o during welding may cause localized grain coarsening o

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