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

What do you know about direct welds, Q. What do you know about Direct welds...

Q. What do you know about Direct welds? It is a welding method in which one or more electrodes oppose each other, contacting both sides of the work and with the current passing

Bevel gear and shaft analysis, I have a bevel gear and shaft and I want to ...

I have a bevel gear and shaft and I want to know the maximum load that can be applied on it. also I have no information about it, what kind of information is needed for this calcul

Gantry crane, A gantry crane shown in figure above acts an auxiliary to...

A gantry crane shown in figure above acts an auxiliary to bridge cranes. It is provided with wheels and can be moved from open place to another as per requirements.

Determine coefficient of friction, Following data is provided for a 360 o ...

Following data is provided for a 360 o hydrodynamic bearing : Radial load = 3.2 kN journal Speed =1490 rpm journal diameter = 50 mm bearing length = 50 mm radial cl

Estimate the air flow velocity , A smooth glass plate is coated with a spec...

A smooth glass plate is coated with a special electrically conductive film that may be used to produce a constant heat flux on the plate. Estimate the air flow velocity which must

The same magnitude as it did at the bottom, For the normal force in Figure ...

For the normal force in Figure to have the same magnitude at all points on the vertical track, the stunt driver must adjust the speed to be different at different points. Suppose,

Evaluate maximum stress, Show that for a flat circular steel plate subjecte...

Show that for a flat circular steel plate subjected to uniform pressure on one surface, the maximum stress when the periphery is freely supported is 1.65 times that when the periph

Design the drainage area, Q. Design the drainage area? Areas beneath eq...

Q. Design the drainage area? Areas beneath equipment or vessels subject to spills or leaks shall have slope drainage area. Every skid shall be provided with floor drains. S

Describe pendulum pump mechanism, Describe in detail the following mechanis...

Describe in detail the following mechanisms : (a) Pendulum Pump (b) Crank and slotted lever mechanism Explain in detail the following mechanisms : (a) Elliptical Tramme

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