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

Mathematics, solve the following differential equation: dy/dx-(1+1/x)y=y^2

solve the following differential equation: dy/dx-(1+1/x)y=y^2

I-Section, An unsymmetrical I-Section as shown in figure below. If maximum ...

An unsymmetrical I-Section as shown in figure below. If maximum bending stress is not extend more than 40MPa in the section than find out the moment which it can bear

Find out bulk modulus, Find out bulk modulus: A steel bar of 25 mm dia...

Find out bulk modulus: A steel bar of 25 mm diameter was tested on a gauge length of 250 cm in tension and in torsion. A tensile load of 50 kN generated an extension of 0.13 m

Writing of a welding procedure specification (wps), Writing of a Welding Pr...

Writing of a Welding Procedure specification (WPS ) A typical working procedure specification is written with all the factors of production in mind. Both experience and latest t

Compound BArs, three vertical, parallel straight rods, each 2.6m in length ...

three vertical, parallel straight rods, each 2.6m in length have their upper ends firmly secured and their lower supporting a rigid horizontal bar with a weight of 8KN, which cause

Beam finite element method, Beam Finite Element Method: Design the fin...

Beam Finite Element Method: Design the finite element model of the beam subjected to combined loading by using the minimum number of Euler-Bernoulli beam elements as shown in

Instantaneous center method, Linear velocity of links using Instantaneous c...

Linear velocity of links using Instantaneous center method

Foil butt seam welding, Foil Butt Seam Welding This is a modification o...

Foil Butt Seam Welding This is a modification of seam welding, in which thin narrow strips of metal arc introduced between one or both of the circular electrodes and the work p

Determine normal force exerted on the plate, A 50 mm dia. jet having a velo...

A 50 mm dia. jet having a velocity of 18 m/sec. impinges without shock on a flat plate inclined at an angle to the axis of jet. If the plate is moving at 5 m/sec in the direction o

Governor, when the governor is connected to a engine its sensitiveness form...

when the governor is connected to a engine its sensitiveness formula change,why?

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