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

Explain working of tubesheets, Q. Explain working of Tubesheets? The tu...

Q. Explain working of Tubesheets? The tube and tube pitch selected shall be approved by WorleyParsons Canada. The preferred tube pitch shall be a minimum of 1.3 x tube OD and

Vessels resting on concrete foundations, Q. Vessels resting on concrete fou...

Q. Vessels resting on concrete foundations? For vessels resting on concrete foundations, the allowable concrete bearing stress shall be 750 psi (5 MPa). The design loadings fo

Optimization, consider the following LPP max z=9x1+8x2+5x3 subject to 2x1+3...

consider the following LPP max z=9x1+8x2+5x3 subject to 2x1+3x2+x3 5x1+4x2+3x3 x1,x2,x3>_0 (a)solve using simlex method (b)hence using the sesitivity analysis,find the new optima

Compaction-manufacturing methods of ceramics, Compaction This is carri...

Compaction This is carried out in several manners that might occupy the addition of a binder or lubricant and application of pressure. Sintering is densification of assembled

Mechanics, definition of open and cross belt drive

definition of open and cross belt drive

Insulation and heat tracing, • insulation thickness • heat tracing type (gl...

• insulation thickness • heat tracing type (glycol, electric, steam): • controlled or self-limiting • traps • identification • requirements limits

Functions of the piston , Functions of the Piston To transmit forc...

Functions of the Piston To transmit force of explosion to the crankshaft. To form a seal so that high pressure gases from the combustion chamber do not escape into th

Determine the maximum stress intensities, Determine the maximum stress inte...

Determine the maximum stress intensities: A rolled steel I-section, flanges 150 mm wide & 25 mm thick, web 200 mm long & 10 mm thick  is utilized to carry & axial load of 800

Limitations of gas tungsten arc welding (gtaw), LIMITATIONS OF GAS TUNGSTEN...

LIMITATIONS OF GAS TUNGSTEN ARC WELDING (GTAW) It Produces lower deposition rates than consumable electrode arc welding processes. It Requires slightly more skill as comp

Refractory, extraction of refractories

extraction of refractories

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