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

What are the specific issues with plant layout, Q. What are the Specific Is...

Q. What are the Specific Issues with plant Layout? There are a large number of regulations and related material that impact the operating plant. API (American Petroleum Institu

Illustrate the process of insulation on pipe, Q. Illustrate the process of ...

Q. Illustrate the process of insulation on pipe? Factory fabricated sectional pipe insulation shall be applied in staggered joint construction and secured with wire loops or ba

What is the function of a spark plug?, (a) What is the function of a spark ...

(a) What is the function of a spark plug? (b) What are the types of spark plugs? Point out the differences between them. (c) Describe the construction of a spark plug with th

Air standard cycles - thermodynamics, AIR STANDARD CYCLES - thermodynamics:...

AIR STANDARD CYCLES - thermodynamics: Most of the power plant operates in the thermodynamic cycle that is the working fluid undergoes a series of processes and returns to its

Determine the best possible angle to reduce aerodynamic drag, This is to de...

This is to determine the best possible angle to reduce aerodynamic drag. Mesh is to use tetrahedron of 0.5m wide.  I need the mesh generation and solver control on ansys 11.0. I al

Explain welding process, Welding Process: There are many definition of a we...

Welding Process: There are many definition of a welding process. But the most comprehensive definition is below. Welding is defined as a "a localized coalescence of metals, wher

Physical properties of materials, why is physical properties of materials i...

why is physical properties of materials important in design and for industrial application?

Define specific volume (v) of System, Define Specific Volume (v) It is ...

Define Specific Volume (v) It is illustrated as volume occupied by the unit mass of the system. Its unit is m 3 /kg. Certain volume is reciprocal of density. ν = v/m; m 3 /k

Opresion reserch, ppt of appling queuing model in railwy reservation

ppt of appling queuing model in railwy reservation

Find out the moment of inertia of an annular area, Find out the moment of i...

Find out the moment of inertia of an annular area: Find out the M. I. of an annular area among two circles where difference of radius is quite small, around any centroidal axi

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