Sudhir sharma has Published 1149 Articles

Federated database management system issues in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:32:47

343 Views

Database Management System or DBMS in short refers to the technology of storing and retrieving usersí data with utmost efficiency along with appropriate security measures.Federated Database management system is a special type of DBMS in which transparently maps more that one autonomous database into one database which is federated database.The federated ... Read More

Fast inverse square root in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:32:33

2K+ Views

In this problem, we are given an integers x. Our task is to calculate Fast inverse square root () of a 32-bit floating point number.  The algorithm to find the inverse square root of the number is of great use in programming, such as vector normalization in video games,  in 3D ... Read More

Extended Operators in Relational Algebra in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:31:03

921 Views

Relational data model is the primary data model, which is used widely around the world for data storage and processing. This model is simple and it has all the properties and capabilities required to process data with storage efficiency.They are basic operators on Relation Algebra, here we will learn about ... Read More

External Sorting with Example in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:30:46

3K+ Views

External Sorting is a category of sorting algorithm that is able to sort huge amounts of data. This type of sorting is applied on data set which acquire large memory which cannot be holded in main memory (RAM) and is stored in secondary memory ( hard disk).The idea of sorting used ... Read More

Fast average of two numbers without division in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:30:31

428 Views

In this problem, we are given two numbers A and B. Our task is to create a program to calculate the Fast average of two numbers without division. Let’s take an example to understand the problem, Input: A = 34       B = 54Output: 44Solution Approach: Normally, the average is calculated by ... Read More

Extended Midy's theorem in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:26:20

145 Views

Midy’s Theorem is a statement used for decimal expansion of numbers denoted by n/p, where n is any number and p is a prime number and a/p has a repeating decimal with even period.In Extended Midy’s Theorem, the repeating portion is divided into m digits, then their sum is a ... Read More

Expression Tree with Example in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:26:00

470 Views

An expression tree is a special type of binary tree in which each node of the tree either consists of an operator or operand.Leaf nodes of the tree represent an operand.Non-leaf nodes of the tree represent an operator.Example:To get the infix expression which can be easily solved, we need to ... Read More

Express an odd number as sum of prime numbers in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:25:36

401 Views

In this problem, we are given an odd number N. Our task is to express an odd number as the sum of prime numbers.There can be at max three prime numbers while expressing the number.Let’s take an example to understand the problem, Input: N = 55Output: 53 + 2Solution Approach: The odd number ... Read More

Evil Number with Example in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:17:29

941 Views

In this problem, we are given an array a number N. Our task is to check whether the number is an evil Number or Odious Number. Evil Number: It is a positive number which has an even number of 1’s in its binary expansion.Example: 5, 17 Odious Number: It is a positive number which ... Read More

Evaluation of Risk in Investments in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:16:43

179 Views

In this problem, we are given two arrays each denoting an investment plan. Our task is to perform the evaluation of Risk in Investment and find which of the two investments is more promising.Both the investments I1[][] and I2[][] has a set of outcomes and the probability of that investment outcome.Using ... Read More

Advertisements