Introduction to Big-O Notation with Examples | Time and Space Complexity Simplified | Geekific

Support us on Patreon: / geekific
Discord Community: / discord
GitHub Repository: github.com/geekific-official/
Students and developers alike struggle when it comes to space and time complexity. So, if you think that you do also, it is totally fine, because in this video we explain in detail what complexity or the Big-O notation is and how to calculate it. We also went a step further and compared different running time complexities using examples and discussed how these complexities affect the performance of a given application.
Timestamps:
00:00 Introduction
00:26 What is Complexity and How to Calculate it?
04:58 O(n) vs. O(1) vs. O(n²)
07:37 Space, Time and Performance
09:22 Adding Complexities
10:25 Logarithmic Time Complexity
14:49 Multiplying Complexities
15:14 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Object-Oriented Programming Fundamentals: • What is Object-Oriente...
- Abstract Data Types vs. Data Structures: • Abstract Data Types vs...
- Must Know Java Keywords!: • Must Know Java Keyword...
- Association, Aggregation and Composition Explained: • UML Class and Object D...
- Generics and Wildcards in Java Made Simple: • Generics and Wildcards...
- Functional Interfaces and Lambda Expressions in Java: • Functional Interfaces ...
- Java Streams Explained with Examples: • Java Stream API Explai...
#Geekific #Complexity #RunningTime #BigO

Пікірлер: 3

  • @jonasmaoh1371
    @jonasmaoh13712 жыл бұрын

    So if N is 8 does that make nlogn = 8*3? Making it 24????

  • @geekific

    @geekific

    2 жыл бұрын

    The calculations were done only for logn am not sure what u r referencing. If N = 8, then 2 to the power 3 is 8 and 3 is the number of iterations required to reach the result. If in some other problem these three iterations where repeated 8 times each then yes we will have this.

  • @jonasmaoh1371

    @jonasmaoh1371

    2 жыл бұрын

    @@geekific i see no i was just wondering if iwanted to calculate the running time of a merge sort of N=8, which would be nlogn all i was asking was if n was 8 according to this formula would that make the running time 24 because 8×log of 8, btw i am not even sure which base i assumed the base of 2, which would make it 24, so i was asking if in that case 24 would be the running time or if that was a mistake