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

Determine the maximum hoop - conical shells, Determine the maximum hoop: ...

Determine the maximum hoop: A conical water tank of height 2 metres & base radius 500 mm is supported at top and is full of water. The thickness of the wall is refer to 24 mm,

Pendulum pump mechanism, describe about pendulum pump mechanism and dia...

describe about pendulum pump mechanism and diagram

Stress analysis of components and structures, Consider the expansion loop d...

Consider the expansion loop displayed in the diagram below, which is part of a long pipeline.  The loop is made up of a uniform pipe section and is subjected to a temperature raise

Maximum efficiency, A jet strikes tangentially a smooth curved vane moving ...

A jet strikes tangentially a smooth curved vane moving in the similar direction as the jet, and the jet gets reversed in the direction. Prove that the maximum efficiency is slightl

Enterprise resource planning, Enterprise Resource Planning: ERP system...

Enterprise Resource Planning: ERP systems work from a common, central database. ERP integrates all of the compnay's information systems so that each functional area is utilizi

Critical euler axial compression stress, Determine the minimum critical Eul...

Determine the minimum critical Euler axial compression force,  Pcr and the minimum critical Euler axial compression stress, cru, for the column below which is pinned at the top and

Show the vessel internals, Q. Show the vessel internals? Functional des...

Q. Show the vessel internals? Functional design of trays and other removable internals are outside the scope of this document. Removable internals shall be sized to pass thr

Stress concentration factor, 1. Write a short note (not more than half A4 p...

1. Write a short note (not more than half A4 page) on your understanding on St. Venant's Principal for your engineering design analysis. 2.  Estimate the " Stress Concentration

Upward compatibilityof iges, Upward Compatibilityof IGES Upward Compati...

Upward Compatibilityof IGES Upward Compatibility : The need for generations of processors to parse files compliant with earlier versions of IGES thwarted the breadth and rate o

Explain working of nozzles, Q. Explain working of Nozzles? Nozzles supp...

Q. Explain working of Nozzles? Nozzles supporting agitators, pumps, or other mechanical equipment, shall be suitably reinforced to withstand the mechanical loadings, specified

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