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

Theory of production process, In Grey Cast Iron, carbon is present in -----...

In Grey Cast Iron, carbon is present in ------------form while in white cast iron, it is found in ----------- form.

Determine magnitude of greatest shear stress, At a point in a rectangular b...

At a point in a rectangular block of elastic material under strain, there is a tensile stress of 50MPa on one plane and a compressive stress of 30 MPa on a plane at right angles. T

Lathe - milling and grinding machine, Define O.R. and what are the applicat...

Define O.R. and what are the applications in Industry ? A firm uses lathe, milling and Grinding machine to make two machine parts. The table below show the machining time requir

Shm, How we say that motion of the follower is simple harmonic motion descr...

How we say that motion of the follower is simple harmonic motion describe in practical approch

Illustrate critical damping, Illustrate any three of the following : (i)...

Illustrate any three of the following : (i) Critical Damping (ii) Logarithmic decrement (iii) Vibration Isolation (iv) Equivalent stiffness of spring in series and in p

What are the elements of theory of vibrations, What are the Elements of The...

What are the Elements of Theory of Vibrations All bodies possessing mass and elasticity can vibrate or undergo vibratory motion. Let us understand a few basic definitions used

Explain the importance of jigs and fixtures, Explain the Importance of jigs...

Explain the Importance of jigs and fixtures: Enhance productivity. Rapid production work. Reduces manufacturing costs. Complex and heavy components can be

Complaints of engine starting by repairing of motorcycle , Complaints of En...

Complaints of Engine Starting: If there is a problem related to the starting of the bike, it can be due to mechanical as well as electrical reasons. The possible reasons could be

State about the caisson foundations, Caisson foundations Caisson founda...

Caisson foundations Caisson foundations are similar to wells, but are much large in size. They are of different types, closed end, open ended and of pneumatic type. Figure show

Corrosion control in oil-treating equipment, Q. Corrosion Control in Oil-Tr...

Q. Corrosion Control in Oil-Treating Equipment? Bitumen provides adequate internal protection for Inlet Slug Catcher, FWKO and Treater. Due to high operating temperature, inter

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