Big O Time/Space Complexity Types Explained - Logarithmic, Polynomial, Exponential, and More

Today we will investigate the most important time and space complexity types. Time and space complexities are a measure of a function's processing power and memory requirements. Many time/space complexity types have special names that you can use while communicating with others. While some of the names for complexity types are well known, like linear and constant time, some others are living in the shadows, like quadratic and factorial time. In this video, I will use the big O notation to denote the complexities, which is specifically used to describe the worst-case performance of algorithms.
Outline of this video:
* Overview
* Constant Time/Space Complexity: O(1)
* Logarithmic Complexity: O(logn)
* Linear Complexity: O(n)
* Polynomial Complexity: O(n^k)
* Exponential Complexity: O(2^n)
* Factorial Complexity: O(n!)
* Alternative Big O Notation
* Conclusion
Alternative Big O Notation poster, stickers, mugs, and more:
* quanticdev.com/shop
* www.redbubble.com/shop/ap/542... (Alternative Big O Notation artwork)
* www.redbubble.com/shop/ap/540... (Quantic Developers Club artwork)
My "Kadane's Algorithm" video, which is a great demonstration of an O(n) linear time complexity and O(1) constant space complexity algorithm:
* • Kadane's Algorithm and...
Wikipedia articles referenced in this video:
* List of all time/space complexities: en.wikipedia.org/wiki/Time_co...
* Asymptotic analysis: en.wikipedia.org/wiki/Asympto...
If you want to read or contribute, you can find this guide on:
* quanticdev.com/articles/primi...
My Algorithms Playlist:
* • Algorithms
- - - - - - - - - - -
/ quanticdev
/ quantic_dev
quanticdev.com

Пікірлер: 9

  • @QuanticDev
    @QuanticDev3 жыл бұрын

    Confuse your fellow software engineers with the "Alternative Big O Notation" mug: www.redbubble.com/i/mug/Alternative-Big-O-Notation-by-quanticdev/54268092.9Q0AD

  • @harsh9558
    @harsh95582 жыл бұрын

    Really useful!! Thx!

  • @ramiroherrera7681
    @ramiroherrera76813 жыл бұрын

    Thanks for the video, could you please explain O(n^2)

  • @QuanticDev

    @QuanticDev

    3 жыл бұрын

    n^2 (or n**2) means "n squared". In places where it is not possible to type "superscript 2", you instead type "^2".

  • @ayushnigam9424
    @ayushnigam94243 жыл бұрын

    F= nlogn This is a polynomial function but can you please explain me how?? THANKYOU

  • @QuanticDev

    @QuanticDev

    3 жыл бұрын

    It looks more like a Polylogarithmic function. You can read more about it here: en.wikipedia.org/wiki/Polylogarithmic_function

  • @himanshusoni1512
    @himanshusoni1512 Жыл бұрын

    O(yeahh!!)

  • @elenam3944
    @elenam39442 жыл бұрын

    lol, very vivid!

  • @Grocel512
    @Grocel512 Жыл бұрын

    O(tree(n)) = O(get rekt)