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

Bolt Group Bending Moment, What is the Maximum bolt bending moment in a gro...

What is the Maximum bolt bending moment in a group for four equally spaced bolts?

Monte Calro for aerodynamic load simulation.., I have experimental results ...

I have experimental results for a 2D model and a matlab script that computes the aerodynamic loads on that 2D model.When we compare experiment with the theory I have noted that the

Calculate the period of vibration, (a) Show energy method and Rayleigh's me...

(a) Show energy method and Rayleigh's method for single degree of freedom system. Also discuss its application. (b) A sphere of diameter D floats half submerged in water. If the

Find out the proof load in close coiled helical spring, Find out the proof ...

Find out the proof load in close coiled helical spring: A close coiled helical spring is built of 6 mm diameter wire. The coil diameter is equal to 80 mm, number of coil is 10

Determine the processing time of iges, Determine the Processing Time of IGE...

Determine the Processing Time of IGES File Size/Processing Time: IGES was heavily criticized for requiring large files that took hours or even days to parse, given the averag

What is the initial velocity of the ball, What is the initial velocity of t...

What is the initial velocity of the ball: A ball is horizontally thrown from the top of a building 60 m height, hits the horizontal ground 25 m from the base of the building a

What are the basic components of an automobile, What are the basic componen...

What are the basic components of an automobile ? Explain them briefly. Show a schematic diagram showing the layout of the transmission system of a rear wheel driven automobile.

Determine the reactions at beam, Determine the reactions at bea: A can...

Determine the reactions at bea: A cantilever AB, 1.8 m long is fixed at A and carries uniformly distributed load of 20 kN/m over its entire length and a point load of 30 kN at

Define stress, Define stress: Sol.: When body is acted upon by load ...

Define stress: Sol.: When body is acted upon by load or external force, it undergoes deformation (that is, change in shape or dimension) which increases gradually. At the ti

Pressure at bottom of a cone, I have a tank that has a 30" dia at the top...

I have a tank that has a 30" dia at the top and is 24" deep. It connects to a cone that is 30" dia at the top and goes to a 15" dia in 12". I plan on filling the tank with golf ba

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