GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update code.js · Wilsonlsc/AlgorithmVisualizer@3e4ecd1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • algorithm/graph_search/page_rank/v2
    • code.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎algorithm/graph_search/page_rank/v2/code.js‎

Copy file name to clipboardExpand all lines: algorithm/graph_search/page_rank/v2/code.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
PageRank Algorithm Version 1
2+
PageRank Algorithm Version 2
33
Equation:
4-
PR (X) = (1 - D) + D (Summation i->X (PR (I) / Out (i)))
4+
PR (X) = ( (1 - D)/N ) + D (Summation i->X (PR (I) / Out (i)))
55
NOTE: Algorithm uses the recommended damping factor (D). Number of iterations is small because only a small Web of 5 Pages is simulated
66
*/
77

@@ -103,4 +103,4 @@ logger._print ('Page Ranks have been converged to.')
103103
ranks.forEach (function (rank, node) {
104104
logger._print ('Rank of Node #' + node + ' = ' + rank);
105105
});
106-
logger._print ('Done');
106+
logger._print ('Done');

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.