theassassin010 / parallel-graph-traversal Goto Github PK
View Code? Open in Web Editor NEWParallel Graph Traversal using BFS and DFS
Parallel Graph Traversal using BFS and DFS
To generate an input graph : 1. Compile inpGraphGenerate.cpp with 'g++ inpGraphGenerate.cpp -o generateInp' 2. This will print the graph in a particular format on stdout 3. It will ask for two inputs. One is the total number of nodes in the graph and the other is the maximum out-degree of the graph. The form of the graphical input is: Number of nodes(n), followd by 2n lines In the first line, the number of neighbours of i and in the second, the node number of these neighbours. To run the bfs_sequential file : 1. Compile bfs_sequential.c with 'gcc bfs_sequential.c -o sequentialBFS' 2. Give it input generated from the input graph generator. To run the bfs_parallel file : 1. Compile bfs_sequential.c with 'gcc -fopenmp bfs_parallel.c -o parallelBFS' 2. Give it input generated from the input graph generator. 3. To change the number of threads, one can go to the file and change the NUM_THREADS macro accordingly. To run the dfs_sequential file : 1. Compile dfs_sequential.c with 'gcc dfs_sequential.c -o sequentialDFS' 2. Give it input generated from the input graph generator. To run the runner.sh, simple run './runner.sh' 1. We will have to change the variables l and filename with every run. filename has the input graph and changing l will ensure that your output goes to different files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.