Git Product home page Git Product logo

gauravjain28 / distributed-twitter-wtf-algorithm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.53 MB

This repo contains the code of the distributed implementation of Twitter's famous Who to Follow (WTF) Algorithm for recommendations using OpenMPI. This is the solution of Assignment 2 of the course COL380- Intro to Parallel and Distributed Programming offered in the Second (Holi) Semester 2021-22.

License: MIT License

C++ 98.42% Makefile 1.58%
distributed-programming open-mpi twitter

distributed-twitter-wtf-algorithm's Introduction

Distributed Twitter's Who To Follow Algorithm

This repo contains the code of the distributed implementation of Twitter's famous Who to Follow (WTF) Algorithm for recommendations using OpenMPI.

This is the solution of Assignment 2 of the course COL380- Intro to Parallel and Distributed Programming offered in the Second (Holi) Semester 2021-22.

WTF: The Who to Follow Service at Twitter

Twitter uses a variant of pagerank algorithm, Random Walk with restart(RWR). Its personalised page rank described below to compute a 'circle of trust' for recommending whom to follow.

If a user u follows v1 and v2, the recommended users in the circle of trust of u are computed by the RWR algorithm, starting with the hub, L = {v1, v2}.

Given that Twitter graphs are massive graphs (over 20 billion edges), one needs parallel algorithms for doing such computations for every user node in the graph. Read more here.

How to run the code?

  1. To compile all files. Run:
make compile
  1. To execute, modify makefile or execute on default values. Run:
make run

Scaling Experiments

The scaling results are calculated on 3 graphs present in the data folder. The results are present here.

distributed-twitter-wtf-algorithm's People

Contributors

gauravjain28 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.