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

Determine the wire diameter of the inner spring, Determine the wire diamete...

Determine the wire diameter of the inner spring: In a compound helical spring, the inner spring is arranged in and concentric with the outer one, but is 10 mm shorter. The out

Explain concept of drill, Explain concept of Drill Power feed of the sp...

Explain concept of Drill Power feed of the spindle is a common feature. Also coolant system is a ordinary feature of the radial drilling machine. Radial drilling machines ca

What do you know about series welds in spot welding, Q What do you know abo...

Q What do you know about Series welds in spot welding? It is a welding method in which two or more spots are produced simultaneously with only one common but indirect current p

Calculate the stress at the outer edges, A column is made from a universal ...

A column is made from a universal I-section 203x 203 x 60. A load of 96kN is applied on the y-axis offset 50mm from the centroid. Calculate the stress at the outer edges of the y-a

Determine the magnitude and nature of the force, A frame PQRSTU is hinged t...

A frame PQRSTU is hinged to a rigid support at P and is simply supported at T. It is loaded as indicated in the figure below. Determine the magnitude and nature of the force in the

Cam-basic components of engine , Cam: This is an integral part of camshaf...

Cam: This is an integral part of camshaft. A cam is designed in such a way as to open or close the valves at the correct timing and keep them open for the necessary duration.

Calculate the radius of plates, Calculate the radius of plates: A lami...

Calculate the radius of plates: A laminated steel spring, simply supported at the ends & centrally loaded, along a span of 0.8 m; is needed to carry a proof load of 8 kN; and

Explain about hydrostatic test, Q. Explain about Hydrostatic Test? All ...

Q. Explain about Hydrostatic Test? All paragraph must be met when the hydrostatic test is employed. UG-99(b), including footnote 32, shall be considered to be the standard hyd

Determine coefficient of friction, Following data is provided for a 360 o ...

Following data is provided for a 360 o hydrodynamic bearing : Radial load = 3.2 kN journal Speed =1490 rpm journal diameter = 50 mm bearing length = 50 mm radial cl

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