Skip to content

ga-sei-lessons/search-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Search Algorithms

Overview

In this lesson, you'll learn how the binary search algorithm works to find information efficiently and elegantly.

There are two components to this lesson:

  1. myGA module: Search Algorithms
  2. In-Class Exercise: Implementing Binary Search

Note: The myGA module contains a link to an exercise in CodePen. The code in CodePen is the exact same as the code for the in-class exercises. Try out the exercise in CodePen and see how far you can get with it. Leave off where you get stuck and we'll review the solution in class.

Learning Objectives

By the end of this lesson, you will be able to:

  • Understand the Big O complexities of brute force and binary search approaches.
  • Describe how binary search works.
  • Write a binary search algorithm to find a value in an array.

Prerequisites

  • Big O Notation
  • Recursion
  • Intro to Sorting Algorithms

Duration

1.5 hours total:

  • 0.5 hour myGA
  • 1 hour in class

Additional Resources

  • Check out this article that outlines common interview questions related to binary search.
  • More thoughts on how binary search appears in job interviews.
  • Algorithmic folk dancers, this time with search!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published