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

Specific volume of the superheated steam - thermodynamics, Specific volume ...

Specific volume of the superheated steam: It is volume occupied by unit mass of superheated steam corresponding to given pressure of superheated steam generation. Superheated

Clutch free play-clutch complaints, Clutch free play : Check for free play ...

Clutch free play : Check for free play of the clutch lever. It should be within 10-20 mm.

Answer me, Produce as individuals a single tab Excel spreadsheet which show...

Produce as individuals a single tab Excel spreadsheet which shows a rough initial design for a water treatment plant taking 15MLD of water with 100 mg/l SS from a lake at 750mAOD,

Battery is not charging motorcycle problem, If Battery is Not Charging ...

If Battery is Not Charging Causes of Problem Remedy Electrolyte specific gravity NG Charging not done fully

Determine the stress in the meridional direction, Determine the stress in t...

Determine the stress in the meridional direction: A doubly curved shell of thickness 8 mm is filled through a liquid under an internal pressure of 2.0 N/mm 2 . At a specific p

Compute the angular velocity of bar, Compute the angular velocity of bar: ...

Compute the angular velocity of bar: A bar AB as shown in slides so that its bottom point A has a velocity of 4 m/sec to the left along the horizontal plane. Compute the veloc

Screw conveyors, Screw Conveyors: Screw conveyors are used principally f...

Screw Conveyors: Screw conveyors are used principally for transmitting materials in the form of powder or paste with the application of rotating screw. For example feedin

Compare solid shaft with the hollow, Compare solid shaft with the hollow: ...

Compare solid shaft with the hollow: Compare solid shaft with the hollow shaft, by strength and their weight. Sol.: ( a ) Comparison by strength: Assume that both the s

Cam, advanced cam profile synthesis

advanced cam profile synthesis

Fuels and lubrication technology, minimum mass of air required for complete...

minimum mass of air required for complete combustion of the HFO

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