Skip to main content

Measuring Algorithm's Performance

Most common data structures you may have encountered if you have done programming could be :

  • Arrays
  • Linked Lists
  • Stacks and Queues
  • Trees
  • Hash Tables

While considering any problem statement, We can have various solutions involving multiple algorithms. Algorithms are usually measured in terms of two factors :

  • Time Constraint
  • Space Constraint
While considering time constraints, Algorithmic performance can be measured with various asymptotic notations such as Big Omega,Big Theta or Big-O. 

Measuring Algorithmic Performance :

Big-O notation is used to describe algorithmic performance. The letter 'O' indicates the order of operation which in turn denotes the growth rate of algorithm complexity.

Big-O is considered generally in worst-case scenarios where it provides an upper bound for the run time of an algorithm. Since upper bound can easily be determined on time complexity of an algorithm, Big-O is the mostly commonly used notation.

Common Big-O terms :


Comments

Popular posts from this blog

ChatGPT Prompting Cheat Sheet

AI tools other than ChatGPT to improve your productivity

  Everyone's talking about  #ChatGPT . But 90% of you are missing out on the AI revolution. Here are the top AI tools you NEED to know about. 1. Krisp: Krisp's AI removes background voices, noises, and echo from your calls, giving you peace of call Link:  https://krisp.ai/ 2. Beatoven: Create unique royalty-free music that elevates your story Link:  https://www.beatoven.ai/ 3. Cleanvoice: Automatically edit your podcast episodes Link:  https://cleanvoice.ai/ 4. Podcastle: Studio quality recording, right from your computer Link:  https://podcastle.ai/ 5. Flair: Design branded content in a flash Link:  https://flair.ai/ 6. Illustroke: Create killer vector images from text prompts Link:  https://illustroke.com/ 7. Patterned: Generate the exact patterns you need for and design Link:  https://www.patterned.ai/ 8. Stockimg: Generate the perfect stock photo you need, every time Link:  https://stockimg.ai/ 9. Copy: AI Generated copy, that actual...

30 Free APIs to Boost Your Productivity

  APIs (Application Programming Interfaces) allow developers to access and integrate the functionality of other software systems into their own applications. In the world of productivity, there are numerous APIs available that can help you streamline your workflows, manage your tasks and projects, and get more done in less time. Here are 30 free productive APIs that you can use to boost your productivity: Google Maps API: This API allows developers to access and customize Google Maps for their own websites and applications. It includes features such as directions, geocoding, and real-time traffic updates. Documentation can be found at https://developers.google.com/maps/ Trello API: This API allows developers to access and manipulate data from Trello, a popular project management and organization tool. It can be used to create, read, update, and delete Trello boards, lists, and cards. Documentation can be found at https://developers.trello.com/ Asana API: This API allows developers...