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

Describe about austenitic stainless steels, Q. Describe about Austenitic st...

Q. Describe about Austenitic stainless steels? Austenitic stainless steels (300 series) generally exhibit very good corrosion resistance in sulphuric acid service for low conce

Explain rake angle - angles of a drill, Explain Rake angle - Angles of a dr...

Explain Rake angle - Angles of a drill It is also known as helix angle .It is the angle formed between a plane containing the drill axis and the leading edge of the land. It c

Design the nozzle connections, Q. Design the Nozzle Connections ? Nozzl...

Q. Design the Nozzle Connections ? Nozzle design shall be such that if the actual combined thickness of the shell or head and reinforcing pad exceeds 50 mm, either integrally r

Vessels resting on concrete foundations, Q. Vessels resting on concrete fou...

Q. Vessels resting on concrete foundations? For vessels resting on concrete foundations, the allowable concrete bearing stress shall be 750 psi (5 MPa). The design loadings fo

Evaluate stress induced in rod, Evaluate stress induced in rod: The t...

Evaluate stress induced in rod: The two copper rods and one steel rod lie in vertical plane and support load of 50kN together as shown in figure given below. Each rod is 25 m

Matlab question please help me, The salary calculation method for employees...

The salary calculation method for employees of a company is as follows: (1) If the number of working hours exceeds 120 hours, an additional 15% will be issued for the excess part;

Machin of dynamics, Ask question Prove maximum fluctuation of energy ?E=2EC...

Ask question Prove maximum fluctuation of energy ?E=2ECS.

Calculate the magnitudes of the force, The end gates of a lock are 5m high ...

The end gates of a lock are 5m high and when closed include an angle of 120 o . The width of the lock is 6.25 m. Each gate is carried on two hinged placed at the top and the bottom

Evaluate the speed of train, Evaluate the speed of train: A train of ...

Evaluate the speed of train: A train of mass 200KN has frictional resistance of 5N per KN. Speed of train, at the top of an inclined of 1 in 80 is 45 Km/hr. Find speed of tra

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