About 63 results
Open links in new tab
  1. Sequencing, selection, and iteration | AP CSP (article) - Khan Academy

    Sequencing is the sequential execution of operations, selection is the decision to execute one operation versus another operation (like a fork in the road), and iteration is repeating the same operations a …

  2. Algorithms | Computer science theory | Computing | Khan Academy

    We've partnered with Dartmouth college professors Tom Cormen and Devin Balkcom to teach introductory computer science algorithms, including searching, sorting, recursion, and graph theory.

  3. Analysis of selection sort (article) | Khan Academy

    Other sorting algorithms, like selection sort, don't really care what the array looks like. These algorithms will typically perform the same number of steps regardless of what the input looks like.

  4. Sorting Visualization | Khan Academy

    A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ...

  5. Analysis of quicksort (article) | Quick sort | Khan Academy

    The last line is because 1 + 2 + 3 + ⋯ + n is the arithmetic series, as we saw when we analyzed selection sort. (We subtract 1 because for quicksort, the summation starts at 2, not 1.) We have …

  6. Expressing an algorithm | AP CSP (article) | Khan Academy

    We'll translate the Pig Latin algorithm to JavaScript, since that's our language of choice on Khan Academy. We can use a for loop for the repetition, an if / else for the selection, and then a mix of …

  7. Divide and conquer algorithms (article) | Khan Academy

    You can easily remember the steps of a divide-and-conquer algorithm as divide, conquer, combine. Here's how to view one step, assuming that each divide step creates two subproblems (though some …

  8. Quicksort algorithm overview | Quick sort (article) | Khan Academy

    In practice, quicksort outperforms merge sort, and it significantly outperforms selection sort and insertion sort. Here is how quicksort uses divide-and-conquer. As with merge sort, think of sorting a subarray …

  9. Binary search (article) | Algorithms | Khan Academy

    Binary search is an efficient algorithm for finding an item from a sorted list of items. It works by repeatedly dividing in half the portion of the list that could contain the item, until you've narrowed …

  10. Sorting (article) | Selection sort | Khan Academy

    Sorting a list of items into ascending or descending order can help either a human or a computer find items on that list quickly, perhaps using an algorithm like binary search.