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

Define plastics molding processes, There are various methods of producing c...

There are various methods of producing components from the plastics materials which are supplied in the granular, power and other forms. Various plastics molding processes discu

Principles governing rural roads design standards, Principles Governing Rur...

Principles Governing Rural Roads Design Standards: The following principles should govern in design of rural roads : (a) Rural Roads are low volume facility serving an acc

Special tool and cleaning of part general service tips , Special Tool: Use...

Special Tool: Use special tools wherever applicable. Special tools are designed to dismantle or assemble a specific part or assemblies without causing damage to them. Cleaning

Locomotive boiler, LOCOMOTIVE BOILER: It is horizontal, natural cir...

LOCOMOTIVE BOILER: It is horizontal, natural circulation, fire tube boiler. It can generate steam at the rate of 7000 kg/hr. at pressure of up to 2.5 Mpa. Earlier it was us

Calculate drilling speed and machining time, Calculate Drilling Speed and M...

Calculate Drilling Speed and Machining Time Calculate the drilling speed if a 50 mm dia hole of 60 mm depth is to be drilled in a M.S. component. The feed rate is 0.2652 and M

Wire-frame entities-representing ellipse and parabolas, wire-frame entities...

wire-frame entities-representing ellipse and parabolas

Describe stochastic printing, Question: (a) Describe stochastic printin...

Question: (a) Describe stochastic printing and provide three benefits of this printing technique. (b) Though offset printing is the most common form of mass printing and pub

Modelling and simulation study, A city owns and operates a garage in which ...

A city owns and operates a garage in which maintenance and repair work is performed on city-owned vehicles. Included among these vehicles are motor-pool cars, heavy-duty trucks, an

Thermodynamics, what are causes of hotness of a body?

what are causes of hotness of a body?

Steam and power generation equipment, Q. Steam and Power Generation Equipme...

Q. Steam and Power Generation Equipment? Locating steam and power generation equipment outside of the process areas ensures that critical facilities feeding major portions of t

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