About 121,000 results
Open links in new tab
  1. What is Logarithmic Time Complexity? A Complete Tutorial

    Sep 16, 2024 · Logarithmic time complexity is denoted as O(log n). It is a measure of how the runtime of an algorithm scales as the input size increases. In this comprehensive tutorial. In this article, we will look in-depth into the Logarithmic Complexity.

  2. Examples of Algorithms which has O (1), O (n log n) and O (log n ...

    Oct 20, 2009 · In a nutshell, all Brute Force Algorithms, or Noob ones which require linearity, are based on O (n) time complexity. Counting/Bucket Sort and here too you can find a million more such examples.... The factor of 'log n' is introduced by …

  3. Discrete logarithm (Find an integer k such that a^k is ... - GeeksforGeeks

    Apr 10, 2025 · Find an integer k such that a^k \equiv b \pmod m ak ≡b (mod m) where a and m are relatively prime. If it is not possible for any k to satisfy this relation, print -1. which is equal to b i.e., 3. A Naive approach is to run a loop from 0 to m to cover all possible values of k and check for which value of k, the above relation satisfies.

  4. O (log N) Algorithm Example - TutorialsEU

    Mar 28, 2024 · In this article, we will implement an O(log N) Algorithm Example, and explore what O(log N) time complexity means. We will also discuss the advantages and disadvantages of using logarithmic algorithms and explain why they are an important tool in algorithm design.

  5. algorithm - What does O (log n) mean exactly? - Stack Overflow

    Feb 22, 2010 · O(log n) refers to a function (or algorithm, or step in an algorithm) working in an amount of time proportional to the logarithm (usually base 2 in most cases, but not always, and in any event this is insignificant by big-O notation*) of the size of the input.

  6. Logarithmic O (log n) Algorithms - Access 2 Learn

    Binary Search: Binary search is a classic example of an O (log n) algorithm. Given a sorted array, binary search finds an element by repeatedly dividing the search space in half. If the element is found, the algorithm returns its index; otherwise, it returns -1.

  7. Logarithmic Time Complexity | Baeldung on Computer Science

    Mar 18, 2024 · In this tutorial, weâ re going to dive into the use of logarithmic time complexity in computer science. More precisely, we’ll discuss what logarithms mean and how to use them when applied to the calculation of the time complexity of algorithms.

  8. Understanding O(log N): Logarithmic Time Complexity

    Dec 10, 2024 · Logarithmic time complexity, denoted as O(log N), represents an algorithm where the number of operations increases logarithmically with the size of the input data, N. Such algorithms are highly efficient for handling large datasets because they reduce the problem size significantly at each step.

  9. Algorithms Logarithmic Time O (log n) - Daimto

    Mar 22, 2017 · Logarithmic time implies that an algorithms run time is proportional to the logarithm of the input size. In Big O notation this is usually represented as O (log n). What is a logarithm? For those of us who have not been in School in a while. In mathematics, the logarithm is the inverse operation to exponentiation.

  10. O(log n) Algorithms: The Power of Logarithmic Algorithms

    Aug 4, 2023 · An exploration of O(log n) complexity, where algorithms exhibit efficient growth proportional to the logarithm of the input size. This blog post uncovers the magic of logarithmic algorithms, their practical applications, and why they are …

Refresh