Contents
Program to sort a list of arrays from higher to lower order without repeating the values.
Metamorphic relation.
Kinds of metamorphic relation.
Effective metamorphic relation out of all
#include<bits/dstc++.h>
#include<iostream>
The namespace using as dst;
//this line assists in avoiding and mitigating the repeating and duplicate elements
// this operation also behaves as a modified array and new size of array list
Int remove Duplicates (int arr[], int w)
{
If (w==0 || w==1)
Return w;
// it assists in storing the new and unique element in the index
Int w=0;
// this assists in maintain another updated index i.e. x
For (int b=0; b<w-1; b++)
If (arr[b] !=arr[b+1]
arr[x++]= arr[b];
arr[x++]=arr[w-1];
Return x;
}
// now main code starts from here
int main()
{
Int arr[]= {-1, -2, 3,3,4,4,20, 50, ,-55, 20,-2}
Int w= sizeof (arr)/sizeof(arr[0]);
// this function sort the array from higher to lower values
Sort(arr, arr+w);
// this function will help in eliminating the duplicate elements from the array
w=removeDuplicate(arr,w);
// this function assists in printing the novice array
For (int (int b=0; b<w-1; b++))
cout<<arr[b]<<” “;
return0;
}
An abstraction of different patterns of various inputs and distinct types of inputs that characterizes the relation among the source of inputs and the source of follow up in the metamorphic relation is said to be metamorphic relation. In this particular metamorphic relation, the sources and the inputs can be numerous and can be infinite.
The testing of metamorphic provides a mechanism to evaluate the program according to the expected result of the analyzed execution is unknown or if it is unable for performing the comparison with the actual values or standards; this result is also known as oracle issue. For solving this oracle issue, instead of evaluating the individual elements of all the results of distinct program, the evaluation of metamorphic program harasses the relation among the result and the input of various executions of infinite programs that is performed under observation. Every relation that comes under metamorphic testing is referred as the metamorphic relation. In other words, metamorphic relations are those relation that programs tests under metamorphic testing.
Every of these relation under metamorphic testing is known as metamorphic relation.
Of talk about the coding area of obfuscators or cybersecurity then there are many types of metamorphic relation. The kinds of metamorphic relation are explained below:
All the metamorphic relation that are defined above are from the user’s perspective. It is an example and that too solid example of exchanging the direction of MRIP i.e. Metamorphic relation input pattern the symmetry Metamorphic relation pattern in which the elements can solved either in increasing order or in decreasing order.
The perfect metamorphic relation is Metamorphic Relation Price Sort and this is the effective out of all seven relations. Let r(x,y) describes the perfect search function where q is the searching criteria and p id is the sorting criteria, then the outcome will give accordingly y. if y1(y2) describes the criteria that assists in sorting the result according to price in decreasing or increasing in sequence then s(x, y1) and r(x, y2) should offer exactly same sets of result but will be reverse order.
Remember, at the center of any academic work, lies clarity and evidence. Should you need further assistance, do look up to our Computer Science Assignment Help
1,212,718Orders
4.9/5Rating
5,063Experts
Turnitin Report
$10.00Proofreading and Editing
$9.00Per PageConsultation with Expert
$35.00Per HourLive Session 1-on-1
$40.00Per 30 min.Quality Check
$25.00Total
FreeGet
500 Words Free
on your assignment today
Get
500 Words Free
on your assignment today
Doing your Assignment with our resources is simple, take Expert assistance to ensure HD Grades. Here you Go....
Min Wordcount should be 2000 Min deadline should be 3 days Min Order Cost will be USD 10 User Type is All Users Coupon can use Multiple