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

State constructive solid geometry, Constructive Solid Geometry (Csg or C-Re...

Constructive Solid Geometry (Csg or C-Rep) A CSG model is based on the topological notion that a physical project object can be divided into a set of primitives that can be com

Steps of engine oil replacement and top-up, Engine Oil Replacement and top ...

Engine Oil Replacement and top up steps • The engine oil should be changed only when motorcycle has run through the prescribed kilometers. • Change the engine oil every 4000 k

Equlliberum, what is equilibrium of rigidity?

what is equilibrium of rigidity?

Develop a computer-based methodology, Consider the U-shaped curved beam sho...

Consider the U-shaped curved beam shown below (with rectangular cross-section and thickness h ), which is loaded by force P as indicated. A free-body diagram reveals that a mome

FEA, Consider the rocket on a test stand as described in Chapter 3 of the l...

Consider the rocket on a test stand as described in Chapter 3 of the lecture notes. The nose of the rocket is fixed. The rocket is of length L, constant EA and constant m, mass per

Define pinion cutter generating process, Define Pinion Cutter Generating Pr...

Define Pinion Cutter Generating Process? It is shown in diagram and it is same as rack cutter process, and instead of using a rack cutter it uses a pinion to generating the too

Calculate size of blank required for drawing, Calculate Size of Blank Requi...

Calculate Size of Blank Required for Drawing A flanged cup shown in Figure is to be produced by deep drawing. Calculate the size of the blank required for drawing.

Estimate elevator algorithm-closest cylinder next, Disk requests come in to...

Disk requests come in to the disk driver for cylinders 10, 22, 20, 2, 40, 6, and 38, in that order. A seek takes 6 mes per cylinder moved. How much seek time is needed for (a) F

How much Torque required, hi how much torque required to move 100kg in a sk...

hi how much torque required to move 100kg in a skate board with a wheel diameter of 1.8 inch

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