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

Formed heads of vessels, Q. Formed heads of vessels? Formed heads are g...

Q. Formed heads of vessels? Formed heads are generally of 2:1 semi ellipsoidal form, but other heads may be used, such as hemispherical, torispherical, conical and toriconical.

What is the alloy of tin and lead, A tin and lead alloy is commonly known a...

A tin and lead alloy is commonly known as solder. Usually solder is a wire with a rosin core used for soldering. The rosin core acts as a flux.

Important terms related to boiler, IMPO R T AN T TERMS: Fi r e ...

IMPO R T AN T TERMS: Fi r e Box: Place where fuel is burnt. Grat e : The fuel is burnt on this. Baffles : Plates are used for directing the flow of flue gass

Cylinder head-basic components of engine , Cylinder Head: It is fitted at...

Cylinder Head: It is fitted at top of the cylinder block. It provides space for the arrangement of spark plug, combustion chamber, camshaft, cam chain, valves and intake and exha

Probability, It is estimated that the average number of surface defects in ...

It is estimated that the average number of surface defects in 20 square meter of paper produced by process is 3.what is probability of finding number more than 2 defects in 40 squa

Hill roads - road under special conditions, Hill Roads: Alignment ...

Hill Roads: Alignment Selection and Geometric Design Standards Here, you have already learnt how an alignment of a hill road has to be selected. The selection of a g

Thermodynamics, show that work is a path function and not a point funtion ?...

show that work is a path function and not a point funtion ?

What do you mean by extrusion, Q. What do you mean by extrusion? • Ex...

Q. What do you mean by extrusion? • Extrusion is a process used to create objects of a fixed cross-sectional profile. A material is pushed or drawn through a die of the desir

What is ifc in project management, Q. What is IFC in project management? ...

Q. What is IFC in project management? This revision is to be used as a basis for preparing detailed design for final checking of IFC drawings by other disciplines, for incorpo

Calculate flange stresses, Q. Calculate flange stresses? Step 1: Calc...

Q. Calculate flange stresses? Step 1: Calculate flange stresses for system design conditions using existing gasket dimensions. The minimum width of the gasket should equal or

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