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

Illustrate the universal support of data types, Universal Support of Data T...

Universal Support of Data Types To address inherent functional incompatibilities, we take the exact opposite route to the 'least common denominator' approach of previous soluti

Estimate the time require to cool the aluminum, A piece of Al weighing 6 kg...

A piece of Al weighing 6 kg and initially at a temperature of 300 O C is suddenly immersed in a fluid at a temperature of 20 O C. The convectice heat transfer coefficient is 58 W/m

Can you explain the mobile bed model, Q. Can you explain the Mobile bed mod...

Q. Can you explain the Mobile bed model? Mobile bed models can again be either geometrically similar or vertically exaggerated. Models of the former type permit study of proble

Slab hanging - mechanics, Slab hanging: Three similar uniform slabs ...

Slab hanging: Three similar uniform slabs each having length '2 a ' are resting on edge of table as shown in the figure given below. If each slab is overhung by the maximum

Determine the value of shunt connected capacitance, An electric heating ele...

An electric heating element is rated at 4.0kW when connected to a single phase 240Vrms, 50 Hz AC supply, and is known to have a power factor of 0.833 lagging. 1. Calculate the c

Flash butt welding, Flash Butt Welding This process is an extension of ...

Flash Butt Welding This process is an extension of resistance butt welding. The parts to be joined are gripped in the clamps and their interfaces are gradually brought into con

energy method, A semi circular frame of flexural rigidity EI is built at A...

A semi circular frame of flexural rigidity EI is built at A and caries a vertical load W at B. calculate the magnitude of the vertical and horizontal deflection at B and hence the

Illustrate strip rolling, a) In strip rolling what is i) Forward slip ii) N...

a) In strip rolling what is i) Forward slip ii) Neutral point. Illustrate with diagram. b) State the conditions for rolling.

Find out the centre of gravity of solid sphere, Find out the centre of grav...

Find out the centre of gravity of solid sphere: Find out the C. G. of a body formed by a solid sphere placed over a solid cylinder of similar radius a as illustrated in Figure

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