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 forces in all the members of the truss, A truss of span 10 me...

A truss of span 10 meters is loaded as shown in Figure. Determine the forces in all the members of the truss by Method of Joint.

Use of stainless steels in welding, Q. Use of Stainless Steels in welding? ...

Q. Use of Stainless Steels in welding? Considerable care must be exercised to obtain sound, crack-free welds. These difficulties are pronounced when welding very high-chromium

What are combined footings, What are combined footings? COMBINED FOOTIN...

What are combined footings? COMBINED FOOTINGS: When a footing supports two or more columns in the same line, it is called a combined footing. The combined footing which supp

Second gear position- shifting of gear, Second Gear Position: When ge...

Second Gear Position: When gear M2 on the main shaft is in mesh with gear C2 on the countershaft then this is known as second gear position. To rotate free gear M2 with the m

Magnetic field system employed in electromechanical devices, Q.   Why are m...

Q.   Why are magnetic field system employed in practical electromechanical energy conversion devices rather than electric field systems? Ans. In case of magnetic field sys

OPITZ alternative, I am looking for an alternative coding system to the OP...

I am looking for an alternative coding system to the OPITZ coding system for my essay thanks

Refrigeration cycle, 1.5kw/ton of refrigeration is required to maintain tem...

1.5kw/ton of refrigeration is required to maintain temp of -40c in the refrigerator.if the cycle works on carnot cycle.determine 1.cop,2.sink temp 3. heat rejejected to the sink/to

Classification of arc welding power sources, CLASSIFICATION OF ARC WELDING ...

CLASSIFICATION OF ARC WELDING POWER SOURCES As we have know, different  welding processes require different operating conditions & the power sources are also necessarily differen

Value of the maximum shear stress , Value of the maximum shear stress: ...

Value of the maximum shear stress: Illustrates that for a given maximum shear stress the minimum diameter needed for a solid circular shaft to transmit P kW at N rpm may be ex

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