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

Determine the maximum value of the coefficient of friction, Determine the m...

Determine the maximum value of the coefficient of friction: A force of 200 N inclined at 60 o to the horizontal is applied to the block A weighing 400 N. find out whether blo

Determine the forces in all the members of the truss, A truss of span 10 me...

A truss of span 10 meters is loaded as shown in Figure. Determine the forces in all the members of the truss by Method of Joint.

Water overflow in the sink, Water flows into the sink shown in figure 5 at ...

Water flows into the sink shown in figure 5 at a flow rate of 8 L/min. If the drain is closed, the water will eventually flow through the overflow drain holes rather than over the

Determine mi of unequal angle section, Q .  Determine MI of unequal angl...

Q .  Determine MI of unequal angle section 15cm × 10cm × 1.5cm with longer leg vertical and is flange upwards. Figure Sol. :                      A 1 = 10 ×

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

Assets markets and the lm curve, Assets Markets and the LM Curve The as...

Assets Markets and the LM Curve The assets markets are the markets in which money, bonds, stocks, houses and other forms of wealth are traded. There are a large variety of asse

Kennedy’s theorem-klein’s construction, Kennedy’s Theorem: According to t...

Kennedy’s Theorem: According to this theorem the relative instantaneous centres on whichever three bodies that contain motion relative to each other are collinear. Higher Pa

Evaluate the absolute velocity of jet, A jet of water moving at 8 m/sec. im...

A jet of water moving at 8 m/sec. impinges on a concave-shaped vane to deflect the jet through 120 o when stationary. If the vane is moving at 5 m/sec., calculate the angle of jet

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