R
R copied to clipboard
Collection of various algorithms implemented in R.
Algorithm: Random Walk with Restart (RWR) Purpose: Computes relevance scores of nodes in a graph based on a random walker that restarts at a source node with a fixed probability....
Determines whether two graphs are isomorphic (structurally identical). Uses the VF2 algorithm, which is a backtracking approach with feasibility checks. Checks both node compatibility and edge compatibility for already-mapped nodes....
• Assigns colors to graph vertices ensuring no adjacent vertices share the same color • Uses backtracking approach for optimal solution • Finds chromatic number (minimum colors needed) • Implements...
Overview This implementation defines Edmonds’ Blossom Algorithm in R for computing the maximum matching in general (non-bipartite) graphs. The algorithm finds the largest set of edges without shared vertices, handling...
## Overview The `boruvka_mst` function constructs a **minimum spanning tree (MST)** for an undirected weighted graph. It repeatedly adds the **cheapest edge for each component**, merging connected components until all...
## Overview The `edmonds_karp` function finds the maximum flow in a directed network by repeatedly searching for **augmenting paths** using **Breadth-First Search (BFS)**. At each iteration, it augments the flow...
Feat-CNN
Overview This implementation defines a Convolutional Neural Network (CNN) in R using the Keras library. The CNN is designed to automatically extract spatial and hierarchical features from image data for...
Overview This implementation defines the Stoer-Wagner algorithm in R for computing the global minimum cut of an undirected weighted graph. The algorithm identifies the smallest set of edges whose removal...
This PR introduces **Sleep Sort**, a playful and educational sorting algorithm implemented in R. Sleep Sort launches one task per element, sleeps for a duration proportional to the element's value,...
## Overview The `fft_recursive` function decomposes a DFT of size *N* into smaller DFTs of even and odd indexed elements, recursively combining their results. If the input vector’s length is...