Buzz Chronicles
Follow
  • Home
  • Threads
    • Daily Charts
    • Most Popular
    • Most Recent
  • Authors
  • Categories
    • Life
    • Tech
    • Culture
    • Politics
    • Society
    • Fun
    • See All Categories
  • About

Ankitsrihbti Authors Yosra 🚀 looking for SWE internship

7 days 30 days All time Recent Popular
Yosra \U0001f680 looking for SWE internship
Yosra 🚀 looking for SW...
@yosracodes
✨ Space and Time Complexity ✨

One of the most important concepts when studying DSA is the complexity of the algorithm

In this thread I will dive deep into what that means and how you can measure it 👇🏻

When learning algorithms you can measure how efficient the algorithm is by knowing how many lines of code it executes to run an algorithm for an input of size n.

However, it is very hard to measure exactly how many lines of code the algorithm takes.

This is why big O exists.

what is big O? 🤔

Big O is the most used asymptotic notation. Asymptotic notations are a way to approximate how many lines of code the algorithm executes relative to the input size which we will refer to as "n" for the rest of the thread

To understand Big O better I will explain it through an algorithm: Selection Sort

This algorithm sorts an array by looping through the whole array and for each element in the array it iterates through the rest of the array to find the smallest element to put it in the beginning


This image visualizes how selection sort works:
ALL
  • Page 1 of 1
How does it work?
  • 💬 Reply to a thread with "@buzz_chronicles save" or "@buzz_chronicles save as category"
    🤖 Our bot will send you a link to your own folder on Buzz Chronicles. The thread will be saved in a form of an easy-to-read article
    📁 All your saved threads will be available at buzzchronicles.com/your_twitter_handle
Buzz Chronicles
  • Explore
  • Threads
  • Daily Charts
  • Authors
  • Categories
  • About
  • Terms of Service

Copyright © 2021 Buzz Chronicles - All right reserved