IN C++
Simplified Page Rank Algorithm. IN C++, use 2D ARRAY orADJACENCY MATRIX. In this assignment, you need to compute the rankof the webpages using a Simplified Algorithm explained in theexample below.
Input:
Line 1 contains the number of lines (n) that will follow and thenumber of power iterations you need to perform. Each line from 2 ton will contain two URL’s – from_page to_page separated by a space.This means from_page points to the URL to_page.
Output:
Print the PageRank of all pages after n powerIterations inascending alphabetical order of webpage. Also, round off the rankof the page to two decimal places.
INPUT TESTS:
goo.com
gm.com
goo.com
maps.com
fb.com
u.edu
u.edu
goo.com
u.edu
gm.com
maps.com
fb.com
gm.com
maps.com
OUTPUT FOR TESTS:
fb.com
PayPal Gateway not configured
PayPal Gateway not configured