You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

Minna Chow

Minna Chow

Milo Chang

Milo Chang

Minna Chow

Minna Chow

Milo Chang

Milo Chang

We've just looked at two different ways to write the same loop in Python. This brings up an important point: different can be used to achieve the same goals. This is because algorithms are, at their heart, steps to solve a problem, and there are many different ways to solve the same problem.

Often times, you'll see different algorithms used to solve the same problem, depending on the needs of the programmers and the program.

With all this variability, it's no wonder that new algorithms are constantly being developed. 

New algorithms can be created from scratch or by combining and modifying algorithms that already exist. These existing algorithms could be ones you've written yourself or ones others have already created.

Existing Algorithm Types

Examples of Existing Algorithms:

  • Determining the max. or min. value in a group of two or more numbers
  • Solving math problems: calculating sums, averages, etc.
  • Determining a robot's path through a maze ()
  • (see )
  • Using existing algorithms can help reduce because you're working with something that you can rely on. It also helps you simplify your because you know your problem can't come from within the algorithm.

If you use someone else's work, make sure to cite it properly, as mentioned in Big Ideas 1 and 5!

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.