Coder Social home page Coder Social logo

butterfly_counting's Introduction

18645 Final Project: Speed Up Butterfly Counting Algorithms for Bipartite Graphs

Project Overview

This project introduces an innovative approach to accelerate butterfly counting algorithms in bipartite graphs. By optimizing matrix-vector multiplication in Compressed Sparse Row (CSR) format and employing various parallelism techniques, our method significantly improves computational efficiency.

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You should have access to the datasets located in the /data/ directory.

Dataset Conversion

We convert out.dbpedia-<dataset> into CSR format using graph_reader_csr.c. There is a MAX_EDGES variable need to be set before adding new dataset. The default value is 251000 and should be valid for exisiting four datasets.

Running the Sequential Kernel

To run our kernel sequentially, follow these instructions:

  1. Uncomment the block corresponding to the target dataset in kernel.c.
  2. Update the path string to your dataset.
  3. Run the following commands:
make clean && make kernel && make run

Running the OpenMP Parallelized Kernel

To run our parallelized kernel, follow these instructions:

  1. Uncomment the block corresponding to the target dataset in kernel_parallel.c.
  2. Update the path string to your dataset.
  3. Run the following commands:
make clean && make kernel_parallel && make run_parallel

butterfly_counting's People

Contributors

sansangela avatar 1913plus16 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.