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

Calculate values of the yield strength, Your company received an order to m...

Your company received an order to machine a batch of 150 steel parts that are 73.0 mm in diameter and 250 mm in length. One of the processes is a finish turning operation. Where th

Explain applications welding process, Applications. The  welding  process ...

Applications. The  welding  process  finds  widespread  applications  in almost all branches of industry and construction. fabrication and creation of steel structures

What do you mean by centrifugal casting, What do you mean by centrifugal ca...

What do you mean by centrifugal casting ? How are the centrifugal method classified ?

Describe inversion and mechanism, Describe Inversion and Mechanism. Illustr...

Describe Inversion and Mechanism. Illustrate in detail all inversions of 4-Bar chain Mechanism. (a) Explain all the types of constrained motion with examples. (b) Explain in

Spring, strain energy = m2l/2Ei

strain energy = m2l/2Ei

Show the corrosion mechanisms, Q. Show the corrosion mechanisms? The fo...

Q. Show the corrosion mechanisms? The following corrosion mechanisms are likely to happen in the Oil Treating Unit: Under Deposit Corrosion and MIC Since cooling e

Calculate critical speed of shaft, The rotor of a turbo charged having mass...

The rotor of a turbo charged having mass of 10 Kg is keyed to the centre of 25 mm diameter of steel shaft of 400 mm between bearings. Calculate : (i) Critical speed of shaft.

Roller spot welding, Roller Spot Welding In this process, a series of ...

Roller Spot Welding In this process, a series of intermittent spot welds are made using wheels or rollers as electrodes. The rollers are power driven and are stopped while ind

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