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

Find out maximum stress and elongation of the bar, Find out maximum stress ...

Find out maximum stress and elongation of the bar: A rectangular bar having uniform cross-section of 4 cm × 2.5 cm and of length 2 m is hanging vertically from rigid support.

Determine the maximum profit value, A company makes two types of sofas, reg...

A company makes two types of sofas, regular and long, at two locations, one in Nottingham and one in London. The plant in Nottingham has a daily operating budget of £45,000 and can

Determine the initial radius of curvature, Determine the initial radius of ...

Determine the initial radius of curvature:  A carriage spring, defiantly loaded and simply supported at its ends, has 12 steel plates each 60 mm wide by 6 mm thick. If the lon

Data translation requirements, Data translation requirements: An appar...

Data translation requirements: An apparent indication that CAD data translation is now an accepted part of the complex mechanical design world is the emerging trend towards bu

Difference between components and resolved parts, D i f fe r enc e be...

D i f fe r enc e between components and resolved parts: 1. When the force is resolved into two parts along the two mutually perpendicular directions, the parts along th

Motion of two bodies - rough surface and smooth pulley, Motion of two bodie...

Motion of two bodies - rough surface and smooth pulley: THE HORIZONTAL SURFACE IS ROUGH AND THE STRING IS PASSING OVER SMOOTH PULLEY. Figure shows two weights W 1 and W 2

Determine the deflection under the loads, Determine the deflection under th...

Determine the deflection under the loads: Determine the deflection under the loads as shown in Figure Solution ∑ F y   = 0, so that R A + R B  = 80 + 20 = 100 k

Total decrease in length - hollow cast iron cylinder, Total decrease in len...

Total decrease in length: Q: A hollow cast iron cylinder 4 m long, 300 mm is the outer diameter, and thickness of metal 50 mm is subjected to central load on top when standin

Applications, applications of dynamically induced emf

applications of dynamically induced emf

Leaf spring, weight of leaf spring in bus

weight of leaf spring in bus

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