Difference Between Series Resonance and Parallel Resonance

Manish Kumar Saini
Updated on 03-Nov-2023 21:27:40

48K+ Views

In an AC electric circuit, when the capacitive reactance is balanced by the inductive reactance at some given frequency, then this condition in the circuit is referred as resonance. The frequency of the supply voltage at which resonance occurs in the circuit is called resonant frequency. At the resonance in the circuit, the reactance of the capacitor and inductor cancel each other. Also, at the condition of resonance, no reactive power is taken from the source.Based on the arrangement of capacitor and inductor in the electric circuit, the resonance is divided in two types viz. −Series resonanceParallel resonanceIn this article, we ... Read More

Count Total Number of Lines in a File using PowerShell

Chirag Nagrekar
Updated on 03-Nov-2023 21:24:10

35K+ Views

To count the total number of lines in the file in PowerShell, you first need to retrieve the content of the item using Get-Content cmdlet and need to use method Length() to retrieve the total number of lines. An example is shown below.Example(Get-Content D:\Temp\PowerShellcommands.csv).LengthOutputPS C:\WINDOWS\system32> (Get-Content D:\Temp\PowerShellcommands.csv).Length 5727

Add Key-Value Pair in C# Dictionary

Arjun Thakur
Updated on 03-Nov-2023 21:22:42

29K+ Views

To add key-value pair in C# Dictionary, firstly declare a Dictionary.IDictionary d = new Dictionary();Now, add elements with KeyValuePair.d.Add(new KeyValuePair(1, "TVs")); d.Add(new KeyValuePair(2, "Appliances")); d.Add(new KeyValuePair(3, "Mobile"));After adding elements, let us display the key-value pair.Example Live Demousing System; using System.Collections.Generic; public class Demo {    public static void Main() {       IDictionary d = new Dictionary();       d.Add(new KeyValuePair(1, "TVs"));       d.Add(new KeyValuePair(2, "Appliances"));       d.Add(new KeyValuePair(3, "Mobile"));       d.Add(new KeyValuePair(4, "Tablet"));       d.Add(new KeyValuePair(5, "Laptop"));       d.Add(new KeyValuePair(6, "Desktop"));       d.Add(new KeyValuePair(7, "Hard Drive")); ... Read More

Cooling Methods of a Transformer

Manish Kumar Saini
Updated on 03-Nov-2023 20:42:46

37K+ Views

When the transformer is in operation, heat is generated due to copper losses in the windings and iron losses in the core. The removal of heat from the transformer is known as cooling of the transformer.Transformer Cooling MethodsFor the dry type transformersAir Natural (AN) CoolingAir Forced (AF) or Air Blast (AB) CoolingFor oil immersed type transformersOil Natural Air Natural (ONAN) CoolingOil Natural Air Forced (ONAF) CoolingOil Forced Air Forced (OFAF) CoolingOil Forced Water Forced (OFWF) CoolingAir Natural (AN) CoolingThe air natural (AN) cooling is used in dry type, self-cooled transformers. In this method, the natural circulation of surrounding air is ... Read More

XOR Linked List – A Memory Efficient Doubly Linked List

Divya Sahni
Updated on 03-Nov-2023 15:28:07

3K+ Views

Linked List The linked list is a linear data structure containing elements called nodes. Each node consists of two main components: data (payload of that node) and a pointer to the next node in the list. They are simple and efficient to use providing easy allocation and deallocation of memory. Doubly Linked List Doubly linked list is a special type of linked list which again consists of a basic element called nodes. Each node consists of three main components: data (payload of that node), a pointer to the previous node of the sequence and a pointer to the next ... Read More

Sort Numbers Stored on Different Machines

Divya Sahni
Updated on 03-Nov-2023 15:12:14

946 Views

In today’s world with a large amount of data and interconnected systems, a vast amount of data is created and stored across various machines. One challenging challenge is to sort this data stored across multiple devices. Sorting being a fundamental operation in computations is used for optimal retrieval, search and analysis of data. But with distributed systems and various interconnected machines, this task of sorting becomes difficult and important. Problem Statement Given an array containing N linked lists that depict N different machines. Each of these linked lists contains some variable number of numbers in sorted order. The task is ... Read More

Segment Tree for Sum of a Given Range

Divya Sahni
Updated on 03-Nov-2023 15:10:40

1K+ Views

Segment Tree A segment tree is a tree data structure used for storing intervals and segments. It is a static structure, i.e. it cannot be modified once it is built. Segment trees are used to handle range queries on an array or a similar linear data structure. In a segment tree, we divide an input array into segments and precompute the values for these segments. Each node in a segment tree depicts an interval or segment of the array. The root node represents the entire array and each child node represents the segments formed by dividing the parent node. This division leads ... Read More

Segment Tree Range Minimum Query

Divya Sahni
Updated on 03-Nov-2023 15:06:10

1K+ Views

Segment Tree − A segment tree is a tree data structure used for storing intervals and segments. It is a static structure, i.e. it cannot be modified once it is built. Segment trees are used to handle range queries on an array or a similar linear data structure. In a segment tree, we divide an input array into segments and precompute the values for these segments. Each node in a segment tree depicts an interval or segment of the array. The root node represents the entire array and each child node represents the segments formed by dividing the parent node. This ... Read More

Print Unique Rows in a Given Binary Matrix

Divya Sahni
Updated on 03-Nov-2023 15:01:03

730 Views

In computer science, binary matrix holds a very strong position containing a lot of information as the data is depicted using 0’s and 1’s which is the language of computers. In binary matrix, unique row refers to a row that is not identical to any other row in the matrix. Each unique row contains unique information that is not present anywhere else in the matrix except the row itself. Discovering these unique rows give information about relationships between rows, patterns in the matrix and identification of critical elements. Problem Statement Given a binary matrix mat[] containing 0’s and 1’s. The ... Read More

Pattern Searching Using Suffix Tree

Divya Sahni
Updated on 03-Nov-2023 14:57:58

1K+ Views

Trie − A trie is a tree-based data structure used to store and retrieve a dynamic set of strings. Compressed Trie − A compressed trie is a variation of the trie data structure used for storing and searching dynamic sets of strings. Memory usage is minimised by sharing common prefixes. In a compressed trie, nodes with only one child are merged with their parent nodes compressing the common prefixes into a single edge. Suffix Tree − A suffix tree is a data structure used in string processing to store and search for all suffixes of a given string. It represents all possible suffixes ... Read More

Advertisements