Menu
CLCompetitive ProgrammingRoadmapContestsToolsBlog
GitHub
🌜
🌞
CLCompetitive Programming
  • Roadmap
  • Contests
  • Tools
  • Blog
  • GitHub
  • Basics
    • Learn C++
    • Time and Space Complexity
    • Some other important things
  • STL
    • STL Tutorials
    • Practice Problems for STL
    • Editorials to STL practice problems
    • Implementation and Regular Contests
  • Number Theory
    • Number Theory Tutorials
    • Practice Problems for Number Theory
  • Binary Search
    • Binary Search Tutorials
    • Practice Problems for Binary Search
  • Graph Theory
    • Graph Theory Tutorials
    • Practice Problems for Graph Theory
  • Programming Techniques
    • Greedy Tutorials
    • DP Tutorials
    • Practice Problems
  • Advanced
    • DP on Graphs
    • DP with Bitmasks

Binary Search Tutorials

Binary search#

  1. Watch Binary search video by Errichto
  2. Read Top Coder article for Binary search

Ternary search#

  1. Read CP-algorithms article on ternary search
  2. Read Hackerearth article on ternary search
tip

Note: Ternary search problems can also be solved using binary search, by considering the function g(x) = f(x) > f(x-1) as a monotonic function. See this blog for more details.

Session slides#

  • The whiteboard slides, used during the session on Binary search, are available here

  • The whiteboard slides, used during the session on Ternary search, are available here

Additional resources#

  • Watch this series of 5 short lectures on Binary search by codeforces
Edit this page
Previous
« Practice Problems for Number Theory
Next
Practice Problems for Binary Search »
  • Binary search
  • Ternary search
  • Session slides
  • Additional resources

Roadmap

  • Basics
  • STL
  • Number Theory
  • Binary Search
  • Graph Theory
  • Programming Techniques

Important Tools

  • Coding Schedule
  • OEIS
  • CP Editor
  • Diff Checker
  • CSAcademy online IDE
  • VisuAlgo
  • Algorithm Visualizer

More

  • Blog
  • Contests
  • GitHub
Copyright © 2020 Cyber Labs. All Rights Reserved.