1.2 Algorithm Design Priciples/Approches Flashcards

1
Q

What are some algorithm design principles/approaches?

A
  1. Brute Force
  2. Divide and Conquer
  3. Greedy
  4. Branch and Bound Algorithms
  5. Randomized algorithm
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a brute force algorithm?

A

It is an approach to algorithms where every possible solution for a problem is explored, and the best one is chosen to solve the problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a Divide and conquer algorithm?

A

It is an approach to algorithms where a problem is divided into smaller problems each smaller problem is solved and their solutions are combined together with the aim of solving the initial problem

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a greedy algorithm?

A

This is an approach to algorithms where the optimal choice is made at each step to come out with the best possible solution

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a branch and bound algorithm?

A

This approach to algorithms divides all possible solutions to a problem into subsets and each subset is analyzed to find the best possible solution to the problem.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a randomized algorithm?

A

This is an approach to algorithms where random bits are added to the input to produce randomized out comes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly