This article aims to print a pyramid pattern by using the recursive implementation of C++ programming. Here is the algorithm as following to do so;AlgorithmStep-1 Set the height of the pyramid Step-2 Adjust space using recursion function Step-3 Adjust Hash(#) character using recursion function Step-4 Call both functions altogether to print the Pyramid patternExampleAs said the above algorithm, the following genuine C++ code economics is written as following; Live Demo#include using namespace std; // function to print spaces void print_space(int space){ if (space == 0) return; cout
This article demonstrate the functioning of proj() in order to perform projection upon complex numbers. Here the syntax of the proj() method in c++ programming as follows;template complex proj (const complex& z);ExampleThe proj() method takes a parameter as argument which represent the complex number and returns the projection of complex number described below in the sample as; Live Demo#include #include using namespace std; int main(){ std::complex c1(3, 5); cout
DefinitionHuffman coding provides codes to characters such that the length of the code depends on the relative frequency or weight of the corresponding character. Huffman codes are of variable-length, and without any prefix (that means no code is a prefix of any other). Any prefix-free binary code can be displayed or visualized as a binary tree with the encoded characters stored at the leaves.Huffman tree or Huffman coding tree defines as a full binary tree in which each leaf of the tree corresponds to a letter in the given alphabet.The Huffman tree is treated as the binary tree associated with ... Read More
A dictionary is defined as a general-purpose data structure for storing a group of objects. A dictionary is associated with a set of keys and each key has a single associated value. When presented with a key, the dictionary will simply return the associated value.For example, the results of a classroom test could be represented as a dictionary with student's names as keys and their scores as the values:results = {'Anik' : 75, 'Aftab' :80, 'James' : 85, 'Manisha': 77, 'Suhana' :87, 'Margaret': 82}Main operations of dictionariesDictionaries typically support so many operations −retrieve a value (based on language, attempting to ... Read More
A way to update our beliefs depended on the arrival of new, relevant pieces of evidence are provided by Bayes rule. For example, if we were trying to provide the probability that a given person has cancer, we would initially just conclude it is whatever percent of the population has cancer. However, given extra evidence such as the fact that the person is a smoker, we can update our probability, since the probability of having cancer is greater given that the person is a smoker. This allows us to utilize prior knowledge to improve our probability estimations.The rule is explained ... Read More
In probability theory, according to Boole's inequality, also denoted as the union bound, for any finite or countable set of events, the probability that at least one of the events happens is no higher than the sum of the probabilities of the individual events.In mathematics, the probability theory is denoted as an important branch that studies about the probabilities of the random event. The probability is denoted as the measurement of chances of happening an event which is an outcome of an experiment.For Example − tossing a coin is denoted as an experiment and getting head or tail is denoted ... Read More
WordPress is a great and easy WYSIWYG editor, facilitates users to write and publish their favourite posts Worldwide, using Internet connection. But in some places, it is difficult to get consistent internet connection that makes users to lose their contents and images. The *****ernative way is to use it offline for writing and when user post is completely ready for publishing, post it using connection. For Windows, “blogger” and “Windows Live Writer” is very popular and great offline blog editor, but sadly not available for Mac. Although for Mac, there is a great offline application that works similarly like windows ... Read More
In this competitive world, website’s web designer wants to make their site the best from anyone in this world, font style is also one of the major part of any website. Although for font style, web designers spend lots of time in finding great fonts that suits to their website. It is just wastage of time.It is really very difficult task to apply custom font on the website page, requires various steps to do that. Firstly: web designer has to select the text that they want to give style, secondly: choose a font, and change it to a Web-compatible format, ... Read More
In today market, all smartphone device manufacturers provide a screen lock feature with device to stop unauthorized access. They facilitate users to either use a Pattern, PIN or Password to protect their device. If user frequently opens to use their device with number on functionalities, here’s an interesting alternative called Invisible Lock. If anybody getting tired of their lock screen, they can try Invisible Lock and change their default lock screen with a transparent one.XDA Senior Member presented a very clear and easy to use application called Invisible Lock. This app facilitates to use a transparent lock screen, although phone ... Read More
People always think of new tips and tools that give result with small efficiencies and less time. This post will share some uncommon Google Docs tips and tools that are really awesome. Like other web professionals, “Google Docs” is one of them. Number of people uses this every day to create and share information. It comes with an unbelievable set of tools that’s ideal for collaborating with our co-workers and clients.Google, “Google Docs” is a freeware online office-suite inside its Google Drive functionalities. It is an online word processor that facilitates to create and format text documents, store them in ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP