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

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...

How To Download Popular e-books for free?

 T here are many reading enthusiasts out there who crave the daily dose of reading. Reading is the best form of escape from bitter and hectic lives. Reading stimulates mental activity and helps in pacifying many mental disorders. It keeps the brain active and makes it retain power and capacity.  Here are some benefits of reading : Mental Wellness Reduces stress tremendously Improves knowledge and turns you into an SME (subject matter expert) by touching upon the length and breadth of a topic. Exhaustive vocabulary expansion Improves focus and concentration Steps to download free PDFs : Go to oiipdf.com You may use free text search or go for the alphabetic search given on the home page Click on your favourite book Click on Download PDF button  Clear the captch as shown in the screenshot  Click on Download and Voila!! you have the pdf copy ready .