Articles on Trending Technologies

Technical articles with clear explanations and examples

C++ Program to find out the maximum rated parts set

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 233 Views

Suppose, there is a manufacturer that makes specific parts for a particular product. The manufacturer has n different variations of the parts, and the parts have a specific rating on three criteria. The ratings of the n products are given in the array 'ratings' where each element is of the format (A, B, C) where A, B, and C are different rating criteria of the product. Now, an OEM wants to buy m parts for each product they make from the manufacturer of the parts. The OEM chooses the parts satisfying the below conditions −Two or more units of the ...

Read More

C++ Program to find out if a round trip is possible from a particular city

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 603 Views

Suppose, there are n cities and m roads are connecting them. Each road is unidirectional, and it takes a particular amount of time to reach from the source city to the destination city. The information of the roads is given in the array roads where each element is of the format (source, destination, time). Now, a person is traveling from one city to another city and the trip has to be a round-trip. A trip can be called round-trip when the person starts from a particular city, goes through one or more roads, and finishes the trip in the same ...

Read More

C++ program to find out the maximum value of i

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 261 Views

Suppose, we have a permutation of integers 'seq' and an array of integer pairs 'pairs' of size m that contains integers 0 to n - 1. Now, we perform the following operation on seq as many times as possible so that seq[i] = i (0 ≤ i < n) is maximized.We have to choose an integer j where 0

Read More

C++ program to find out the number of coordinate pairs that can be made

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 1K+ Views

Suppose, we are given 2n number of coordinates on a two-dimensional plane. The 2n coordinates are divided into two arrays coordA, and coordB. The coordinates are represented as integer pairs. Now we have to form coordinate pairs that will contain one point from coordA and one point from coordB. We can make pairs if and only if the x coordinate of the point from coordA is smaller than that of the point from coordB, and the y coordinate of the point from coordA is smaller than that of the point from coordB. We have to find out the number of ...

Read More

C++ program to find out the maximum sum of a minimally connected graph

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 341 Views

Suppose, we are given a minimally connected graph. That means removing any edge will make the graph disconnected. The graph has n vertices and the edges are given in an array 'edges'. There is also an array 'vertexValues' given to us that contain n integer values.Now, we do the following −We write a positive integer on each of the vertices and then try to calculate a score.There is an edge connecting two vertices, we put the smaller value of the two vertices on the edges.We calculate the score by adding all the edge values.We have to find the maximum value ...

Read More

C++ Program to find out the cost to travel all the given coordinates

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 361 Views

Suppose, we are given n three-dimensional coordinates. The cost to travel from coordinate (a, b, c) to (x, y, z) is ∣ x − a∣ + ∣ y − b∣ + max(0, z − c). We start from the first coordinate, then visit all the coordinates at least once, and then return to the first coordinate. We have to find out the total cost of this whole trip. The coordinates are given to us in the array 'coords'.So, if the input is like n = 3, coords = {{1, 1, 0}, {1, 3, 4}, {3, 2, 2}}, then the output ...

Read More

Volume of Conductor Material Required in Underground Three-Phase AC System

Manish Kumar Saini
Manish Kumar Saini
Updated on 25-Feb-2022 1K+ Views

Underground Three Phase AC SystemWhen the three phase AC electric power is transmitted through the underground cables, then the system of electric power transmission is called the underground three phase AC system.Depending upon the number of conductors used, the underground three-phase AC system of electric power transmission is classified into two types −Three-Phase Three-Wire SystemThree-Phase Four-Wire SystemConductor Material Required in Underground Three-Phase Three-Wire SystemThe circuit diagram of the underground 3-phase 3-wire AC system is shown in Figure-1. In this system, the three line conductors are taken from the three phase windings of the alternator.Let the maximum value of voltage between ...

Read More

C++ Program to find out the number of unique matrices that can be generated by swapping rows and columns

Arnab Chakraborty
Arnab Chakraborty
Updated on 25-Feb-2022 354 Views

Suppose, we have a n x n matrix. Each element in the matrix is unique and is an integer number between 1 and n2. Now we can perform the operations below in any amount and any order.We pick any two integers x and y that are in the matrix, where (1 ≤ x < y ≤ n) and swap the columns containing x and y.We pick any two integers x and y that are in the matrix, where (1 ≤ x < y ≤ n) and swap the rows containing x and y.We have to note that x + y ...

Read More

Volume of Conductor Material Required in Underground Single-Phase AC System

Manish Kumar Saini
Manish Kumar Saini
Updated on 25-Feb-2022 725 Views

Underground Single-Phase AC SystemThe electric transmission system which transmits the single-phase AC electric power through the underground cables is termed as the underground single-phase AC system of transmission.The underground single-phase AC system of electric power transmission is classified into three types viz. −Single-Phase Two-Wire AC SystemSingle-Phase Two-Wire AC System with Mid-Point EarthedSingle-Phase Three-Wire AC SystemThe various systems of the electric transmission require different volume of conductor material. The volume of conductor material required in the above 1-phase underground AC system is described below.Conductor Material Required in 1-Phase 2-Wire Underground AC SystemThe typical single-phase 2-wire AC underground AC system is shown ...

Read More

What is the Volume of Conductor Material Required in Underground DC System?

Manish Kumar Saini
Manish Kumar Saini
Updated on 25-Feb-2022 926 Views

Underground DC SystemWhen the DC electric power is transmitted from the power generating station to the consumer through the underground cables, then the electric power transmission system is called the underground DC system.The underground DC transmission system is classified into three types −Two-Wire DC SystemTwo-Wire DC System with Mid-Point EarthedThree-Wire DC SystemConductor Material Required in Underground 2-Wire DC SystemThe underground two-wire DC system is shown in Figure-1. It has two conductors taken from the generator terminals.Let, 𝑉𝑚 = Maximum voltage between conductors𝑃 = Power to be transmitted𝑙 = Distance for which power is transmittedThe load current is given by, $$\mathrm{\mathit{I_{\mathrm{1}}\mathrm{\, ...

Read More
Showing 45671–45680 of 61,297 articles
Advertisements