Sudhir sharma has Published 1206 Articles

C Program for Radix Sort

sudhir sharma

sudhir sharma

Updated on 24-Dec-2019 06:33:31

12K+ Views

A sorting algorithm is an algorithm that puts components of a listing in a certain order. The most-used orders are numerical order and lexicographic order.The Radix sort is a non-comparative sorting algorithm. The Radix sort algorithm is the most preferred algorithm for the unsorted list.It sorts the elements by initially ... Read More

C Program for Rabin-Karp Algorithm for Pattern Searching

sudhir sharma

sudhir sharma

Updated on 24-Dec-2019 06:26:19

2K+ Views

Pattern matching in C − We have to find if a string is present in another string, as an example, the string "algorithm” is present within the string "naive algorithm". If it is found, then its location (i.e. position it is present at) is displayed. We tend to create a function ... Read More

C Program for Naive algorithm for Pattern Searching

sudhir sharma

sudhir sharma

Updated on 24-Dec-2019 06:18:02

7K+ Views

Pattern matching in C− We have to find if a string is present in another string, as an example, the string "algorithm” is present within the string "naive algorithm". If it is found, then its location (i.e. position it is present at) is displayed. We tend to create a function ... Read More

C Program for Minimum number of jumps to reach the end

sudhir sharma

sudhir sharma

Updated on 24-Dec-2019 06:12:27

524 Views

We are given, an array of non-negative integers denoting the maximum number of steps that can be made forward from that element. The pointer is initially positioned at the first index [0 index] of the array. Your goal is to reach the last index of the array in the minimum ... Read More

C Program for Minimum Cost Path

sudhir sharma

sudhir sharma

Updated on 24-Dec-2019 06:06:27

719 Views

Here, we will solve the minimum cost path problem in C. The implication is done on a 2D-matrix where each cell has a cost to travel. We have to find a path from the left top corner to the bottom right corner with minimum travel cost. You can only traverse ... Read More

C Program Coin Change

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 09:28:52

3K+ Views

In this problem, we are given a value n, and we want to make change of n rupees, and we have n number of coins each of value ranging from 1 to m. And we have to return the total number of ways in which make the sum.ExampleInput : N ... Read More

Binomial Coefficient in C++

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 09:22:57

5K+ Views

Binomial coefficient denoted as c(n, k) or ncr is defined as coefficient of xk in the binomial expansion of (1+X)n.The Binomial coefficient also gives the value of the number of ways in which k items are chosen from among n objects i.e. k-combinations of n-element set. The order of selection of ... Read More

Binary Search for Rational Numbers without using floating point arithmetic in C program

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 09:16:45

164 Views

In this problem, we are given a sorted array of rational numbers. and we have to search the given element using binary search algorithm for this rational number array without using floating point arithmetic.A Rational number is number represented in the form p/q where both p and q are integers. ... Read More

Binary representation of next number in C++

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 09:05:48

426 Views

In this problem, we are given the binary representation of a number and we have to find the binary representation of the next number i.e. the number that is resulted after adding one to the given number.Binary representation of a number is changing the base of the number to base ... Read More

Binary Insertion Sort in C++

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 09:02:40

3K+ Views

Binary Insertion sort is a special type up of Insertion sort which uses binary search algorithm to find out the correct position of the inserted element in the array.Insertion sort is sorting technique that works by finding the correct position of the element in the array and then inserting it ... Read More

Advertisements