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

Maximum stress in each material, The maximum stress in each material: ...

The maximum stress in each material: A copper tube of external diameter 60 mm and internal diameter 40 mm is closely fitted to a steel rod of 40 mm diameter to compose a compo

Show corrosion loss, Q. Show Corrosion Loss? Additional metal thickness...

Q. Show Corrosion Loss? Additional metal thickness must be added, to compensate for anticipated loss due to metal reacting with the environments to which it is subjected, inclu

Kinematics in one and two dimensions , A person climbs up a escalator in 60...

A person climbs up a escalator in 60s . When he stands on it , then he is carried in the moving escalator in 30s . How much time will he take in climbing up in a moving escalator?

Design storage compounds for bulk solids, Q. Design Storage compounds for b...

Q. Design Storage compounds for bulk solids? Storage compounds for bulk solids, liquids and liquefied gases are normally included in a plant layout to provide short term storag

Mechnics of solids thick cylinder, a compound cylinder is composed of a tub...

a compound cylinder is composed of a tube of 250mm internal diameter at 25mm wall thickness.it is shrunk on to a tube of 200mm internal diameter. the radial pressure at the junctio

Isothermal transformation, Isothermal Transformation: Austenite is no...

Isothermal Transformation: Austenite is not normally converted in martensite instantly but the procedure continues for some time. Various steels take various time for full tr

Modulus of elasticity, Explain Young's Modulus or Modulus of elasticity? ...

Explain Young's Modulus or Modulus of elasticity? Sol. : It is ratio between tensile stress and tensile strain or compressive stress and compressive strain. It can be denote

Clutch complaints by repairing of motorcycle , Clutch Complaints Natur...

Clutch Complaints Nature of complaints could be that of following : (a) Clutch judder (jerking) (b) Clutch slipping (c) Half clutch noise

Boiler, equivalent evaporation of boiler..?

equivalent evaporation of boiler..?

Welding of pressure parts in boilers, This section covers welding of pressu...

This section covers welding of pressure parts including those non-pressure parts when welded to pressure parts. All welding design functions necessary within the contract shall be

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