AF - Algorithms Lesson

Algorithms

shutterstock_2005804553.jpg

Algorithms are all about finding solutions.  What steps did you apply to login to the course?  You probably did not give it a thought because you have completed the steps numerous times.  When working with algorithms in programming, you need to consider the input, desired output, and process to obtain a desired output.  Because algorithms are part of the programming process, it must meet the following criteria.

  • Well-defined – The steps must be specific.
  • Effective – The algorithm must solve all cases of the problem.

There will be occasions when errors are encountered during the programming process.  The program will not execute, and an error message will be indicated.  As noted in the Operating Systems and Binary Code Module, computers do not interpret information like humans.  You cannot assume that a procedure will be processed without specific and sequenced instructions.

It is helpful to think of the steps provided for recipes when considering how you might code your program.  Recipes include a list of ingredients and specific details for the cooking process such as the image below.

[CC BY 4.0] UNLESS OTHERWISE NOTED | IMAGES: LICENSED AND USED ACCORDING TO TERMS OF SUBSCRIPTION