1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
mixer [17]
3 years ago
5

A “greedy algorithm” sometimes works well for optimization problems???

Computers and Technology
1 answer:
mrs_skeptik [129]3 years ago
5 0
An optimization problem is one in which you want to find, not just a solution, but the best  solution •<span>A <span>“greedy algorithm” sometimes works </span></span><span>well for optimization problems </span>•<span>But only a few optimization problems can </span><span> be solved by the <span>greedy method</span></span>
You might be interested in
Source Code for TF2 - Please insert it here
Advocard [28]

Answer:

Hi T!

Explanation:

How are you?

3 0
3 years ago
What movie won best picture oscar for 1990
tamaranim1 [39]
I think <span>Dances with Wolves</span>
8 0
3 years ago
Read 2 more answers
What is the name of the top-level parentless folder in a digital file system?
Viefleur [7K]

Answer:

ROOT

Explanation:

6 0
3 years ago
Consider the code fragment below (with nested loops). int sum = 0;for (int i = 1; i &lt; 5; i++) for (int j = 1; j &lt;= i; j++)
sammy [17]

Answer:

Option d is the correct answer for the above question.

Explanation:

  • The first loop of the program has a second loop and then the statement. In this scenario, the second loop executes for the value of the first loop and the statement executes for the value of the second loop.
  • The first loop executes 4 times, Then the second loop or inner loop executes n times for the n iteration of the first loop, for example, 1 time for the first iteration of the first loop, 2 times for the second iteration of the first loop and so on.
  • Then the inner loop executes (1+2+3+4) iteration which gives the result 10 iterations.
  • The sum initial value is 0 and the "sum++", increase the value of the sum by 1.
  • So the value of the sum becomes 10 after completing 10 iterations of the inner for loop.
  • Hence the 10 will be the output. So the Option d is the correct answer while the other is not.
3 0
3 years ago
Write a method called average that accepts two integer parameters and returns their average as a floating point value: Overload
kherson [118]

Answer:

   public static double average(int num1, int num2){

       return (num1+num2)/2;

   }

   public static double average(int num1, int num2, int num3, int num4){

       return (num1+num2+num3+num4)/2;

   }

Explanation:

  • In the first instance, the method average() accepts two parameters and returns their average
  • In the second instance the method accepts four parameters and returns their average
  • The concept of method overloading allows a program to have more than method with the the same name but with different parameters list like we find in this example
5 0
3 years ago
Other questions:
  • Hardware- The ______________ equipment that makes up the computer.
    6·1 answer
  • How will computing change our world?
    8·1 answer
  • Write a program that converts or calculates values. Use the following guidelines to write your program:
    8·1 answer
  • Which phrase refers to the collection of geospatial data through the use of satellite images/pictures?
    13·1 answer
  • Given the class definition: class CreateDestroy { public: CreateDestroy() { cout &lt;&lt; "constructor called, "; } ~CreateDestr
    6·1 answer
  • 1. What was the very first “photo-realistic CGI character” to appear on-screen in a movie (released in 1985)?
    8·2 answers
  • 3. List three common vector image file types.
    7·1 answer
  • How do you refer particular cell?<br>​
    12·1 answer
  • What is the difference between the dom api and the html dom api.
    8·1 answer
  • Malware that locks or prevents a device from functioning properly until a fee has been paid is known as:
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!