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

Newton ring, What is a newton ring excrement

What is a newton ring excrement

Design a helical spring, A semi elliptical spring has 10 leaves in all, wit...

A semi elliptical spring has 10 leaves in all, with the two full length leaves extending 625 mm. It is 62.5 mm wide and is prepared by strips 6 mm thick. Prepare a design of helica

Scraper launchers and receivers, Q. Scraper Launchers and Receivers? Sc...

Q. Scraper Launchers and Receivers? Scraper launchers and receivers associated with the pipelines shall be located in open, well-ventilated areas with the opening directed away

Erosion-corrosion in sand slurry line, Q. Erosion-Corrosion In Sand Slurry ...

Q. Erosion-Corrosion In Sand Slurry Line? All sands are collected in the Inlet Slug Catcher and routed to the Desand Tank for separation. Sand Slurry lines are subject to erosi

Define inversion of a mechanism, Define Inversion of a mechanism ? Illustra...

Define Inversion of a mechanism ? Illustrate in detail about any three of the Inversions of the single slider crank chain Mechanism. (a) What do you understand by Degree of Free

Explain asphalt paving machine, Explain Asphalt paving machine In the l...

Explain Asphalt paving machine In the laying of asphalt pavement roadways, it is common practice to utilize Floating screed type paving machines. These machines typically inclu

Determine the work done by the gas system, (a) Derive the mathematical equa...

(a) Derive the mathematical equation for work done in a polytropic process (i.e.) PV n =c) (b) A mass of gas is compressed in a quasi-static process from 80KPa, 0.1m 3 to 0.4M

Determine magnitude and direction of the resultant force, Determine magnitu...

Determine magnitude and direction of the resultant force: A system of forces is acting at the corner of a rectangular block as shown in the figure. Determine magnitude and di

Design, Hi I am new tutor here Pankaj kumar I got the mail for the verif...

Hi I am new tutor here Pankaj kumar I got the mail for the verification and i regitered now . But how can i get the sample assignment for the further process.

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