Logarithmic
Last updated
What is Logarithmic?
Logarithmic time complexity (O(log n)) often indicates that the algorithm halves the size of the input at each step. It's more efficient compared to linear time complexity. Binary search is a classic example of logarithmic time complexity where at every step, the algorithm breaks the list into half until it finds the desired element. As the size of the input increases, the growth of the time taken by an algorithm with logarithmic complexity grows slowly because it divides the problem into smaller parts in each step.
More in stage 6: Algorithmic Complexity
Logarithmic: common questions
Can I learn Logarithmic in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Logarithmic in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Logarithmic tutorial for beginners?
It is lesson 33 of 107 in the free Data Structures & Algorithms roadmap, in stage 6, Algorithmic Complexity. If you are new to Data Structures & Algorithms, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.