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

Evaluate the quantity of air passes, The cockpit of a jet plane flying at a...

The cockpit of a jet plane flying at a speed of 1200 km/hr is to be cooled by simple air cooling system. The cockpit is to be maintained at 25 0 C and pressure in the cockpit is 1

Lubrication, what are the necessity of lubrication ?

what are the necessity of lubrication ?

Find minimum time for a vehicle to go from 0 to 60 mph, For a few of the fo...

For a few of the following problems the constant acceleration is due to gravity and will be notated as a = g = 32 ft/sec 2 . 'g' perhaps positive or negative depending on the conte

Manufacturing technology, Details of rolling process,Different rolling meth...

Details of rolling process,Different rolling methods,

Explain the end cutting edge angle, Explain the End Cutting Edge Angle ...

Explain the End Cutting Edge Angle It is an angle between the face of the tool and the plane perpendicular to side of shank. It acts as relief angle that is allows only small s

Common rules concerning corresponding option , COMMON RULES CONCERNING CORR...

COMMON RULES CONCERNING CORRESPONDING OPTION:     Let us consider the DATA DIVISION entries as shown below. Now, let us see which data items will be moved if

Net hydrostatic moment on the cylinder, A long cylinder of radius 2 m hinge...

A long cylinder of radius 2 m hinged at point A is used as an automatic gate. When the water level reaches 15 m the gate automatically opens. Determine the magnitude of the net hyd

Determine the acceleration of each block, Determine the acceleration of eac...

Determine the acceleration of each block: In the system of associated blocks shown in figure the coefficient of kinetic friction under blocks A and C is 0.20. Determine the ac

Bending strength machine, what is bending strength machine parts of bendin...

what is bending strength machine parts of bending strength machine and description about different parts of bending strength machine description about bending srength machine and

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

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