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

The many uses of iron, 5000 word assignment 25/10/2018 due date Research P...

5000 word assignment 25/10/2018 due date Research Project for ENGR8752 Engineering Physics and Material write down about the iron history and all about iron my detail yesh patel

Driving mechanism-knurl or friction drive-gear drive, Driving mechanism ...

Driving mechanism   I). Knurl or Friction Drive :  This has either the upper or lower electrode (or both) driven by a friction wheel on the periphery of the electrode. A co

Resultant of concurrent force system, Resultant of Concurrent Force System:...

Resultant of Concurrent Force System: The resolution of forces helps in finding out the resultant of a number of forces working on a body as it decrease vectorial addition to

Air velocity calculations in aircraft fans, how to calculate Air velocity ,...

how to calculate Air velocity , pressure and power done by aircraft fans

GD & T Expert needed to drawing chenck, Dou you have someone with good GD &...

Dou you have someone with good GD & T knowledge who can help me with ceheck, markup and comment mechanical drawings in PDF file format wich I will send?

Calculate the power of the engine, A Torsion dynamometer is used in a prope...

A Torsion dynamometer is used in a propeller shaft of a marine Engine. It is found that the shaft twists 2 o in a length of 20 meters at 120 r.p.m. If the shaft is hollow with 300

#, parameters in designing a presure vessels

parameters in designing a presure vessels

Evaluate the normal and tangential stresses, Evaluate the normal and tangen...

Evaluate the normal and tangential stresses: Q. 20: At the point in stressed body, the principal stresses are σ x = 80 kN/m 2 and σ y = 40  kN/m 2 . Determine the norma

Mockup test, we perform mockup test to 10 tube with tubesheet. please give ...

we perform mockup test to 10 tube with tubesheet. please give the cutting plan?

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