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

Bore - thermodynamics, Bore - Thermodynamics: The inner diameter of en...

Bore - Thermodynamics: The inner diameter of engine cylinder is called as bore. It can be measured by a vernier calliper or bore gauge. As engine cylinder wears out with the p

What do you understand by resolution of force system, (a) The following for...

(a) The following forces (all pull) act at a point : (6) (i) 20 N North-East (ii) 25 N due North (iii) 20 N 30o East of South (iv) 15 N due East (v) 30 N 60o South o

What are the types of interface, What are the Types of interface An int...

What are the Types of interface An interface can be regarded as an aggregate of conditions, rules and conventions which describes the information exchange, between two communic

A damped single degree mass-spring system, the spring k2 is attached to a b...

the spring k2 is attached to a base that is moving vertically with displacement y=yo sin(wt).assume x>y.derive the equation of motion .find the natural frequency and derive the ste

Calculate efficiency of turbine, (a) Explain briefly the functions of the s...

(a) Explain briefly the functions of the spiral casing guide vanes, and draft tube of a reaction water. (b) A Kaplan turbine developing 3250 KW under a head of 6m has a draft tu

Specifications - boilers, SPECIFIC A TION S:    The boilers are s...

SPECIFIC A TION S:    The boilers are specified as per following parameters : -     Steam Generation Rate : for instance 50 000 kg /hr. -     Maximum Pressure: for

ENGINEERNING DRAWNING, HOW TO PREPARE A DRAWING IN FIRST ANGLE PROJECTION A...

HOW TO PREPARE A DRAWING IN FIRST ANGLE PROJECTION AND THIRD ANGLE PROJECTION AND WHAT IS THEIR BASIC PRINCIPLE AND WE DO NOT MAKE DRAWING IN 2ND ANGLE PROJECTION AND 4TH ANGLE PRO

Explain classification of welding processes, Classification Of Welding Proc...

Classification Of Welding Processes The classificated depending upon the nature of heat source and its movement resulting in spot, seam or zonal welds; or on the extent of heat

Explain the uses of pier and well foundations, Explain the uses of Pier and...

Explain the uses of Pier and Well Foundations Well foundations are used to transmit large loads from piers of bridges and other marine structures. These are constructions carr

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