web analytics

Garbage Collection

Garbage collection. What you get from the title of the topic? Well, while we are coding we use variable or memory location. We may need an array initially for storing some initial elements, then we take more arrays while we are manipulating. At some part of the manipulation, it may that we dont need the … Read more

Understanding Variable scope in C++

Understanding Variable scope is very important because it can sometime leads us to unwanted value changing or hazards while coding. Like, we have declared a variable but still its showing error while compiling or running. Look at the following code, for(int x=0;x<5;x++)    //For Loop 01    {    cout<<“Inside For Loop 01”;    } cout<<x<<” times”;   … Read more

Allocating and Deallocating memory OR use of New/Delete OR allocating memory in runtime OR declaring array in runtime | in C++

Well, first of all we should be known with Variable Scope, Garbage Collection. Ok, now. When we declare a variable like as follows, int a; it allocates a specific portion of memory for that variable and when we go beyond the scope of the variable the garbage collection system automatically deallocates or in general, deletes the … Read more

Single layer perceptron learning algorithm program w/ flowchart & Code in C++

single-layer-perceptron-learning-algorithm-featured

Single layer perceptron is the first proposed neural model created. The content of the local memory of the neuron consists of a vector of weights. The computation of a single layer perceptron is performed over the calculation of sum of the input vector each with the value multiplied by corresponding element of vector of the weights. The value which is displayed in the output will be the input of an activation function.

Read more