Skip to main content
. 2015 Mar 5;15(3):5344–5375. doi: 10.3390/s150305344
Algorithm 1 Identifying mainstreams of shopping transaction paths
Input: Shopping transaction paths DSTP
Output: Mainstreams of shopping transaction paths DMSTP
Method:
  1. For each shopping transaction path STP in DSTP do {

  2. while (loop repeat patterns and palindrome-contained patterns exist in STP) do {

  3. Call LRP_Filtering(STP) to filter loop repeat patterns

  4. Call PCP_Filtering(STP) to filter palindrome-contained patterns }

  5. Add STP to DMSTP }

  6. Return DMSTP.