Skip to content

Comments

Created A java file for GraphX library#17

Open
Aditya24Kashyap wants to merge 2 commits intophpduke:masterfrom
Aditya24Kashyap:master
Open

Created A java file for GraphX library#17
Aditya24Kashyap wants to merge 2 commits intophpduke:masterfrom
Aditya24Kashyap:master

Conversation

@Aditya24Kashyap
Copy link

(Memory-safe Solution)
N=5,000,000 nodes is inefficient and can cause memory overflow in Java due to high object overhead. Therefore, instead of allocating all possible nodes in advance, we dynamically create graph nodes only for the states that actually occur using hashing and lazy adjacency construction. This significantly reduces memory usage while preserving the same BFS logic.

(Memory-safe Solution)
N=5,000,000 nodes is inefficient and can cause memory overflow in Java due to high object overhead. Therefore, instead of allocating all possible nodes in advance, we dynamically create graph nodes only for the states that actually occur using hashing and lazy adjacency construction. This significantly reduces memory usage while preserving the same BFS logic.
(Memory-safe Solution)
N=5,000,000 nodes is inefficient and can cause memory overflow in python due to high object overhead. Therefore, instead of allocating all possible nodes in advance, we dynamically create graph nodes only for the states that actually occur using hashing and lazy adjacency construction. This significantly reduces memory usage while preserving the same BFS logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant