Answer:
Pseudocode is as follows:
// below is a function that takes two parameters:1. An array of items 2. An integer for weight W
// it returns an array of selected items which satisfy the given condition of sum <= max sum.
function findSubset( array items[], integer W)
{
initialize:
maxSum = 0;
ansArray = [];
// take each "item" from array to create all possible combinations of arrays by comparing with "W" and // "maxSum"
start the loop:
// include item in the ansArray[]
ansArray.push(item);
// remove the item from the items[]
items.pop(item);
ansArray.push(item1);
start the while loop(sum(ansArray[]) <= W):
// exclude the element already included and start including till
if (sum(ansArray[]) > maxSum)
// if true then include item in ansArray[]
ansArray.push(item);
// update the maxSum
maxSum = sum(ansArray[items]);
else
// move to next element
continue;
end the loop;
// again make the item[] same by pushing the popped element
items.push(item);
end the loop;
return the ansArray[]
}
Explanation:
You can find example to implement the algorithm.
For example when there is research on how many people shoplift in a shopping centre per week. These numbers could show a increase in the number of shoplifters per week.
Answer:
personnel strategy
Explanation:
Competitive analysis is a process that involves relating the company to its environment. Competitive analysis helps identify the strengths and weaknesses of the company, as well as the opportunities and threats that affect it within its target market. This analysis is the basis on which the strategy will be designed, for this we must know or intuit as soon as possible:
The nature and success of the probable changes that the competitor may adopt.
The probable response of the competitor to the possible strategic movements that other companies may initiate.
The reaction and adaptation to the possible changes of the environment that may occur from the various competitors.
The competition is made up of companies that operate in the same market and perform the same function within the same group of customers regardless of the technology used for it. It is not, therefore, our competitor that manufactures a generic product like ours, but one that satisfies the same needs as we do with respect to the same target or consumer audience, for example, cinema can be the theme parks competition, since both are embedded in leisure.
Answer and Explanation:
class Dis
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter values for a,b,c");
double a=sc.nextDouble();
double b=sc.nextDouble();
double c=sc.nextDouble();
String s=discriminant(a,b,c);
System.out.println(s);
}
public String discriminant(double a, double b, double c)
{
double result;
result=(
);
if(result<0)
return "no real solutions"";
else return "";
}
}
Note:This program is written in JAVA