Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Check Whether the Cost of Going from any Node to any Other Node Via all Possible Paths is Same
Testing if the cost of travelling from any node to any other node by all conceivable paths is the same is the issue of determining whether the sum of weights along numerous pathways connecting every pair of nodes in a graph is equal. This problem affects a variety of industries, including optimisation techniques, data transmission systems, and transportation networks. One approach is the Floyd−Warshall algorithm, which quickly determines all of the shortest paths between any two network nodes. This method continually evaluates intermediate nodes and updates route costs to see whether there is cost equality between pairs of nodes.Another choice ...
Read MoreCheck if there Exists a Connected Graph that Satisfies the Given Conditions
To determine if an associated chart exists that fulfils the given conditions, we can utilise a basic approach. The conditions state that the chart must have at least one hub with an odd degree and all other hubs must have an indeed degree. We are able to make such a chart by beginning with a single hub and steadily including hubs and interfacing them in sets. For each unused hub included, we interface it to an existing hub, guaranteeing that the existing hub has an indeed degree and the modern hub has an odd degree. By proceeding with this preparation ...
Read MoreCheck if given Path Between Two Nodes of a Graph Represents a Shortest Paths
To check if a given way between two hubs of a chart speaks to a most brief way, one can compare the entirety of edge weights along the given way with the shortest distance between the same combination of hubs by employing a solid most brief way calculation such as Dijkstra's calculation or the Floyd−Warshall calculation. On the off chance that the whole of the edge weights on the given way match the most limited remove, at that point it speaks to a most brief way. Something else: in the event that the entirety of the edge weights is more ...
Read MoreGolang Program to Create an Interface Named Mailer that Defines a Send Method
In this article we are going to create an interface named mailer that defines a send method using interfaces embedding as well as Function as parameter. Interface in go language is a collection of methods that define a set of behavior. Algorithm Create a Mailer interface with a Send function that accepts two parameters: the recipient's email address and the email body. If an error occurs during the sending procedure, the Send method should return an error. Example 1 Make structs that represent various mailer implementations, such as SmtpMailer, SendGridMailer, and so on. ...
Read MoreGolang Program to Create an Interface Named Writer that Defines a Write Method
In this Golang article we will learn to create an interface named writer that defines a write method write method for file type as well as writer interface and filet type. Syntax data := []byte("Hello, World!") It is used to declare a byte slice in go language. data : it is a variable declaration for a var named data. []byte: the type of variable “data” as a byte slice. ...
Read MoreGolang Program to Create Two Goroutines
When working with go language there may be instances where you need to create two goroutines for parallel processing, asynchronous operations and more. In this go language article we will explore how to create two goroutines using anonymous functions, named functions as well as using function calls.In golanguage a goroutine is an independent concurrent function, it enables concurrent programming by allowing the functions to run concurrently. Syntax time.Sleep(duration) It is a built-in go language function used to pause the execution of a program. It ...
Read MoreGolang Program to Creates a Unidirectional Sending Channel and Passes it to a Function that Returns a Unidirectional Receiving Channel
A unidirectional sending channel is used to send the values to the channel, while the unidirectional receiving channel is used to receive the data from the channel. These channels are used in concurrent data processing, data sharing and more. In this golang article we are going to create a program to create a unidirectional sending and pass it to a function that returns a unidirectional receiving channel using function parameters, type conversion as well as channel composition. Algorithm Define the sender Function that accepts a send-only channel named “ch” of type integer. ...
Read MoreGolang Program to Find Average Paid Employee
It is very important to know about the average salary paid to an employee in an organization for analysis, research and rewards. In this article we are going to find out the average employee salary in go language using iteration, reduce function as well as goroutines and channels. Algorithm CalculateAverage is a function that accepts a slice of float64 values salaries as input and returns a float64 value. Set the total to 0 and count the length of the salary slice. Using a ...
Read MoreDifference Between SCSI and IDE
SCSI (Small Computer System Interface) and IDE (Integrated Drive Electronics) are two interface types used to connect storage devices to computers. SCSI is suitable for complicated installations and server environments due to its high performance. IDE is a simpler interface that is largely used to connect internal storage devices to desktop computers. Read this article to find out more about SCSI and IDE and how they are different from each other. What is SCSI? SCSI (Small Computer System Interface) is a series of standards that establish a parallel interface for connecting various peripheral devices to a computer, notably storage devices. ...
Read MoreDifference Between RSS and ATOM
RSS (Really Simple Syndication) and Atom are web feed technologies for distributing and syndicating content from websites or blogs. They provide similar features but differ in their implementation and characteristics. RSS (Really Simple Syndication) is a web feed type that allows users to access updates from websites or blogs without having to visit each one separately. Atom is a standardized web feed format that allows content producers to syndicate their information. Read this article to find out more about RSS and ATOM and how they are different from each other. What is RSS? RSS (Really Simple Syndication) is a web ...
Read More