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

Explain butt joints, Butt joints- formed by placing the plates edge to edge...

Butt joints- formed by placing the plates edge to edge and welding them. Grooves are sometimes cut (For thick plates) on the edges before welding. According to the shape of the gro

Determine contact reactions and force, Determine contact reactions and forc...

Determine contact reactions and force: Figure given below shows a sphere resting in smooth V shaped groove and subjected to a spring force. The spring is compressed to

Wave, What is wave? How many type of the waves?

What is wave? How many type of the waves?

Describe the elements of polyhedral objects, Describe the Elements of Polyh...

Describe the Elements of Polyhedral objects Objects that are often encountered in engineering applications can be classified as either polyhedral or curved objects. A polyhedr

Describe elastic and plastic deformation, Q. Describe Elastic and plastic d...

Q. Describe Elastic and plastic deformation? When a sufficient load is applied to a metal or other structural material, it will cause the material to change shape. This chang

Significance of damping coefficient, Physical significance of damping coeff...

Physical significance of damping coefficient and it''s unit.

Battery charger-electrical instruments , Battery Charger: As suggested by ...

Battery Charger: As suggested by the name, it is used to charge a battery. The detailed procedure for charging a battery is given in later units. List the uses of following too

Conjugate Cams:, I require design procedure of Conjugate Cams

I require design procedure of Conjugate Cams

Program evaluation and review techniques, Program Evaluation and Review Tec...

Program Evaluation and Review Techniques: The Rola and Cola Corporation is a professional II nursing home aspiring to become I nursing home. It desires to provide the ultimate

Boiler classification, BOILER CLASSIFICATION : (1 )  According to Tub...

BOILER CLASSIFICATION : (1 )  According to Tube Contents:   Boilers can be water tube or fire tube type. In water tube boilers water flows in tubes and in Fire Tube Boilers 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