Answer:
Code is provided in the attachment form
Explanation:
Vector Multiplication code:
Vector_multiplication.c file contains C code.
See attachment no 1 attached below
Classification of Algorithm: For creating elements in vector c of size n, number of scalar multiplications is equal to n. The size of original two vectors scales directly with the number of operations. Hence, it is classified as O(n).
I think marketing and branding. i dont think this is 100% correct
Answer:
phone !!
Explanation:
since it's a mobile app, that would apply to a handheld device !!
i hope this helps !!
Answer:
public static boolean isReverse(int [ ]a, int [ ]b ){
for (int i=0;i<a.length;i++)
{
if(!(a[i] == b[a.length-i-1]))
return false;
}
return true;
}
Explanation:
Using a for loop, we go through the elements of the first array. The if comapres and checks if any of the values are not the same as the appropriate value on the other array, if it is so, then it is not a reverse, and we return false. else we return true.