C Program to find factorial using iterative method

C Program To Calculate Factorial Using Iterative Method

In this tutorial, we will learn to write the program to find the factorial of numbers using the C programming language. Here we are going to follow an iterative approach. Please follow this article for factorial program in C using recursion Before moving forward let’s understand What is Factorial of a number? Factorial of a … Read more

Complexity of an Algorithm: Time and Space Complexity

As we know that a by Designing an Algorithm, a problem can be solved. To perform some tasks based on what the problem is asking. There could be many solutions for a single problem, and each solution results in a unique or similar algorithm. So it becomes very difficult to decide which algorithm to choose … Read more

What is an algorithm? Explaination with an example

Algorithms can be defined as the set of instructions structured to solve a problem. It is a step-by-step procedure to solve the problem. These steps are generally written in English to understand them easily and later convert them into computer programs. These steps together are called algorithms. Let us consider an example, suppose you went … Read more

Characteristics of an algorithm with explanations

As we know that, algorithms provide us the procedure to solve any problem. Below are some characteristics that define a good algorithm: Every algorithm developed today is measured on the above-defined matrices and it should be considered while designing a new algorithm.

What do you mean by an algorithm? Explain it with an example.

Algorithms can be defined as the set of instructions structuredto solve a problem. It is a step-by-step procedure to solve the problem. These steps are generally written in English to understand them easily and later convert them into computer programs. These steps together are called algorithms. Let us consider an example, suppose you went shopping … Read more

Data Structure complete overview in one post

What is Data Structure? In simple term we can define data structure as, Data Structure is a way of organizing the data elements in memory so that we can efficiently retrieve it and perform any operation efficiently. Now, before moving forward on next topics lets have a eyes over the  syllabus of data structure which … Read more

B-tree: Properties, Insertion Operation in B-tree

A B-tree is an extended version of m-way. There are some drawbacks with the m way tree is, in the worst case, it may behave like a linked list because it has no rule over the number of keys in node. To resolve this B-tree is introduced which is balanced. Here balanced means all leaf … Read more

Compaction, Overflow and Underflow in Array

Compaction Garbage collection is the process of collecting all unused nodes and returning them to available space. This process is carried out in essentially two phases. The first phase is marking phase where all node which is in use is marked. And Second Phase is compaction where all free partitions are made contiguous and merged … Read more

Consider the linear arrays AAA[5:50],BBB[-5:10] and CCC[1:8]

Consider the linear arrays AAA[5:50], BBB [-5:10] and CCC[1:8]. (a) Find the number of elements in each array (b) Suppose Base(AAA) = 300 and w=4 words per memory cell for AAA. Find the address of AAA[35] ,AAA[15], and AAA[55] (a) Length = Upper Bound – Lower Bound +1Length(AAA) = 50-5+1 = 46Length(BBB) = 10-(-5)+1 = … Read more

Hi, Welcome back!
Forgot Password?
Don't have an account?  Register Now