From the course: Programming Foundations: Algorithms
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Common algorithms in programming - Python Tutorial
From the course: Programming Foundations: Algorithms
Common algorithms in programming
- Now that we've learned a little bit about what an algorithm is, we can investigate some of the more common ones that appear in a variety of programming scenarios. One of the most common algorithm types you'll run into are searching algorithms. These pop up in cases where you need to find a specific piece of data inside a larger data structure. For example, searching for a substring inside of a larger string or maybe finding a file within a set of nested folders on a file system. Sorting algorithms are another very common type used when working with ordered sets of data. And, as you might have guessed, they take a set of data and organize it into a particular order. Computational algorithms are used to take one set of data and derive another set of data from it. A simple example might be calculating whether a given number is a prime number or maybe computing a temperature in one scale when you already have it in…