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

How is bearing capacity of soil varied, How is bearing capacity of soil var...

How is bearing capacity of soil varied? The bearing capacity of soil varies not only with its strength but also with the magnitude and distribution of the load. When a load Q,

Define the side rake angle, Define the Side Rake Angle? It measured the...

Define the Side Rake Angle? It measured the slope of top surface of the tool to the side in the direction perpendicular to longitudinal axis it also guides the direction of chi

The progressive liberalization , The progressive liberalization of the nor...

The progressive liberalization of the norms for foreign investment and import of technology appear to have benefited the automobile sector with production of total vehicles increa

Coefficients of friction, Coefficients of friction: The coefficients o...

Coefficients of friction: The coefficients of friction under the sliding supports of the door in Figure are equal to 0.30 at A and 0.20 at B. What forces P shall give the 25 k

Importance of stresses in shaft, Importance of stresses in shaft: Wha...

Importance of stresses in shaft: What is  importance of stresses in shaft ? Sol.: In shaft the following significant stresses occur. 1. A maximum shear stress occurs on

ISMB 250, WHAT IS LOAD CARRYING CAPACITY ISMB 250 OF 1.2 MTR LENGTH. PL REP...

WHAT IS LOAD CARRYING CAPACITY ISMB 250 OF 1.2 MTR LENGTH. PL REPLY

Kinematics, the velocity of a particle moving along x axis is defined by v=...

the velocity of a particle moving along x axis is defined by v=kx^3-4x^2+6x where v is in m/s,x in m and k is a constant .if k=2 compute the acceleration when x=2m

Define milling cutter - geometry of cutting tool, Define Milling Cutter - G...

Define Milling Cutter - Geometry of Cutting Tool Out of large verity of milling cutter used in milling cutter used in milling practice, two types of cutter chosen to describe t

Design ia-32 instructions, 1.  Given the data below, design IA-32 instructi...

1.  Given the data below, design IA-32 instructions to copy data in array X to array Y.   .data X   sdword   10,30,40,-10,-20,-4,-50 Y   sdword   7 dup (?)    2.  Given

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