Sudhir sharma has Published 1206 Articles

Find Height of Binary Tree represented by Parent array in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:48:56

147 Views

In this problem, we are given an array arr[] of size n that denotes a tree. Our task is to find height of Binary Tree represented by Parent array. A Binary Search Tree (BST) is a tree in which all the nodes follow the below-mentioned properties −The value of the key ... Read More

Fermat's little theorem in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:45:58

576 Views

Fermat’s little theorem −This theorem states that for any prime number p,           Ap - p is a multiple of p.This statement in modular arithmetic is denoted as,                  ap  ≡ a (mod p)If a is not divisible by p then,  ap ... Read More

File globbing in Linux in C++

sudhir sharma

sudhir sharma

Updated on 22-Jan-2021 13:45:44

543 Views

p>File globbing also known as Path Name Expansion. It is the method of recognizing wildcard patterns in linux and  then finding the file path expansion based on these patterns.Wildcard Patterns are strings that are used for selection of multiple files based on patterns.The character patterns like “?” , “[ ]” , “*” are ... Read More

Fifth root of a number in C++

sudhir sharma

sudhir sharma

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

753 Views

In this problem, we are given a number N. Our task is to find the floor value of the fifth root of a number.Fifth Root of a number is the number which when multiplied to itself 5 times returns the number.If N1/5 = a then, a*a*a*a*a = N.Let’s take an example ... Read More

Fill array with 1's using minimum iterations of filling neighbors in C++

sudhir sharma

sudhir sharma

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

116 Views

 In this problem, we are given an array arr consisting of n elements that are either 0 or 1. Our task is to fill array with 1’s using minimum iterations of filling neighbors. Let’s take an example to understand the problem, Input: arr[] = {0, 1, 1, 0, 0, 1}Output: 1Solution Approach −To ... Read More

Fermat's Last Theorem in C++

sudhir sharma

sudhir sharma

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

161 Views

Fermat’s last theorem in number theory also known as Fermet’s conjecture is a theorem that states that for power n greater than 2. No three values a, b, c satisfy −          an + bn = cni.e.     if n 32 + 42 = 9 + 16 = 25 ... Read More

Federated database management system issues in C++

sudhir sharma

sudhir sharma

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

236 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

616 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

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

Advertisements