Code Monkey home page Code Monkey logo

richiebailey74 / pagerank Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

This repository includes a basic implementation of the pagerank algorithm of of which Google built their initial search engine. Does not include anything regarding to NLP (natural language processing) but does have the capacity to rank pages based off of their relative importance (number of times referenced) to other pages. This was the initial underlying data structure of Google's initial search engine and has been built off of and developed since their founding.

C++ 100.00%

pagerank's Introduction

pageRank

This repository includes a basic implementation of the pagerank algorithm of which Google built their initial search engine. Does not include anything regarding to NLP (natural language processing) but does have the capacity to rank pages based off of their relative importance (number of times referenced) to other pages. This was the initial underlying data structure of Google's initial search engine and has been built off of and developed since their founding.

At the deepest level, this implementation of the algorithm utilizies an adjacency list implementation since it is far superior for space complexity and nearly as efficient for time complexity. The space complexity gains of an adjacency list versus an adjacency matrix far outweigh the time complexity losses (hardly noticable).

The graph object is static with regards to how many references (directed edges) a certain page (node) has with other pages, meaning that once the object is created, that number cannot change and thus effect the power iterations' calculations. The power iterations will converge on a set of values as the iterations approach larger numbers to yield the definitive ranks of the pages relative to each other (the math employs linear algebra concepts).

To interact with the program, follow the prompts the command promt gives, where the initial number of lines input will yield how many edges the user can input into the graph. The power iteration function will print out all of the rankings of the pages/nodes once all the power iterations are complete for the user to see.

pagerank's People

Contributors

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