Notes & Articles by Bimal — Page 7
-
C Program to Find Gcd of Two Numbers using Iterative Euclid's Algorithm
General Introduction: In one of our previous example, we calculated the gcd of two numbers recursively using Euclid's algorithm. We can also find the gcd o...
-
C Program to Implement Binary Search
General Introduction: Binary Search is the more efficient searching technique compared to Linear Search. The binary search technique only takes 0(log n) ti...
-
Tribhuwan University's Annual Exam To Be Held After Dashain
The annual examination of Tribhuvan University (TU) will be held only after Dashain says TU. According to Pushparaj Joshi, Controller of Examinations, Exam...
-
Recursive Program to find the nth term in Fibonacci Series
Fibonacci Series: The Fibonacci series is the special series of the numbers where the next number is obtained by adding the two previous terms. The terms o...
-
Swan Song Summary
The Swan Song is generally the last performance, gesture or work done by the artist in their respective field before dying or getting retirement. And it is...
-
C Program to Implement Insertion Sort
Insertion Sort is the common sorting algorithm that we commonly use while arranging cards. In this algorithm, the elements are compared with the rest of th...
-
Recursive program to calculate the power of the base
General Idea: Recursive program to calculate the power of base using recursion We always calculate a lot of a number raised to a power in Maths. The genera...
-
Recursive Program to Find Gcd of Two Numbers
Introduction and General Idea: Gcd stands for Greatest common divisor and is the name suggest is the largest number that can divide both the numbers. 1) Gc...
-
Recursive Program to find the product of two natural numbers
Before I go straight into pseudocode and actual code in C, I just want to explain what are we doing here. So we can multiply a number with another number....
-
C++ Program For Chi-Square Test For Uniformity
The random numbers are very important for any analysis in the simulation study. One such test for the testing the uniformity is the ChiSquare Test for Unif...
-
C Program To Generate Random Number Using Linear Congruential Method
The Linear Congruential Method uses the following recursive relation to generate the random numbers. Also Read: C Program to Implement Selection Sort x1=(a...
-
C Program to Generate Random Number Using Middle-Square Method
The pseudorandom numbers can be generated from MiddleSquare Method. In this post, we will look at the way the middle square method works and will also look...