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

Brinell hardness test, what is static indentation and dynamic indentation?

what is static indentation and dynamic indentation?

Approximate the tension, Approximate the tension: A copper tube 38 mm ...

Approximate the tension: A copper tube 38 mm external diameter and 35 mm internal diameter is nearly wound with a steel wire of 0.8 mm diameter. Approximate the tension at whi

Design close coiled helical compression spring, Prepare a design of close c...

Prepare a design of close coiled helical compression spring for a service load ranging from 2250 N to 2750 N. The axial deflection of the spring for the load range is 6 mm. Conside

Define boot strap air evaporative system, Define the following : (a) Boo...

Define the following : (a) Boot Strap Air Evaporative System (b) Simple VCR System (c) Advantage and disadvantage of VCR system over Air Refrigeration System (d) Reduce

Equipment for resistance welding-single phase vs three phase, EQUIPMENT FOR...

EQUIPMENT FOR RESISTANCE WELDING-Single phase vs three phase The resistance welding machines can be connected either across 440 V mains (across two lines) or three phase mains.

Thermodynamics, Show that heat is a path path function and not a property...

Show that heat is a path path function and not a property of system

Load, What is load? Sol. : A load can be defined as the combined eff...

What is load? Sol. : A load can be defined as the combined effect of external forces acting on the body. The load is applied on body whereas stress is induced in material of

Derive the expression of torque in closely excited system., Q.   Derive the...

Q.   Derive the expression of torque developed in closely excited magnetic system. Clearly explain then assumption made.   Sol. Double - Excited System   A doubly - ex

High resistance or low current in primary coil circuit, If High Resistance ...

If High Resistance or Low Current in Primary Coil Circuit Causes of Problem Remedy   Disconnected or loose wires

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