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

Base circle-prime circle-trace point-pressure angle, Base Circle: this is...

Base Circle: this is the smallest circle tangent to the cam profile. Trace Point: this is theoretical point on the follower whose motion explained the movement of the foll

Spray transfer, Spray Transfer In a gas shield of argon or argon rich m...

Spray Transfer In a gas shield of argon or argon rich mixture [i.e., Ar+CO 2 gas mixture containing more than 80 % argon] the metal transfer changes from globular to spray typ

Lathe - milling and grinding machine, Define O.R. and what are the applicat...

Define O.R. and what are the applications in Industry ? A firm uses lathe, milling and Grinding machine to make two machine parts. The table below show the machining time requir

Jet pump, full detail of jet pump nozzle design

full detail of jet pump nozzle design

What are the points importants during forging design, What are the points t...

What are the points that should be kept in mind during forging design? Some of the points which must be followed while forging design are: > A radial flow of fibers or grain

Define stress, Define stress: Sol.: When body is acted upon by load ...

Define stress: Sol.: When body is acted upon by load or external force, it undergoes deformation (that is, change in shape or dimension) which increases gradually. At the ti

I want answer, #question. Select a standard rolled steel I-section for the ...

#question. Select a standard rolled steel I-section for the simply supported beam shown in figure below. Select an appropriate factor of safety and material strength. Include ref

Magnitude of frictional force after perfect rolling begins, What is the mag...

What is the magnitude of frictional force after perfect rolling begins and why? solution) After pure rolling begins,frictional force is 0. This is because the velocity of he c

Spot welding equipment, What is Spot welding equipment? Spot welding ma...

What is Spot welding equipment? Spot welding machines may by classified as follows on the basis of mechanical Construction; 1. Rocker-arm Machines 2. Press-type machin

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