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
Programming Articles
Page 1789 of 2547
Shortest distance between given Nodes in a Bidirectional Weighted Graph by Removing any K Edges
Introduction This C program calculates the most limited separation between two given hubs in a bidirectional weighted chart by evacuating any K edges. It utilizes an altered form of Dijkstra's calculation, considering the expulsion of K edges as a limitation. The program utilizes a need line for effective hub determination, and powerfully alters the edge weights based on the expulsion imperative. By navigating the chart and finding the briefest way, it gives the least remove between the given hubs whereas bookkeeping for the expulsion of K edges. Approach 1: Modified Dijkstra's Algorithm Algorithm Step 1: Create a structure ...
Read MoreC program to implement DFS traversal using Adjacency Matrix in a given Graph
Introduction Graph theory allows us to study and visualize relationships between objects or entities. In the current technology of computer science, graph traversal plays a crucial role in exploring and analyzing different types of data structures. One of the crucial operations performed on graphs is traversal - visiting all vertices or nodes, following specific paths. DFS traversal, based on a depth-first approach, allows us to explore the depths of a graph before backtracking and exploring other branches. In this article, we will involve in implementing DFS traversal using an adjacency matrix representation in C. DFS traversal using Adjacency Matrix ...
Read MoreCheck if there are T number of Continuous of Blocks of 0s or not in given Binary Matrix
Introduction Binary matrices are widely used in computer science and various fields to represent data or solve complex problems efficiently. In some cases, it becomes important to identify whether a given binary matrix contains continuous blocks of zeros. In this article, we will explore an elegant solution using C++ code that allows us to detect if there are T number of continuous blocks of zeroes within a given binary matrix. This approach is both intuitive and efficient, making it suitable for practical implementation. Check if there are T number of continuous of blocks of 0s or not Given ...
Read MoreCount of Root to Leaf Paths Consisting of at most M Consecutive Nodes having Value K
Introduction Binary trees are fascinating data structures that have numerous applications in computer science and programming. One interesting problem is finding the count from the given tree composed of a parent along with its child nodes. The Binary tree is composed of nodes and the root node is decided and from which the child nodes can be given according the user need. The K value is decided and the way it traverses is chosen by the M value. Count of Root to Leaf Paths The graph is created with various nodes holding the values in form of ...
Read MoreTypes of Regression Techniques in Machine Learning
Introduction Regression is the technique of predictive modeling to analyze the relationship between the independent variable and the dependent variable. The relation between the target(dependent variable) and the independent variable may be either linear or non-linear. The target is always continuous value and regression is widely used in forecasting, understanding cause and effect as well as in predictive analysis. In this article let us explore various regression techniques available. Regression Techniques Linear Regression − It is the simplest of all regression techniques. In Linear Regression the independent and the target variable are linearly related or dependent on each ...
Read MoreImpacts of Artificial Intelligence in everyday life
In today’s date, Artificial Intelligence has impacted our lives way in that nothing else could have impacted. It has changed how our daily jobs are done and has involvement in major areas of our industry, lives, and almost everything. Here in this article, we are going to see some areas in our lives where Artificial Intelligence has significantly played its role. Health Industry Healthcare is a growing and crucial industry in the 21st century. Not only it is providing a better life to people but also saving millions of lives every day. We just can't overlook the health aspect of ...
Read MoreConvert a NumPy array to an image
The array created using the Numpy library can be converted into an image using the PIL or opencv libraries in python programming language. Let’s see about each library one by one. Python Image Library PIL is abbreviated as Python Image Library, which is an image processing libraries in python. It is a light weight and easy to use library to perform the image processing tasks like reading, writing, resizing and cropping the images. This library performs all the basic image processing tasks but don’t have any advanced features required for computer vision applications. We have a function in ...
Read MoreConvert a NumPy array into a csv file
The Numpy is the library in the python programming language which is abbreviated as Numerical Python. It is used to do the mathematical, scientific and statistical calculations within less time. The output of the numpy functions will be an array. An array created by the numpy functions can be stored in the CSV file using a function namely, savetxt(). Numpy array into a .csv file CSV is abbreviated as Comma Separated Values. This is the file format most widely used in the Data Science. This stores the data in a tabular format where the column holds the data fields and ...
Read MoreTop 10 Natural Language Programming Libraries
In the rapidly changing field of artificial intelligence (AI), libraries for natural language programming (NLP) have a vital function in empowering developers to construct robust and smart applications. NLP libraries offer an extensive range of tools and assets that ease the handling and examination of human language, enabling machines to comprehend and react to written information. Within this article, we will delve into the finest ten NLP libraries that every AI developer should acquaint themselves with. By gaining an understanding of the capacities and characteristics of these libraries, we can harness their advantages to devise pioneering and remarkably effective applications ...
Read MoreUp Sampling in Frequency Domain in MATLAB
Introduction to Up−Sampling In digital signal processing, the technique which allows to increase the sampling rate of a signal is termed as up−sampling. For a signal expressed in frequency domain, the up sampling is performed by adding zeros in the frequency domain. In digital signal processing, the up sampling in frequency domain is commonly used to interpolate or expand the bandwidth of a digital signal. In MATLAB, the up−sampling process is completed in the following three phases: Step 1 − Perform Discrete Fourier Transformation (DFT) In this phase/step, the given signal is transformed from the time domain to the frequency ...
Read More