- It speeds up the browser and minimizes memory usage.
- It designates specific tabs to be whitelisted to prevent discarding.
- You can retain discarded tabs after closing and re-opening your browser.
- The favicon of a website displays the discarded state.
Discard Inactive tabs automatically in Google Chrome.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
What is Computer Programming? Basic.
The language that Computer Understand.
How Programming Language Vary?
- Java and Python: General Purpose languages.
- HTML/CSS: Designed for specific tasks like web page design.
- JavaScript is a scripting language and isn’t used for big problems.
- Java and Python can carry out a much more computationally taxing process.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
Introduction to Asymptotic Notations.
Here we are mainly going to focus on calculating the Time Complexity which generally depends on the size of the input. Let's understand this point with the help of an example.
Suppose we have an integer array and we want to add an element at the beginning of the list then to perform this operation we need one extra space at the end of the array and we have to shift all the elements of the array by one unit and the number of the shift we have made is equal to the number of elements present in the given array.
So from this small example, we can understand that Running Time mostly depends on the size of the input. Therefore, if the size of the input is n, then f(n) is a function of n that denotes the Time Complexity. Example:
| n | 5n^2 | 6n | 12 |
|---|---|---|---|
| 1 | 21.74% | 26.09% | 52.17% |
| 10 | 87.41% | 10.49% | 2.09% |
| 100 | 98.79% | 1.19% | 0.02% |
| 1000 | 99.88% | 0.12% | 0.002% |
Now if we observe the above table we found that for a bigger n value 5n^2 it takes most of the time so while calculating the Time Complexity we can neglect the remaining terms because the single term gives us the approximate result and it is very near to the actual result. This approximate measure of time complexity is called Asymptotic Complexity.
What are Asymptotic Notations?
O(n) Big O notation. (Worst Case)
We have to find out another function in such a way that the function is greater than the given f(n), let's call it c.g(n), after some limit n=no
Example: Is f(n) is big O of g(n) [f(n) = O(g(n))] where f(n) = 3n+2 and g(n) = n.
Solution: At first we have to find two constants c and no such that,
f(n)<=c.g(n), c > 0 and n >=no
Ω(n) Omega notation. (Best Case)
Now after finding out that, if we can bound that function by some another function say c.g(n) in such a way that after some input no, the value of c.g(n) is always smaller than f(n).
[ f(n)>=c.g(n) ], after some n where is n>=no
c, n are real numbers, c > 0 and n >=no
Definition: f (n) ∈ Ω(g(n)) if there exists constants c > 0 and n0 >= 1 such that 0 ≤ c ·g(n) ≤ f (n) for all n ≥ n0
Solution:
Θ(n) Theta notation. (Average Case)
If f(n) is bounded by c1g(n) and c2g(n) then, f(n) is Θg(n).
Definition: f (n) ∈ Θ(g(n)) if there exists constants c1 > 0, c2 > 0 and n0 > 1 such that c1 ·g(n) ≤ f (n) ≤ c2 ·g(n) for all n ≥ n0
Example: Is f(n) is big Theta of g(n) where f(n) = 3n+2 and g(n) = n.
👉Support Us by Sharing our post with others if you really found this useful and also share your valuable feedback in the comment section below so we can work on them and provide you best 😊.(alert-success)
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
Algorithms Introduction and Analysis
Space Complexity: Space complexity is the amount of memory space the algorithm is required for giving the desired output. The memory space is consumed by the input data, temporary data, and output data of the algorithm. (alert-success)
Time Complexity: Time complexity is the amount of time required by an algorithm for the execution and providing the desired output. It depends on the number of iterative or recursive steps involve in the execution of the algorithm.(alert-success)
How To Analyse an Algorithm?
Priori Analysis: It is done before the actual implementation of the algorithm when the algorithm is written in the general theoretical language. In this, the efficiency of the algorithm is calculated base on its complexity. It is just an approximate analysis. (alert-passed)
Posterior Analysis: It is done after the actual implementation and execution of the algorithm using any programming language like C, C++, Java, or Python. It is the actual analysis in which the space and time complexity of the algorithm is calculated more correctly. (alert-passed)
Analysis of Algorithms Based on Space and Time Complexity.
This method of measuring the approximate complexity is known as asymptotic complexity. (alert-success)
Now, I hope you understand the above example and the term asymptotic but even if you are unable to get it completely don't worry as we are going to cover this in more detail soon.
First, we need to learn more about the types of asymptotic notations. There are three asymptotic notations that are used to calculate the space and time complexity of an algorithm. They are Big O, Big Ω, and Big Θ. But every time we are not going to calculate all three for an algorithm.
Types of Asymptotic notation.
C++ Example Code for Linear Search.
//Linear Search Algorithm code in C++ #include <iostream> using namespace std; int linearSearch(int arr[], int n, int target) { for (int i = 0; i < n; i++) { if (arr[i] == target) { return i; // return the index of the target element if found } } return -1; // return -1 if target element is not found } int main() { int arr[] = {5, 2, 8, 3, 1, 9}; int n = sizeof(arr) / sizeof(arr[0]); int target = 3; int index = linearSearch(arr, n, target); if (index != -1) { cout << "Element found at index: " << index << endl; } else { cout << "Element not found." << endl; } return 0; }
Element found at index: 3
👉Support Us by Sharing our post with others if you really found this useful and also share your valuable feedback in the comment section below so we can work on them and provide you best 😊.(alert-success)
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
Static Array and Dynamic Arrays.
An array is the most useful data structure because it forms a fundamental building block for all other data structures. Using arrays and pointers, we can construct almost every data structure.
What is a Static Array?
What is meant by being ‘indexable?
When and Where is a static Array used?
- Storing and accessing sequential data.
- Temporarily storing objects.
- Used by IO routines as buffers.
- Lookup tables and inverse lookup tables.
- Can be used to return multiple values from a function.
- Used in dynamic programming to cache answers to sub-problems.
What is a Dynamic Array?
How can we implement a dynamic array?
The complexity of Static Array and Dynamic Array.
| Operations | Static Array | Dynamic Array |
|---|---|---|
| Access | O(1) | O(1) |
| Search | O(n) | O(n) |
| Insertion | N/A | O(n) |
| Appending | N/A | O(1) |
| Deletion | N/A | O(n) |
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
Difference Between Preferred DNS and Alternate DNS server.
What a DNS server is and How it works?
Difference between Preferred and Alternate DNS.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
How To Print a List of files in a Folder in Windows 10.
I love watching animation films a lot and to store then I have a 3TB hard drive filled with old animation movies. But managing the list of movies which I’ve already seen becomes difficult. I decided to print the titles of these films so I can track the list before watching the next movie.
Print a List of files in a folder.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.
How To Delete Your Google Account Permanently.
Delete Your Google Account.
Recover Your Google Account.
I'm a full-time Software Developer with over 4 years of experience working at one of the world’s largest MNCs. Alongside my professional role, I run a news blog, WorkWithG.com, which focuses on Google tools, tutorials, and news. I'm passionate about breaking down complex topics and making learning accessible for everyone.


















Trends is an amazing magazine Blogger theme that is easy to customize and change to fit your needs.