GithubHelp home page GithubHelp logo

page-ranking's Introduction

Page-Ranking

PageRank (PR) is an algorithm used in by Google, to rank web pages in their search results.

Overview

This project is a C implementation of the PageRank algorithm, designed to run in parallel using pthreads and a thread pool. The implementation provides faster performance compared to a non-parallel version, making it suitable for handling large datasets efficiently.

Features

  • Parallel Processing: Utilizes pthreads for parallel execution, significantly improving performance.
  • Thread Pool: Implements a thread pool to manage threads efficiently.
  • Directed Graph: The graph is implemented as a directed graph, where each node can have multiple outgoing edges.
  • Dynamic Memory Management: Uses malloc and free for dynamic memory allocation.
  • Configurable: The number of indexes (nodes) and their edges can be easily adjusted in the code.

PageRank Formula

Below an image that shows the mathematical formula used in the PageRank algorithm, which calculates the rank of each page based on its incoming links.

PageRank Formula

Sequential Code

This image illustrates a pseudo code of the sequential implementation of the PageRank algorithm.

Sequential PageRank Code

Installation

To build and run the code, follow these steps:

Clone the repository:

git clone https://github.com/tomerp1812/Page-Ranking.git
cd Page-Ranking

Build the executable:

make

Run the program:

./main.out

Requirements

  • An operating system that supports pthreads (e.g., Linux, macOS).
  • A C compiler (e.g., gcc).

page-ranking's People

Contributors

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