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

Explain the working of radial drilling machine, Normal 0 false ...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Calculate pressure on each side of spherical ball , Calculate pressure on e...

Calculate pressure on each side of spherical ball : Heavy spherical ball of weight W rests in V shaped trough whose sides are inclined at the angles and to the horizontal

Introduction to fuel cell technology workshop , Introduction There was...

Introduction There was a power point presentation on Hydrogen fuel, Hydrogen production using electrolyzer and solar energy and solar energy.Topics like Alternative Energy Sys

Metal cutting, what is tangential force in metal cutting

what is tangential force in metal cutting

Determine the crippling load and safe load, A hollow mild steel tube 6 m lo...

A hollow mild steel tube 6 m long 4 cm internal diameter and 6 mm thick is used as a strut with both ends hinged. Determine the crippling load and safe load taking factor of safety

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

Form tool design, I want to make a form tool for lathe for making a convex ...

I want to make a form tool for lathe for making a convex groove of 3 mm radius. tool material will be tungsten carbide. I want to know the dimensions of tool. What is the procedure

Advantages of two stroke engine over a four stroke engine, Advantages of tw...

Advantages of two stroke engine over a four stroke engine: The advantages of two stroke engine over a four stroke engine are stated below: 1. A two stroke engine has twice

Maximal conductances and reversal potentials, By introducing their model of...

By introducing their model of neural excitability in 1952, Alan Lloyd Hodgkin and Andrew Huxley not only shed light on the mechanism underlying a very important phenomenon in Physi

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