首页 > > 详细

辅导留学生C/C++设计、C/C++程序讲解留学生、讲解C/C++编程

The goal of this project is to analyze the performance of Google PageRank algorithm which we will
discuss in detail in the class when we discuss graphs. This algorithm assigns a rank to a web page based
on how often a web user can arrive at a page clicking on links from other pages. Higher the rank of a
web page higher its relevance which the search engine can use in displaying the results of a search.

PageRank is probability function defined as [0, 1] where S is the set of web pages of interest
and = 1. Let every page in S be represented as a vertex in a directed graph (S, E) where
edge (u, v) indicates there is a link from page u to page v. Then the rank function satisfies the relation:

“d” is a damping factor usually around 0.85 which indicates that the user will stop surfing after clicking
through some series of links. You will be using an iterative algorithm to find a solution to the above
recurrence equations. In this algorithm we start with some initial rank values for the vertices and then
modify them iteratively using the above equation.

In the first part of the project you will be implementing this algorithm for which the input will consist of
(i) a directed graph, (ii) a damping factor, (c) iteration limit and (d) error limit. You will terminate the
algorithm if either the new rank values differ from values in the previous iteration within the error limit
or the number of iterations exceeds the iteration limit. In the latter case we will deem there is no
solution. You can start with initial value of 1/n for the rank of each vertex. You should have your own
implementation of this algorithm (not borrowed from any web site or from anyone else).

Second part of the project requires you to write a program to test the performance of this algorithm. For
various values of the number of vertices “n” and maximum out-degree (as % of n), you need to generate
random graphs as inputs. These graphs are generated by flipping a coin to determine if there should be
an edge from a vertex u to vertex v within the maximum out-degree constraint. For each of these graphs,
run your algorithm and if there is a solution, include it in the time statistics that you will use to assess
the performance. For each value of n and maximum out-degree, generate many input cases to measure
the average time.

You should plot the average time as a function of number of vertices for each maximum out-degree
value (% of n) that you have selected.

You should implement it in either C++ or Java (preferable). For Java, submit a zip file containing (a)
source code, (b) Jar file containing .class files and (c) a Windows command file that I can run to execute
the test program and see the performance results in a tabular form. and (d) one-page summary of your
findings regarding how the algorithm performs asymptotically . For C++, instead of (b), submit the
executables that can be run on an AFS UNIX host and for (c) submit UNIX shell script. to run the test
program.

 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!