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

Fuel feed system, Fuel Feed System: Fuel feed system is provided to serve ...

Fuel Feed System: Fuel feed system is provided to serve the air fuel mixture to the engine in an appropriate ratio so that it can burn efficiently and transmit power to crank shaf

Pseudo force, why we feel increase in weight when elevator goes up?

why we feel increase in weight when elevator goes up?

Buckingham''s pi-theorem, (a) Show by use of Buckingham's Pi-Theorem that t...

(a) Show by use of Buckingham's Pi-Theorem that the velocity through an orifice is given by V = √2gH  f D/H , M/ΡVH , σ/ΡV 2 H . Where H is the head causing flow, D is the diame

Thermal, Prove that energy is a property of system

Prove that energy is a property of system

Calculating the number of kanban card sets, Calculating the number of kanba...

Calculating the number of kanban card sets: A hospital desires to set up a Kanban system to manage its supply of blood with the regional blood bank. The regional blood bank tr

#title.gear train, explain the working of gear trainAsk question explain de...

explain the working of gear trainAsk question explain detail#Minimum 100 words accepted#

Types of belt drive used for power transmission, Q. Explain the types of be...

Q. Explain the types of belt drive used for power transmission? Also derive the velocity ratio of them. Sol:   There are mainly three types of belt drive: (1) Open belt driv

Find out horizontal and vertical components of hinge force, Find out horizo...

Find out horizontal and vertical components of hinge force: The frame shown in Figure is supported by a hinge at E and a roller support at D. Find out horizontal and vertical

Transmission system , Transmission System: In a two-wheeler, the transmiss...

Transmission System: In a two-wheeler, the transmission system means the whole arrangement that transmits the power from the engine crankshaft to the rear wheel.

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