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

Submerged arc welding, SUBMERGED ARC WELDING The optimum performance of w...

SUBMERGED ARC WELDING The optimum performance of welded vessels and structures in service have led to the full exploitation of automatic welding processes. This arc welding is on

Properties of aluminium alloys, Properties of Aluminium Alloys: Among...

Properties of Aluminium Alloys: Among the different properties of aluminium alloys given are notable as: (a) Low density as 2.7 gm/cc (b) Elevated electrical and therma

Design loads and load combinations, Q. Design Loads and Load Combinations? ...

Q. Design Loads and Load Combinations? The Designer shall determine the following loads and specify them on the Data Sheet. Design loads are defined and classified as follows:

Crankshaft design, i have designed a crankshaft for 3 cylinder engine i wan...

i have designed a crankshaft for 3 cylinder engine i want to know how to balance it

Find out dimension of the cross section of the beam, Q.  A wooden beam of t...

Q.  A wooden beam of the rectangular cross section is subjected to bending moment of 5KNm. If the depth of section is to be double the breadth and stress in wood is not to exceed 6

Main features of laser cutting process, Main Features of Laser Cutting Proc...

Main Features of Laser Cutting Process   1) Laser cut kerf is very narrow resulting in material saving. 2) Has very narrow heat affected zone (HAZ) and therefore gives low

Deadlock-able non-resolvable net system, See the Petri net represent in fol...

See the Petri net represent in following figures (a) and (b) as represented in the figure for analysis and depiction of qualitative pathological behaviors. Figure: (a): An

Calculate mean effective pressure of engine, Calculate mean effective press...

Calculate mean effective pressure of engine: A 4 stroke diesel engine is having length of 20 cm and diameter of 16 cm. The engine is generating indicated power of 25 KW when

Describe the term critical insulation thickness, Q. Describe the term ‘Crit...

Q. Describe the term ‘Critical Insulation thickness'. What is its significance? Derive an expression for the critical insulation radius of a spherical system. A bar of square cr

Gun fires - projectile motion, Gun fires - projectile motion: A gun fi...

Gun fires - projectile motion: A gun fires a projectile along with a muzzle velocity of 300 m/sec as illustrated in Figure. Find its angle of inclination so that it strikes a

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