Understanding Time Complexity of Algorithms

JavaScript

Understanding Time Complexity of Algorithms 13Aug, 2019

Understanding Time Complexity of Algorithms

In Computer Science, the efficiency of any program or algorithm is measured in terms of the Time and Space Complexity of that algorithm. In this article, we will talk about the Time Complexity of the algorithms and have a look at different algorithms with some common time complexities. Time Complexity, in computer science, is measured as the amount of “computational time” it takes to execute the elementary operations/statements that execute in a fixed time. The time complexity is generally denoted by the Big O notation and it is taken as a function of the input of the algorithm. To understand it better, let’s take a look at some programs: long NumberOfHandShakes(int persons_in_the_room) { long handshakes = (persons_in_the_room * (personss_in_the_room -…

Posted in: HTML, JavaScript, OOPs
Low Quality Score – Fight It With Google Ads Script 05Feb, 2019

Low Quality Score – Fight It With Google Ads Script

First let’s understand what quality score actually is. Google uses Quality Score to measure the relevance of your ad. Quality Score is basically a keyword-level metric. It is measured on a scale of 1 to 10. It illustrates how relevant your ad comes across to your user. The important components of Quality Score are: Historical click-through-rate which is also called CTR Keyword relevance particularly to the ad Keyword and ad relevance to the search query put in by the user Landing page quality If you think that low Quality Score keywords are wasting your money, you can make use of Google ad scripts to help you locate them and perform a quick fix. Low Quality Scores are a nuisance for…

Introduction to Jquery Mobile 17Nov, 2015

Introduction to Jquery Mobile

What Is jQuery Mobile? jQuery mobile is an open-source multi platform UI framework to create mobile apps. jQuery mobile is a cross platform framework basically used for mobile apps development using HTML5, CSS3, jQuery and jQuery UI. This framework is not only easy to use it is very robust, maintainable, and well organized. jQuery Mobile is a framework used to create mobile applications. jQuery Mobile is compatible with all desktop browsers and looks same on all mobile devices (Android, iOS and Windows Phone etc). jQuery Mobile is based on HTML5 & CSS3 to make the structure of the page with small amounts of scripting. Purpose of jQuery Mobile? jQuery Mobile helps you to get quick and good results with less…

Understanding Callbacks 01May, 2015

Understanding Callbacks

I am back with a complicated yet very interesting article on “Callbacks”. First of all, why do we need callbacks? Our javascript is synchronous in its behavior. It works only on a single thread. Each statement executes when the earlier statement is executed. Now the case arise, if one statement takes more time to execute, then the next statement will be halted. For example: 1. console.log(“1”); 2. var result = 0; 3. for(var i=0; i<=100000; i++){ result += i; } 4. console.log(‘3′); So till the time loop doesn’t execute for 100000 statements, it will not execute the 4th statement. But in case we have some event like a ajax call, a file read operation or any other activity than a…

Posted in: JavaScript