Answer:
import java.util.*;
public class work {
// function for counting unique character
public static int numUnique(String input) {
boolean[] list = new boolean[Character.MAX_VALUE];
for (int i = 0; i < input.length(); i++) {
list[input.charAt(i)] = true;
}
int count = 0;
for (int i = 0; i <list.length; i++) {
if (list[i] == true){
count++;
}
}
return count;
}
public static void main(String args[])
{
List<String>list=new ArrayList<>(); // creatng array list of type string
list.add("abcdef");
list.add("aaabcd");
list.add("bccddee");
list.add("abcddd");
list.add("a");
for(String str:list)
{
// for printing the results
System.out.println("given string : "+ str+" , number of unique values :"+numUnique(str));
}
}
}
Explanation:
Answer:
a) Internal Forwarding is not used = 26 clock cycles
b)Internal Forwarding is used= 22 clock cycles
Answer: c) C2B (Consumer to business)
Explanation: Consumer to business (C2B) is the business technique in which the consumer or customer generates the good or service and then businesses are offered to take that product or service. The case mentioned in the question is also similar where May sells the jams made by her to the local grocer who has his business.
Other options are incorrect because Business to business (B2B) is where two business party trade with each other, Business to consumer (B2C) is business offer the product or service to consumer and Costumer to costumer(C2C) is the private trading of service between two individual parties. Thus,the correct option is option(c).
An Inode number is a number that is related to the file and unique across all file systems in Linux and Unix.
A number that is associated with the file and unique in that particular filesytem.
<u>Explanation:</u>
Whenever any files are created on the system, It is given a file name with a number (inode)is unique. To access this file on the system, the user usually will use the file name. But here, he or she will have to access the file along with an Inode number associated with it.
Where stored as numbers datatype in a table called the Inode table. The Inode table is created only when the file system is created. It shows how many inodes are filled and how many are free. The command “df-i” shows the inode table in Linux
Answer:
Yes
Explanation:
A nonlinear optimization problem is indeed a optimization problem in which there are nonlinear elements involved either as the objective function or one or more constraints may be nonlinear also. Let me show you an example. Let optimize de following function:

These are the constraints:

The last constraint consists on nonlinear elements, so this problem in fact a nonlinear optimization problem.