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 end relief angle, Explain End Relief Angle It is the angle betw...

Explain End Relief Angle It is the angle between the plane perpendicular to base and end flank. The angle prevent\s the cutting tool from rubbing against the job where as if th

Determine the number of bolts required, The following specification is used...

The following specification is used for the design of a flanged coupling between two coaxial shafts: Speed: 650rpm Power transmitted: 550 kW Bolt Diameter: 12 mm Pit

What do you know about direct welds, Q. What do you know about Direct welds...

Q. What do you know about Direct welds? It is a welding method in which one or more electrodes oppose each other, contacting both sides of the work and with the current passing

A solid sphere is rotating in free space, A solid sphere is rotating in fre...

A solid sphere is rotating in free space. If the radius of the sphere is increased keeping mass same  which one of the following will not be affected? Solution) In free space, nei

Two UVL loads on a beam, Hi there. I am stuck on a problem. I am working ...

Hi there. I am stuck on a problem. I am working out the section of 2 beams for the floor of an elevator. Thus far the critical conditions are made up of a beam that is 1.8m long

Determine the chemical formulate for refrigerant, (a) Draw P-H and T-S diag...

(a) Draw P-H and T-S diagrams for following cases : (3) (i) Cycle with superheated vapour before compression. (ii) Cycle with sub-cooling or under-cooling of refrigerant.

Flanged pressure vessel nozzles, Q. Flanged pressure vessel nozzles? Th...

Q. Flanged pressure vessel nozzles? The Designer is responsible for ensuring that the facings, bolt circle, number of bolts, and size of bolts of vessel nozzles, match the mati

Local stresses - vessel rigging analysis, Q. Local Stresses? Local stre...

Q. Local Stresses? Local stresses in the vessel shell/head/skirt/base rings from the lifting attachments (such as lugs, trunnions, etc.), shall be determined for the imposed lo

Task, Thin wall tube has diameter of 60mm. The end of it will be compressed...

Thin wall tube has diameter of 60mm. The end of it will be compressed to square form. Calculate how many percents torsion strength will becomne lower at the end of tube?

Sequencing, jane reed bakes bread and cakes in her home for parties and oth...

jane reed bakes bread and cakes in her home for parties and other affairs

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