question: public List < Page > normalize ( List < Page > pages ) { double hubTotal = 0 ; double authTotal = 0 ; for ( Page p : pages ) { hubTotal += Math . pow ( p . hub , 2 ) ; authTotal += Math . pow ( p . authority , 2 ) ; } for ( Page p : pages ) { if ( hubTotal > 0 ) { p . hub /= hubTotal ; } else { p . hub = 0 ; } if ( authTotal > 0 ) { p . authority /= authTotal ; } else { p . authority = 0 ; } } return pages ; }
target:  Divides each page's score by the sum of the squares of all pages' scores (separately for both the authority and hubs scores