Sudhir sharma has Published 1149 Articles

Binomial Coefficient in C++

sudhir sharma

sudhir sharma

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

7K+ 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

249 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

534 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

4K+ 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

Biggest number by arranging numbers in certain order in C++

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 07:45:31

178 Views

In this problem, we are given an array of numbers and we have to find the largest value that can be made by changing them in a certain way. the condition for the arrangement is, the order of even numbers and odd numbers shall remain the same i.e. the order ... Read More

C program to delete a file

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 07:40:35

3K+ Views

In programming, working with files is very important and every programming language has its own set of functions or library that help in manipulation of files.In C Programming Language also there is a function remove which can be used by the programmer to delete a file.remove() function in c programmingThe ... Read More

BFS for Disconnected Graph in C++

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 07:37:46

937 Views

Disconnected graph is a Graph in which one or more nodes are not the endpoints of the graph i.e. they are not connected.A disconnected graph…Now, the Simple BFS is applicable only when the graph is connected i.e. all vertices of the graph are accessible from one node of the graph. ... Read More

Best meeting point in 2D binary array in C++

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 07:32:49

220 Views

In this problem, we are given a 2D binary array i.e. it has values that are either 0 or 1, where 1 is marked as a home of a person of the group. And people of the group want to meet. So, they need to minimise the total distance travelled ... Read More

Best First Search (Informed Search)

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 07:29:28

6K+ Views

Best first search is a traversal technique that decides which node is to be visited next by checking which node is the most promising one and then check it. For this it uses an evaluation function to decide the traversal.This best first search technique of tree traversal comes under the ... Read More

Benefits of Using Modern Learning Apps

sudhir sharma

sudhir sharma

Updated on 22-Nov-2019 07:27:48

283 Views

Advancements in technology have lead to a newer and more efficient way of learning. The usage of these modern learning techniques are gaining popularity. Modern learning methods used by teachers in e-learning are educational websites, educational applications, learning games, ebooks and virtual teaching courses.Using these modern learning methods, students can ... Read More

Advertisements