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

Kinetic or dynamic friction, Kineti c (Dynamic) Friction: When appli...

Kineti c (Dynamic) Friction: When applied force exceeds limiting friction the body starts moving over the other body and the friction of resistance experienced by the body a

Explain metal cutting tool, What is Metal Cutting Tool? A cutting tool ...

What is Metal Cutting Tool? A cutting tool (or cutter) is any tool which is used to remove material from the work piece by means of shear deformation. Cutting may be completed

Drum brake-types of brake , Drum Brake: The construction of drum brake is...

Drum Brake: The construction of drum brake is clearly shown in Figure 2.40. In a rotating brake drum stationary brake shoes are attached concentric to the axle hub. A back plate

Valves, What can a valve do?  It can prevent flow (on/off), allow variable ...

What can a valve do?  It can prevent flow (on/off), allow variable control of the flow and provide a safe working environment. What sort of questions should we be asking when selec

Determine a least square geometric curve, Determine a least square geometri...

Determine a least square geometric curve y = ax b to the following data : x:  1   2  3   4   5 y: 0.5  2 4.5 8 12.5 Fit a straight line y = a + bx to the following data b

Welding head, Welding Head Submerged arc welding head consists of the wir...

Welding Head Submerged arc welding head consists of the wire spool, wire feed system, flux delivery hopper and electrical contact nozzle. The electrode wire is unwound from the s

Motion of connected bodies, when 2 bodies are connected by a string show ...

when 2 bodies are connected by a string show the direction of acceleration

Find the outer and inner diameters of frictional surface, A single plate cl...

A single plate clutch, effective on both sides is needed to transmit 25 KW at 3000 r.p.m. Calculate the outer and inner diameters of frictional surface if the coefficient of fricti

How to select the project if not yet done - general phase, To select the pr...

To select the project, if not already done - Radial Drilling Machine Due to above Problem?s in RADIALL DRILLING machine, now the select the project and solves the problems and

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