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

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

Idle circuit of motorcycle, Idle Circuit : During Idling while the th...

Idle Circuit : During Idling while the throttle valve is almost closed the vacuum is very high at Venturi area and no air-fuel mixture is drawn through the main circuit, as t

Resultant of axial and bending stress for beams, Dear Sir, I wish to know t...

Dear Sir, I wish to know the equation for finding the resultant of the axial stress and bending stress for beams. Can you please help me. thanx in advance, Krishna.

Aerospace engineering, An airfoil of surface area 1.5 ft2 is tested for lif...

An airfoil of surface area 1.5 ft2 is tested for lift L in a wind tunnel. At an angle of attack of 7° with standard air of density 0.0024 slugs/ft3 at a speed of 90 ft/sec, the lif

Principals, do you know the grade to the answers of the questions in the pr...

do you know the grade to the answers of the questions in the pre paid solutions..?? and what if the answers are wrong..?? as i need all working out shown

Hot And Cold Working, What Are Difference Between Hot And Cold Working

What Are Difference Between Hot And Cold Working

Violation of clausius statement - thermodynamics, Equivalen t of Kelvin Pl...

Equivalen t of Kelvin Plank and Clausius statement: The Kelvin plank and clausius statements of the second law and are equivalent in all the respect. The equivalence of state

Kinetic or dynamic friction, Kineti c (Dynamic) Friction: When appli...

Kineti c (Dynamic) Friction: When applied force exceeds limiting friction the body starts moving over the other body and the friction of resistance experienced by the body a

Manufacturing systems and automation, This formative assignment seeks to de...

This formative assignment seeks to develop and assess skills associated with basic modern ICT tools and competence in the techniques of Rough-Cut Capacity Planning and F inan

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