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

Dismantle crank case and explode main shaft-gear complaints, Dismantle cran...

Dismantle crank case and explode main shaft , counter shaft, gear shifter drum and kick spindle assembly and check sequence of parts fitment while dismantling: Check all gear teeth

Explain the methodology of hydrostatic sensor pavers machine, Normal 0 ...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4 Explain the Methodol

Ratio of applied stress, Ratio of applied stress: What should be the r...

Ratio of applied stress: What should be the ratio of applied stress, s, to yield stress s Y in a large thin plate so that plastic spread along lint of crack is equal to  1 /1

Calculate the diameter of the single pipe, a) Three pipes of lengths 800m, ...

a) Three pipes of lengths 800m, 400m, 500m and of diameter 500mm, 400mm and 300mm respectively are connected in series. Pipes are to be removed by a single pipe of length 1700m. Ca

Working stress and factor for safety working stress, W orking stress and F...

W orking stress and Factor for Safety Working Stress: Working stress is safe stress taken within elastic range of material. For the brittle materials, it is taken equal to

Heat loss in acylindrical pipe, Ask question #Minimum 1. Research the topic...

Ask question #Minimum 1. Research the topic of heat loss in a cylindrical pipe. Explain which laws of physics are used to discuss heat loss in a pipe, and briefly explain how the f

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

Feces collection, Feces Collection: Small aliquots of feces are freque...

Feces Collection: Small aliquots of feces are frequently analyzed to detect the presence of "hidden" blood, so called occult blood, which is recognized as one of the most ef

Illustrate the specification of pddi, Illustrate the specification of PDDI ...

Illustrate the specification of PDDI (i)  The 3-D geometry of the product which is defined by a set of curves, surfaces and volumes. (ii) The topology which describes the se

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