Cluster-Based Random Walk for Large Graph Data
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing random walk algorithms are inefficient for processing large-scale graph data, leading to increased database access burdens and reduced performance.
Innovation Solution
A cluster-based random walk method that generates a two-dimensional array of adjacent node identifiers, allowing for parallel data processing across a server and working machine cluster, reducing database reliance and enhancing efficiency by synchronizing and indexing node relationships.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a random walk algorithm is implemented by randomly reading nodes and adjacent nodes from a database, then the algorithm can process graph data, but the processing efficiency is low and database access burden increases
Solution Approach 1:
The patent applies preliminary action by pre-loading graph data into memory before the random walk algorithm executes. The system reads the entire graph data from the database once, stores it in memory as a data structure (e.g., adjacency list or matrix), and then performs random walk operations directly on the in-memory data. This eliminates repeated database access during the random walk process, significantly improving processing efficiency and reducing database access time.
Solution Approach 2:
The patent introduces memory as an intermediary between the database and the random walk algorithm. Instead of directly accessing the database during random walk operations, the system uses an in-memory data structure as a mediator to store graph data. This intermediary layer allows fast random access to nodes and edges during the algorithm execution, reducing the burden on the database and improving overall processing speed.
2Productivity
If graph data is processed using traditional random walk methods, then the algorithm can handle small to medium datasets, but it becomes inefficient for large-scale graph data
Solution Approach 1:
The patent applies segmentation by dividing the large-scale graph data into manageable chunks or blocks that can be loaded into memory. The system may partition the graph data by nodes or edges, process segments independently, and combine results. This segmentation approach enables efficient processing of large datasets that would otherwise exceed memory capacity or cause performance degradation in traditional random walk implementations.
Solution Approach 2:
The patent changes the parameter of data storage location from database to in-memory structure, fundamentally altering the system's performance characteristics. By changing where the graph data resides (from persistent storage to volatile memory), the system achieves O(1) or O(log n) access time for nodes and edges during random walk operations, making it scalable to large datasets without proportionally increasing database access complexity.
Data Source
Figure 1~2
Figure 3
Figure 4~5
AI summary
Implementations of the present specification disclose a random walk method, apparatus, and device, and a cluster-based random walk method, apparatus, and device. A solution includes: obtaining information about each node included in graph data; generating, based on the information about each node, a two-dimensional array reflecting a correlation between a node and an adjacent node thereof; and generating a random sequence based on the two-dimensional array, to implement random walk in the graph data. The solution is applicable to both cluster and stand-alone arrangements.