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
Anon25 [30]
3 years ago
13

Is greedy algorithm non deterministic by nature?

Computers and Technology
1 answer:
Flura [38]3 years ago
7 0

Answer: Yes

Explanation: Greedy algorithm is the algorithm that gives the solution to the problem on the basis of the piece by piece or step by step architecture.  the next step of the solution is based on the aim of solving problem optimally.But the steps chosen can be correct or incorrect.

Non-deterministic nature is the feature that determines that the  steps that is being chosen is not the most optimal one and no high surety is present.Thus, this nature is present in the greedy algorithm and it has non-deterministic nature.

You might be interested in
How will you configure those computer hardware peripherals​
almond37 [142]

Answer:

i dont

Explanation:

know sorry tenks thankyou

8 0
3 years ago
What is the most popular game design engine today
kirill [66]

Unreal Engine and Unity

8 0
3 years ago
Read 2 more answers
A drainage network Choose one: A. is considered a trellis network when rivers flow over uniform substrate with a gentle slope. B
Semenov [28]

The Answer to this question is B

4 0
3 years ago
How would I do this code with a while loop to remove the letters? Please and thank you
dusya [7]

There is of course a replace() function in java that lets you do this without a while loop. If you want to do it letter by letter, it gets a little complicated because you have to take care not to index the string outside its bounds.

I did not bother to create a separate runner class. The Main is just inside this class and everything is static.

public class LetterRemover {

   public static String RemoveLetters(String s, char c)

   {

       int loc = s.indexOf(c);

       while(loc >= 0)

       {            

           if (loc == 0) {

               s = s.substring(1);

           } else if (loc == s.length()-1) {

               s = s.substring(0, loc);

           } else {

               s = s.substring(0, loc) + s.substring(loc+1);

           }

           loc = s.indexOf(c);

       }

       return s;

   }

   public static void Test(String s, char c) {

       System.out.format("%s - letter to remove %c\n%s\n", s, c, RemoveLetters(s,c));

   }

   

   public static void main(String[] args) {

       Test("I am Sam I am", 'a');

       Test("ssssssssxssssesssssesss", 's');

       Test("qwertyqwertyqwerty", 'a');

   }

}

7 0
3 years ago
Which describes the outlining method of taking notes?
PSYCHO15rus [73]

Answer:

It includes levels and sublevels of information

Explanation:

The Outlining method of taking notes helps the writer to organize his ideas into levels and sublevels of information which gives the piece of writing an added structure.

This can be achieved by the use of the Arabic numbering system, Roman numerals or use of bullets.

5 0
3 years ago
Other questions:
  • If you want to boot from a hard drive what must it have
    6·1 answer
  • Alison retrieved data from a company database containing personal information on customers. When she looks at the SSN field, she
    14·1 answer
  • How do you send a private message on facebook to someone who is not your friend?
    9·1 answer
  • How does titanium usually form or appear in nature?
    15·1 answer
  • Your essay is due tomorrow and you don't have time to write it. You decide to buy an essay online. You've paid for it, so it can
    12·1 answer
  • The working window of a presentation is the _____.
    6·2 answers
  • The Role of Computer
    15·1 answer
  • What's a checked exception?
    14·2 answers
  • 2. Media sharing websites let you post photos and videos to share with other people. What are the benefits and drawbacks of usin
    10·1 answer
  • Materials used in front office
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!