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

Powder metallurgy, why pre sintering needed in powder metallurgy

why pre sintering needed in powder metallurgy

Show mass energy relation, Q. Show Mass energy Relation? Until the time...

Q. Show Mass energy Relation? Until the time of Einstein, mass and energy were considered as two different physical quantities. But in 1905, with the help of postulates of the

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

What do you understand by pele box, What do you understand by PELE box and ...

What do you understand by PELE box and when it is utilized? Ans. The equipments required in PELE box are: i. HOLDER ii. TRIPOD STAND iii. BULBS iv. CROCODILE CLIP

Electron beam welding-aerospace applications, AEROSPACE APPLICATIONS   ...

AEROSPACE APPLICATIONS   The need for EBW as a critical fabrication process in realising elements and assemblies for spacecraft and launch vehicle programmes due to the foll

Find the tension in the thread, Find the tension in the thread: A thre...

Find the tension in the thread: A thread is wound round a heavy homogeneous cylinder of mass m and radius. The cylinder is permitted to fall from rest and unwinds the thread.

What do you mean by extrusion, Q. What do you mean by extrusion? • Ex...

Q. What do you mean by extrusion? • Extrusion is a process used to create objects of a fixed cross-sectional profile. A material is pushed or drawn through a die of the desir

Problem type-aspects of scheduling , Problem Type Aforementioned illust...

Problem Type Aforementioned illustration relates to the class of non-cyclic scheduling problems characterized via the subsequent features. (a) The Flexible Manufacturing Sys

Illustrate kinematics links, (a) Illustrate Kinematics Links, Chin, Mechani...

(a) Illustrate Kinematics Links, Chin, Mechanism and Pair with their classification and examples. (b) Compare between structure and Machine.

Stress analysis reporting, Q. Stress analysis reporting? • Stress sketc...

Q. Stress analysis reporting? • Stress sketch with all node points, dimensions, pipe schedule, weights of non-standard components, e.g., control valves and actuators, insulatio

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