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

Combustion , How do i calculate the flame radius and flame speed if unstret...

How do i calculate the flame radius and flame speed if unstretched flame speed=2.8m/sec and markstein length=5 mm. ?

Mechanical piping material specifications, The Specifications for use on a ...

The Specifications for use on a project will be as defined in the ‘Project Execution Plan'. The specification requirements will be clarified in the Engineering Estimate or at the

magnitude of the maximum bending moment , Solve the following three questi...

Solve the following three questions of the beam ABCD. Note that A is a fixed end; B is apin connection; C is a roller support; and D is a free end.    1)  Sketch the quantita

Engine keeps on running after ignition is switched off, If Engine Keeps on ...

If Engine Keeps on Running after Ignition is Switched Off Causes of Problem Remedy Pre-ignition due to very hot spark plug used

Vessel rigging analysis, Impact Factor on Vessel rigging analysis? Unle...

Impact Factor on Vessel rigging analysis? Unless otherwise specified by the user, a minimum impact factor of 1.5 shall be applied to the lift weight for designing the lifting d

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

the centripetal force acting on the ball, A child is twirling a 0.0106 kg ...

A child is twirling a 0.0106 kg ball on a string in a horizontal circle whose radius is 0.096 m. The ball travels once around the circle in 0.540 s. (a) Determine the centripeta

How to calculate total hysteresis loss?, Q.  The area of the hysteresis lo...

Q.  The area of the hysteresis loop of a given magnetic material is 50cm 2 with the two axes scaled as 1cm = 20AT and 1cm = 50mWb, for 50Hz frequency find the total hysteresis

Carnot cycle, matlab programme for carnot cycle

matlab programme for carnot cycle

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