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

Stress and deflection analysis in i-beam, You are required to formulate the...

You are required to formulate the loading and boundary conditions using the FE code and evaluate the stress distribution and end deflection of the beam using the ABAQUS code and vi

Determine and illustrate about the earth pressure at rest, Determine and il...

Determine and illustrate about the earth pressure at rest. EARTH PRESSURE AT REST You have seen that the active pressure is the minimum lateral pressure while the passive pr

Dismantle crank case and explode main shaft-gear complaints, Dismantle cran...

Dismantle crank case and explode main shaft , counter shaft, gear shifter drum and kick spindle assembly and check sequence of parts fitment while dismantling: Check all gear teeth

Find kinematic viscosity, A pump is used to deliver discharge of 0.05 ...

A pump is used to deliver discharge of 0.05 m 3 /s from a river to a storage reservoir. The system consists of 500 m of 0.15 m cast iron pipe with a 90 o bend with a rad

#tool life, #tool life formular for diferent n values

#tool life formular for diferent n values

What do you mean by stage discharge relationship, Q. What do you mean by St...

Q. What do you mean by Stage Discharge Relationship? Regular recording of discharges over a period of time is essential for estimation of water resources of river basins and su

He- ne laser, constructing and working of he- ne laser

constructing and working of he- ne laser

Thermodynamics, Q2 A 3kW electric water heater is a cylindrical element hav...

Q2 A 3kW electric water heater is a cylindrical element having outside diameter 10mm. The heat transfer between the heater and the surrounding water is 980W/m2K. Determine the leng

The baseline dimension command, The Baseline Dimension Command You can ...

The Baseline Dimension Command You can use this command to generate a series of dimensions from a single base point. You must already have created the first dimension in the se

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