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

Cantilevered beam, A cantilevered beam is to be made of 7075-T6 aluminum ...

A cantilevered beam is to be made of 7075-T6 aluminum with a uniaxial yield strength of 469 MPa. The beam is 1m long, and is loaded with the following limit loads: a bending mome

Som, What is the tesisting force

What is the tesisting force

# ic engines, what are the di #Minimum 100 words accepted#

what are the di #Minimum 100 words accepted#

Explain butt joints, Butt joints- formed by placing the plates edge to edge...

Butt joints- formed by placing the plates edge to edge and welding them. Grooves are sometimes cut (For thick plates) on the edges before welding. According to the shape of the gro

Monte Calro for aerodynamic load simulation.., I have experimental results ...

I have experimental results for a 2D model and a matlab script that computes the aerodynamic loads on that 2D model.When we compare experiment with the theory I have noted that the

Energy - thermodynamics, Energy - thermodynamics: The energy can be de...

Energy - thermodynamics: The energy can be defined as the capacity of doing work. The energy possessed by system may be of two kinds. 1. Stored energy: for example potent

Alumina-silica composite, Alumina-Silica Composite  This composite is a...

Alumina-Silica Composite  This composite is an especially usual refractory material. Due to easy availability and low cost aluminia-silica composite is extensively utilized in

Minimum stopping distance, Assume we want to determine the minimum stopping...

Assume we want to determine the minimum stopping distance of an automobile traveling at 60 mph. We again assume that the maximum value of µ is unity. Then the maximum deceleration

What is forced draft fan, Q. What is Forced Draft Fan? Fan shall comply...

Q. What is Forced Draft Fan? Fan shall comply with API 673 as supplemented by the following: (para. references are to API 673). Where the intake air is unfiltered, the Vendo

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