Need to compress this IPv6 Address
ad93:a0e4:a9ce:32fc:cba8:15fe:ed90:d768

Answers

Answer 1

I can't underatnd your question

SORRY


Related Questions

Suppose you are choosing between the following three algorithms:
• Algorithm A solves problems by dividing them into five subproblems of half the size, recursively solving each subproblem, and then combining the solutions in linear time.
• Algorithm B solves problems of size n by recursively solving two subproblems of size n − 1 and then combining the solutions in constant time.
• Algorithm C solves problems of size n by dividing them into nine sub-problems of size n=3, recursively solving each sub-problem, and then combining the solutions in O(n2) time.
What are the running times of each of these algorithms (in big-O notation), and which would you choose?

Answers

Answer:

Algorithm C is chosen

Explanation:

For Algorithm A

T(n) = 5 * T ( n/2 ) + 0(n)

where : a = 5 , b = 2 , ∝ = 1

attached below is the remaining part of the solution

Write a recursive method called permut that accepts two integers n and r as parameters and returns the number of unique permutations of r items from a group of n items. For given values of n and r, this value P(n, r) can be computed as follows:
n!/(n - r)!
For example , permut (7, 4) should return 840.

Answers

Answer:

Following are the code to the given question:

public class Main//defining a class Main

{

static int permut(int n, int r)//defining a method permut that holds two variable

{

return fact(n)/fact(n-r);//use return keyword to return calcuate value

}

static int fact(int n)//defining a fact method as recursive to calculate factorials

{

return n==0?1:n*fact(n-1);//calling the method recursively

}

public static void main(String[] abs)//main function

{

//int n=7,r=4;//defining integer variable

System.out.println(permut(7,4));//use print method to call permut method and print its values

}

}

Output:

840

Explanation:

Following is the explanation for the above code.

Defining a class Main.Inside the class two methods, "permut and fact" were defined, in which the "permut" accepts two values for calculating its permutated value, and the fact is used for calculates factorial values recursively. At the last, the main method is declared, which uses the print method to call "permut" and prints its return values.

This lab was designed to teach you more about using Scanner to chop up Strings. Lab Description : Take a group of numbers all on the same line and average the numbers. First, total up all of the numbers. Then, take the total and divide that by the number of numbers. Format the average to three decimal places Sample Data : 9 10 5 20 11 22 33 44 55 66 77 4B 52 29 10D 50 29 D 100 90 95 98 100 97 Files Needed :: Average.java AverageRunner.java Sample Output: 9 10 5 20 average = 11.000 11 22 33 44 55 66 77 average = 44.000 48 52 29 100 50 29 average - 51.333 0 average - 0.000 100 90 95 98 100 97 average - 96.667

Answers

Answer:

The program is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

    Scanner input = new Scanner(System.in);

 String score;

 System.out.print("Scores: ");

 score = input.nextLine();

 String[] scores_string = score.split(" ");

 double total = 0;

 for(int i = 0; i<scores_string.length;i++){

     total+= Double.parseDouble(scores_string[i]);  }

 double average = total/scores_string.length;

 System.out.format("Average: %.3f", average); }

}

Explanation:

This declares score as string

 String score;

This prompts the user for scores

 System.out.print("Scores: ");

This gets the input from the user

 score = input.nextLine();

This splits the scores into an array

 String[] scores_string = score.split(" ");

This initializes total to 0

 double total = 0;

This iterates through the scores

 for(int i = 0; i<scores_string.length;i++){

This calculates the sum by first converting each entry to double

     total+= Double.parseDouble(scores_string[i]);  }

The average is calculated here

 double average = total/scores_string.length;

This prints the average

 System.out.format("Average: %.3f", average); }

}

Other Questions
how do i solve this question What are the duties of the attorney general? Check all that apply. defending the laws of the state in court being responsible for the custody of state funds keeping the Great Seal of the State of Louisiana serving as the head of the Department of Justice advising or assisting on criminal cases as needed serving as an ex officio member on certain committees Fill in the blanks with the correct article. The gender of the noun is given.Buch (neut.) habe ichProfessor (masc.) gestern gegeben.der, diedem, dasdas, demdie, der Let xa(t)be an analog signal with bandwidth B=3kHz. We wishto use an ????=2mpointDFT to compute the spectrum ofthe signal with a resolution less than or equal to 50 Hz. Determine (a) the minimum sampling rate, (b) the minimum number of required samples, and (c) the minimumlength of the analog signal record(in seconds). Some parents choose homeschooling because they are dissatisfied with the quality of education offered by the public schools. What statement best describes the use of poetic elements in the excerpts Read this excerpt from the police report in "It's My Constitutional Right!"The police report for Claudette Colvin dated March 2, 1955. Why is this an example of a primary source?A It was written by a man named Robert Clare in Montgomery.m B It was written about the Montgomery City Lines Bus company.C It was written the same day Claudette was taken off the bus.D It was written using official police words and phrases. Sally rides her bike to the store to get some Skittles. The store is 5 kmaway. If it takes her 10 minutes to get to the store what is her averagespeed?0.5 km/hr0.5 mph0.5 km/min5 km/min Store A sells a watch for $50 and offers a 5% discount. Store B sells the same watch for $60 and offers a 20% discount. The sales tax is 6% for both . After discounts and taxes are applied, from which store should you buy the watch and why? What are the "Fundamentals of Economics? The beliefs listed belong to which political party?-protection of civil liberties-limited government-non-interventionist foreign policy Name the type of behavior EthicalSocialPersonal What is a " primordial substance" and how does that term relate to Empedocles ? A full bottle holds 1/4gallon of juice, If of3/5the juice has beenpored how muchjuice is left in the bottle? If I had my mouth ,I would bite ;If I had liberty ,I would do my liking .The repetition of phrase if I had Is an example of the literary device? Choose the sentence below that best corresponds to the following image.A. La robe est plus sale que le short.B. La robe est moins sale que le short.C. Le short est plus sale que la robe.0 D. La robe est aussi sale que le short. Read the following sentence. Which word does having finished the test modify?Having finished the test, Kenez turned his paper over and fell asleep.AKenezBturnedCpaperDasleep True or False. Martial Arts were originally used for survival and warfare. FINDING THE AREA OF A NONRIGHT TRIANGLE USING THE BOX METHOD. please help I need it, will give brainliest