Develop-implement method to identify numerically equivalent, Mechanical Engineering

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.


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.

Posted Date: 3/25/2013 4:05:36 AM | Location : United States

Related Discussions:- Develop-implement method to identify numerically equivalent, Assignment Help, Ask Question on Develop-implement method to identify numerically equivalent, Get Answer, Expert's Help, Develop-implement method to identify numerically equivalent Discussions

Write discussion on Develop-implement method to identify numerically equivalent
Your posts are moderated
Related Questions
Engine oil : Check engine oil level and viscosity.

Determine strap beam with suitable demonstration. Here observe that R e becomes greater than P e by a magnitude of V while R i becomes less than P i by a magnitude equal to

Carburettor Tuning :  It is very important that the carburettor is tuned properly to attain the best fuel efficiency and performance of the motorcycle. Since air screw is factory

What are the approaches to the design of retaining walls? The approach to the design of retaining walls can be started as follows: a. Chosse a trial dimension of the wall

Develop a computer program that can be used for internal flow analysis in SI units. The program should be able to: ? Get the required input data from the user ? Decide the flow ty

three vertical, parallel straight rods, each 2.6m in length have their upper ends firmly secured and their lower supporting a rigid horizontal bar with a weight of 8KN, which cause

Explain Zeroth law and 1 st law of thermodynamics. Describe Internal energy and Enthalpy. What is a PMMFK. Give the expression for reversible workdone in a thermodynamic system

Vertical vessels having height-to-diameter ratios greater than 8 and weighing more than 25,000 lb. (11300 kg), shall have bending stresses in the vessel shell/skirt checked, from t

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