Algorithm FWCA ( )
{
//  is the number of access sequence
//  is the number of web categories
//  is the weights of web pages for sessions
// seq is the rules generated
for to
{
 for to
 {
    = weight( )
 }
}
Sort
rule = 1
for to
 {
   
   Support = (Max )
   while support≥∞
 {
  wm = (Max )
  Seq[rule, ] = Addwebtype(wm)
  Support = support * wm
  Delete(wm)
  
 }
 Rule = rule + 1
 }
for to rule
 {
 if confidence(seq ) >
 print(seq )
 }
}
Algorithm 1: The new algorithm used for web classification.