<?xml version="1.0" encoding="utf8"?>
 <!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.0 20120330//EN" "http://jats.nlm.nih.gov/publishing/1.0/JATS-journalpublishing1.dtd"> <article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="review-article" dtd-version="1.0" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JBR</journal-id>
      <journal-title-group>
        <journal-title>Journal of Big Data Research</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2768-0207</issn>
      <publisher>
        <publisher-name>Open Access Pub</publisher-name>
        <publisher-loc>United States</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.14302/issn.2768-0207.jbr-21-3455</article-id>
      <article-id pub-id-type="publisher-id">JBR-21-3455</article-id>
      <article-categories>
        <subj-group>
          <subject>review-article</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Mining Frequent Sequential Patterns </article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name>
            <surname>Rajae</surname>
            <given-names>KRIBII</given-names>
          </name>
          <xref ref-type="aff" rid="idm1842410668">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Youssef</surname>
            <given-names>FAKIR</given-names>
          </name>
          <xref ref-type="aff" rid="idm1842410668">1</xref>
          <xref ref-type="aff" rid="idm1842411532">*</xref>
        </contrib>
      </contrib-group>
      <aff id="idm1842410668">
        <label>1</label>
        <addr-line>Laboratory of Information Processing and Decision Support, University Sulan Moulay Slimane</addr-line>
      </aff>
      <aff id="idm1842411532">
        <label>*</label>
        <addr-line>Corresponding Author</addr-line>
      </aff>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Hongwei</surname>
            <given-names>Mo</given-names>
          </name>
          <xref ref-type="aff" rid="idm1842531620">1</xref>
        </contrib>
      </contrib-group>
      <aff id="idm1842531620">
        <label>1</label>
        <addr-line>Harbin Engineering University, Harbin 150001, China</addr-line>
      </aff>
      <author-notes>
        <corresp>
    
    Youssef FAKIR, <addr-line>Laboratory of Information Processing and Decision Support, University Sulan Moulay Slimane</addr-line>, Email: <email>info.dec07@yahoo.fr</email></corresp>
        <fn fn-type="conflict" id="idm1850390852">
          <p>The authors declare that they have no conflict of interest.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub" iso-8601-date="2021-03-15">
        <day>15</day>
        <month>03</month>
        <year>2021</year>
      </pub-date>
      <volume>1</volume>
      <issue>2</issue>
      <fpage>20</fpage>
      <lpage>37</lpage>
      <history>
        <date date-type="received">
          <day>24</day>
          <month>06</month>
          <year>2020</year>
        </date>
        <date date-type="accepted">
          <day>10</day>
          <month>03</month>
          <year>2021</year>
        </date>
        <date date-type="online">
          <day>15</day>
          <month>03</month>
          <year>2021</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© </copyright-statement>
        <copyright-year>2021</copyright-year>
        <copyright-holder>Rajae KRIBII, et al.</copyright-holder>
        <license xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
          <license-p>This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions>
      <self-uri xlink:href="http://openaccesspub.org/jbr/article/1597">This article is available from http://openaccesspub.org/jbr/article/1597</self-uri>
      <abstract>
        <p>In recent times, the urge to collect data and analyze it has grown. Time stamping a data set is an important part of the analysis and data mining as it can give information that is more useful. Different mining techniques have been designed for mining time-series data, sequential patterns for example seeks relationships between occurrences of sequential events and finds if there exist any specific order of the occurrences. Many Algorithms has been proposed to study this data type based on the apriori approach. In this paper we compare two basic sequential algorithms which are General Sequential algorithm (GSP) and Sequential PAttern Discovery using Equivalence classes (SPADE). These two algorithms are based on the Apriori algorithms.  Experimental results have shown that SPADE consumes less time than GSP algorithm.</p>
      </abstract>
      <kwd-group>
        <kwd>Data mining</kwd>
        <kwd>Sequential Patterns</kwd>
        <kwd>Apriori</kwd>
        <kwd>SPADE</kwd>
        <kwd>GSP.</kwd>
      </kwd-group>
      <counts>
        <fig-count count="1"/>
        <table-count count="46"/>
        <page-count count="18"/>
      </counts>
    </article-meta>
  </front>
  <body>
    <sec id="idm1842275036" sec-type="intro">
      <title>Introduction</title>
      <p>Data mining is a critical step in the field of data science. It involves sorting large data sets to identify patterns and build relationships to solve problems through data analysis. Data mining tools help companies predict future trends. Specifically, data mining benefits vary depending on the goal and the industry. Sales and marketing departments can mine customer data to improve lead conversion rates or to create one-to-one marketing campaigns. Data mining information on historical sales patterns and customer behaviors can be used to build prediction models for future sales, new products and services.</p>
      <p>Data mining parameters include classification, sequence or path analysis, clustering and forecasting. Sequence or path parsing parameters look for patterns in which one event leads to another subsequent event. A sequence is an ordered list of element sets and is a common type of data structure in many databases.</p>
      <p>A classification parameter searches for new models and may cause a change in the organization of the data. Classification algorithms predict variables based on other factors in the database. In data mining, association rules are created by analyzing the data to look for frequent "if / then" patterns, and then using the <italic>support</italic> and <italic>trust</italic> criteria to locate the most important relationships within data. The frequency with which items appear in the database is supported, while trust is the number of times the statements are                       accurate <xref ref-type="bibr" rid="ridm1842770292">1</xref><xref ref-type="bibr" rid="ridm1842838684">2</xref><xref ref-type="bibr" rid="ridm1842847900">3</xref><xref ref-type="bibr" rid="ridm1842633036">4</xref>.</p>
      <p>Sequence Mining was first introduced in 1995 by Argwal and Srikant <xref ref-type="bibr" rid="ridm1842627564">6</xref> and is defined by the discovery a set of attributes, shared in time between a large numbers of objects of a given database. Sequential pattern is a sequence of item sets that frequently occurred in a specific order, all items in the same item sets are supposed to have the same transaction time value or within a time gap. Sequential pattern mining is trying to find the relationships between occurrences of sequential events, to find if there exist any specific order of the occurrences <xref ref-type="bibr" rid="ridm1842627564">6</xref>. We can find the sequential patterns of specific individual items; also, we can find the sequential patterns cross-different items. Sequential pattern mining is widely used in analyzing of DNA sequence. </p>
      <p>Various algorithms have been implemented to identify the frequent sequences from the sequence database. One of the approaches used to identify frequent sequences is the Apriori approach <xref ref-type="bibr" rid="ridm1842619660">7</xref>.  The approach is introduced in the context of the exploration of association rules. This property indicates that if a pattern is not common, no pattern that contains a pattern can be common. Two of the most effective algorithms using this approach are GSP and SPADE. The main difference between the two is that GSP uses a horizontal data format <xref ref-type="bibr" rid="ridm1842619228">8</xref>, while SPADE uses a vertical format <xref ref-type="bibr" rid="ridm1842604708">9</xref>. These algorithms work well in a database of short frequent sequences. However, when exploiting databases composed of long, frequent sequences, e.g. stock values, DNA strings or machine monitoring data, their overall performance deteriorates by an order of magnitude <xref ref-type="bibr" rid="ridm1842607804">10</xref>.</p>
      <p>This paper is organized as follows: in the second section, we describe the Generalized Sequential Models (GSP) algorithm, which use a horizontal format database. In the third section a Sequential Pattern Discovery using Equivalence classes (SPADE) which uses a vertical database is given. A case study is given in section four. The paper is ended by experimental results and conclusion.</p>
      <sec id="idm1842273956">
        <title>Gsp Algorithm</title>
        <p>The Generalized Sequential Models (GSP) algorithm is an apriori-based algorithm applied to sequential models. It integrates with time constraints and relaxes the definition of transaction. For time constraints, maximum gap and minimal gap are defined to specify the gap between any two adjacent transactions in the sequence. If the distance is not in the range between maximum gap and minimal gap then this two cannot be taken as two consecutive transactions in a sequence. The transactions are then applied to generate multiple level sequential patterns to find all sequences whose support is greater than the                      user-defined minimum support <xref ref-type="bibr" rid="ridm1842630228">5</xref>.</p>
        <p>GSP uses the Apriori property <xref ref-type="bibr" rid="ridm1842770292">1</xref>, that is to say, considering the minimal number of supports, if a sequence is not accepted; all its super sequence will be ignored. The features require several passes of the initial transaction data set, it uses the horizontal data format, at each pass, the entire candidate is generated by a self-join patterns found in the previous pass. In k-step, a sequence pattern is accepted only if all its submodules  (k-1) are accepted in (k-1) <xref ref-type="bibr" rid="ridm1842619228">8</xref>.</p>
      </sec>
      <sec id="idm1842280508">
        <title>The Pseudo code for GSP Algorithm is as follows:</title>
        <p>F1 = the set of frequent 1-sequence</p>
        <p>K = 2,</p>
        <p>do while Fk-1 != Null;</p>
        <p>Generate candidate sets Ck (set of candidate k-sequences);</p>
        <p> For all input sequences s in the database D</p>
        <p>do</p>
        <p>Increment count of all a in C<sub>k</sub>  if s supports a</p>
        <p>End do</p>
        <p>F<sub>k</sub>  = {a ∈ Ck such that its frequency exceeds the threshold}</p>
        <p>k = k+1;</p>
        <p>End do</p>
        <p>Result = Set of all frequent sequences is the union of all F<sub>k</sub>' s</p>
      </sec>
      <sec id="idm1842277412">
        <title>Spade Algorithm </title>
        <p>SPADE is an algorithm proposed to find frequent sequences using efficient lattice search techniques and simple joins. SPADE decomposes the original problem into smaller sub-problems using equivalence classes on frequent sequences so that each class can be solved independently. SPADE usually makes only three database scans, first one for frequent 1-sequences, second for frequent 2-sequences, and one more for generating all other frequent sequences. If the support of 2-sequences is available then only one scan is required <xref ref-type="bibr" rid="ridm1842630228">5</xref>. </p>
        <p>SPADE outperforms GSP algorithm, by a factor of two, and by an order of magnitude with precomputed support of 2-sequences. It also has excellent scale up properties with respect to a number of parameters such as the number of input-sequences, the number of events per input-sequence, the event size, and the size of potential maximal frequent events and sequences <xref ref-type="bibr" rid="ridm1842604708">9</xref>.  </p>
      </sec>
      <sec id="idm1842277484">
        <title>The Pseudo Code for SPADE Algorithm is as follows</title>
        <p>SPADE (D,min_ supp): </p>
        <p>F<sub>1</sub>={Frequent items or 1-sequences } </p>
        <p>F<sub>2</sub>={ Frequent 2 - sequences} </p>
        <p>ℇ={equivalence classes <sup>X</sup><sub>θ1</sub>} </p>
        <p>for all <sup>X</sup>∈ ℇ do EnumerateFrequentSeq(<sup>X</sup>) </p>
        <p>EnumerateFrequentSeq(S) :</p>
        <p>for all atoms A<sub>i</sub> ∈ S do  </p>
        <p>T<sub>i</sub>≠ Ø </p>
        <p>for all atoms A<sub>j</sub> ∈ S with j≥i do </p>
        <p>R=A<sub>i</sub> V A<sub>j</sub></p>
        <p>if ( Prune(R)==false)  then</p>
        <p>L(R)= L(A<sub>i</sub> ) ⋂ L(A<sub>j</sub>)</p>
        <p>if σ(R)≥min_supp  then</p>
        <p>T<sub>i</sub>=T<sub>i</sub>  U {R}; F<sub>|R|</sub> = F<sub>|R|</sub> U {R}</p>
        <p>end</p>
        <p>if (DepthFirstSearch)  then EnumerateFrequentSeq(T_i )</p>
        <p>end</p>
        <p>if(BreadthFirstSearch)  then </p>
        <p>for all T<sub>i</sub>≠Ø do EnumerateFrequentSeq(T<sub>i</sub>)</p>
        <p>
          <bold>Case Study</bold>
        </p>
        <p>To demonstrate an explanation of the algorithms GSP and SPADE an example is given (<xref ref-type="table" rid="idm1841988732">Table 1</xref>). For all the algorithms, we fix the minimum support to 2. <xref ref-type="table" rid="idm1841988732">Table 1</xref>.</p>
        <table-wrap id="idm1841988732">
          <label>Table 1.</label>
          <caption>
            <title> Original database of transactions</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td>Client ID</td>
                <td>Date</td>
                <td>Items</td>
              </tr>
              <tr>
                <td>1</td>
                <td>5/1/2015</td>
                <td>C, D</td>
              </tr>
              <tr>
                <td>1</td>
                <td>16/1/2016</td>
                <td>A, B, C</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3/1/2017</td>
                <td>A, B, F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3/1/2017</td>
                <td>A, C, D, F</td>
              </tr>
              <tr>
                <td>2</td>
                <td>8/1/2017</td>
                <td>A, B, F</td>
              </tr>
              <tr>
                <td>2</td>
                <td>10/1/2016</td>
                <td>E</td>
              </tr>
              <tr>
                <td>3</td>
                <td>5/1/2016</td>
                <td>A, B, F</td>
              </tr>
              <tr>
                <td>4</td>
                <td>5/1/2016</td>
                <td>D, H, G</td>
              </tr>
              <tr>
                <td>4</td>
                <td>3/1/2017</td>
                <td>B, F</td>
              </tr>
              <tr>
                <td>4</td>
                <td>8/1/2017</td>
                <td>A, G, H</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The Candidate sets are denoted by C. </p>
        <p>C<sub>k</sub> specifies candidate sets having K items. </p>
        <p>The Candidate sets that satisfy minimum support belongs to L<sub>k</sub> . </p>
        <p>K denotes number of items in sequence. </p>
        <p>As a first step, the database needs to be grouped by <italic>Client ID</italic> and <italic>Date</italic>, and then we can visually notice the sequence flow. The column <italic>Client ID</italic> is denoted <italic>SID</italic>, which means the sequence identifier; <italic>EID</italic> is the element identifier in the sequence. <xref ref-type="table" rid="idm1841938972">Table 2</xref>.</p>
        <table-wrap id="idm1841938972">
          <label>Table 2.</label>
          <caption>
            <title> Database after grouping the instances by sequence id and time</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td>SID</td>
                <td>EID</td>
                <td>ITEMS</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1,2,3,4</td>
                <td>&lt;(CD)(ABC)(ABF)(ACDF)&gt;</td>
              </tr>
              <tr>
                <td>2</td>
                <td>1,2</td>
                <td>&lt;(ABC)(E)&gt;</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>&lt;(ABF)&gt;</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1,2,3</td>
                <td>&lt;(DHG)(BF)(AGH)&gt;</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="idm1842218644">
        <title>GSP Application </title>
        <p>C<sub>1</sub>={ A,B,C,D,E,F,G,H} are the initial candidates for the first round. For each item, we should extract the number of occurrences or the support that would eliminate the less frequent items (<xref ref-type="table" rid="idm1841916684">Table 3</xref>). </p>
        <table-wrap id="idm1841916684">
          <label>Table 3.</label>
          <caption>
            <title> Number of occurrences of items in C1</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td>Items</td>
                <td>N° d’occurrence</td>
              </tr>
              <tr>
                <td>A</td>
                <td>4</td>
              </tr>
              <tr>
                <td>B</td>
                <td>4</td>
              </tr>
              <tr>
                <td>C</td>
                <td>1</td>
              </tr>
              <tr>
                <td>D</td>
                <td>2</td>
              </tr>
              <tr>
                <td>E</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F</td>
                <td>4</td>
              </tr>
              <tr>
                <td>G</td>
                <td>1</td>
              </tr>
              <tr>
                <td>H</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The items that satisfies the minimum support 2 are   L<sub>1</sub>={A,B,D,F} C<sub>2</sub>  can be obtained by joining L<sub>1</sub>×L<sub>1</sub>. <xref ref-type="table" rid="idm1841888500">Table 4</xref>.</p>
        <table-wrap id="idm1841888500">
          <label>Table 4.</label>
          <caption>
            <title> Number of occurrences of items in C2</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td>Items</td>
                <td>N° d’occurrence</td>
              </tr>
              <tr>
                <td>A →A</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→B</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→F</td>
                <td>1</td>
              </tr>
              <tr>
                <td>AB</td>
                <td>3</td>
              </tr>
              <tr>
                <td>AD</td>
                <td>1</td>
              </tr>
              <tr>
                <td>AF</td>
                <td>3</td>
              </tr>
              <tr>
                <td>B→A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>B→B</td>
                <td>1</td>
              </tr>
              <tr>
                <td>B→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>B→F</td>
                <td>1</td>
              </tr>
              <tr>
                <td>BD</td>
                <td>1</td>
              </tr>
              <tr>
                <td>BF</td>
                <td>4</td>
              </tr>
              <tr>
                <td>D→A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D→B</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D→D</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D→F</td>
                <td>2</td>
              </tr>
              <tr>
                <td>DF</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>F→B</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→F</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>C<sub>2</sub>={A→A, A→B, A→D, A→F, AB, AD, AF,B→A, B→B, B→D, B→F, BD, BF, D→A, D→B, D→D, D→F, DF, F→A, F→B, F→D, F→F}</p>
        <p>The items that satisfies the minimal support: </p>
        <p>L<sub>2</sub>={AB, AF, B→A, BF, D→A, D→B, D→F, F→A}</p>
        <p>In this step, C<sub>3</sub>  can be obtained by joining L<sub>2</sub> X L<sub>2 </sub><xref ref-type="table" rid="idm1841832180">Table 5</xref>.</p>
        <table-wrap id="idm1841832180">
          <label>Table 5.</label>
          <caption>
            <title> Number of occurrences of items in C3</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <th>
                  <bold>Items</bold>
                </th>
                <td>
                  <bold>N° Occurrence</bold>
                </td>
              </tr>
              <tr>
                <td>ABF</td>
                <td>3</td>
              </tr>
              <tr>
                <td>AB→A</td>
                <td>1</td>
              </tr>
              <tr>
                <td>AF →A</td>
                <td>1</td>
              </tr>
              <tr>
                <td>BF →A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D →B →A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D →F→ A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D →BF</td>
                <td>2</td>
              </tr>
              <tr>
                <td>F →AF</td>
                <td>1</td>
              </tr>
              <tr>
                <td>D →FA</td>
                <td>1</td>
              </tr>
              <tr>
                <td>D→AB</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→AB</td>
                <td>0</td>
              </tr>
              <tr>
                <td>B→AB</td>
                <td>1</td>
              </tr>
              <tr>
                <td>B→AF</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>
          <italic>C</italic>
          <sub>
            <italic>3</italic>
          </sub>
          <italic>={ABF, AB→A, AF→A,BF→A,D→B→A, D→F→A, D→BF,F→AF, D→FA, D→AB, F→AB, B→AB, B→AF}</italic>
        </p>
        <p>L<sub>3</sub>={ABF, BF→A, D→B→A, D→F→A, D→BF}</p>
        <p>In this step C<sub>4</sub>  can be obtained by joining L<sub>3 </sub>X L<sub>3</sub><xref ref-type="table" rid="idm1841787164">Table 6</xref>.</p>
        <table-wrap id="idm1841787164">
          <label>Table 6.</label>
          <caption>
            <title> Number of occurrences of items in C4</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td>Items</td>
                <td>N° occurrence</td>
              </tr>
              <tr>
                <td>D→BF→A</td>
                <td>2</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>L<sub>4</sub>={D→BF→A}</p>
      </sec>
      <sec id="idm1842157404">
        <title>Spade Application</title>
        <p>Most of the sequential pattern mining algorithms assume horizontal database layout. SPADE uses vertical database format. We can generate a new mapping model. &lt;SID, EID&gt; the first identifies the identifier of the sequence, and the second the identifier of the element location in the sequence. <xref ref-type="table" rid="idm1841779028">Table 7</xref>.</p>
        <table-wrap id="idm1841779028">
          <label>Table 7.</label>
          <caption>
            <title> ID list for atoms</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="2">A</td>
                <td colspan="2">B</td>
                <td colspan="2">D</td>
                <td colspan="2">F</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID</td>
                <td>SID</td>
                <td>EID</td>
                <td>SID</td>
                <td>EID</td>
                <td>SID</td>
                <td>EID</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>1</td>
                <td>2</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>1</td>
                <td>3</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>4</td>
              </tr>
              <tr>
                <td>1</td>
                <td>4</td>
                <td>2</td>
                <td>1</td>
                <td>4</td>
                <td>1</td>
                <td>2</td>
                <td>1</td>
              </tr>
              <tr>
                <td>2</td>
                <td>1</td>
                <td>3</td>
                <td>1</td>
                <td> </td>
                <td> </td>
                <td>3</td>
                <td>1</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>4</td>
                <td>2</td>
                <td> </td>
                <td> </td>
                <td>4</td>
                <td>2</td>
              </tr>
              <tr>
                <td>4</td>
                <td>3</td>
                <td> </td>
                <td> </td>
                <td> </td>
                <td> </td>
                <td> </td>
                <td> </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
      </sec>
      <sec id="idm1842110084">
        <title>Generating 2-sequences</title>
        <p>Then to generate the other sequence elements of size 2, we perform a join between the tables and compare the number of occurrences with the minimal support.</p>
        <p>Joining A and B items makes two kind of elements, (AB) is the equality join which means they happen at the same time; thus, we’ll notice the same <italic>EID</italic> for both items. A → B denotes actions that happen consecutively, that means A’s <italic>EID</italic> has to be smaller than B’s <italic>EID</italic>. <xref ref-type="table" rid="idm1841705044">Table 8</xref>, <xref ref-type="table" rid="idm1841692516">Table 9</xref>.</p>
        <table-wrap id="idm1841705044">
          <label>Table 8.</label>
          <caption>
            <title> ID list for (AB) Non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">(AB)</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>1</td>
                <td>1</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <table-wrap id="idm1841692516">
          <label>Table 9.</label>
          <caption>
            <title> ID list for A -&gt;B temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">A→B</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support for (AB) is 3, having two cases from the same sequence makes a redundancy problem in the model. For A → B, the support is 1. <xref ref-type="table" rid="idm1841683084">Table 10</xref>.</p>
        <table-wrap id="idm1841683084">
          <label>Table 10.</label>
          <caption>
            <title> ID list for AD non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">(AD)</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID D</td>
              </tr>
              <tr>
                <td>1</td>
                <td>4</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support for (AD) is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841673796">Table 11</xref>.</p>
        <table-wrap id="idm1841673796">
          <label>Table 11.</label>
          <caption>
            <title> ID list for AF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">(AF)</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>4</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support for (AF) is 3, it satisfies the minimum support, eve, if the number of occurrences is 4 in the database, there is two elements within the same sequence, so they will be considered as one. <xref ref-type="table" rid="idm1841657524">Table 12</xref>.</p>
        <table-wrap id="idm1841657524">
          <label>Table 12.</label>
          <caption>
            <title> ID list for BD non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">(BD)</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID D</td>
              </tr>
              <tr>
                <td>-</td>
                <td>-</td>
                <td>-</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The number of occurrences is 0, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841605732">Table 13</xref>.</p>
        <table-wrap id="idm1841605732">
          <label>Table 13.</label>
          <caption>
            <title> ID list for BF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">(BF)</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
              </tr>
              <tr>
                <td>4</td>
                <td>3</td>
                <td>3</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The number of occurrences is 4, it satisfies the minimum support. <xref ref-type="table" rid="idm1841588956">Table 14</xref>.</p>
        <table-wrap id="idm1841588956">
          <label>Table 14.</label>
          <caption>
            <title> ID list of DF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">(DF)</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>4</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The number of occurrences is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841579452">Table 15</xref>.</p>
        <table-wrap id="idm1841579452">
          <label>Table 15.</label>
          <caption>
            <title> ID list for A-&gt;A temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">A→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The number of occurrences is 2, both belongs to the same sequence, that makes the support 1, so it does not satisfy the min support. <xref ref-type="table" rid="idm1841567932">Table 16</xref>.</p>
        <table-wrap id="idm1841567932">
          <label>Table 16.</label>
          <caption>
            <title> ID list for A -&gt; D temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">A→D</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID D</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>4</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, because the occurrences are from the same sequence. Therefore, it does not satisfy the min support. <xref ref-type="table" rid="idm1841556268">Table 17</xref>.</p>
        <table-wrap id="idm1841556268">
          <label>Table 17.</label>
          <caption>
            <title> ID list for A-&gt;F temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">A→F</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>4</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1. In addition, it does not satisfy the min support. <xref ref-type="table" rid="idm1841608756">Table 18</xref>.</p>
        <table-wrap id="idm1841608756">
          <label>Table 18.</label>
          <caption>
            <title> ID list for B-&gt;A temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">B→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
              </tr>
              <tr>
                <td>4</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The number of occurrences is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841506356">Table 19</xref>.</p>
        <table-wrap id="idm1841506356">
          <label>Table 19.</label>
          <caption>
            <title> ID list for B-&gt;B temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">B→B</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841496276">Table 20</xref>.</p>
        <table-wrap id="idm1841496276">
          <label>Table 20.</label>
          <caption>
            <title> ID list for B-&gt;D temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">B→D</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID D</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>4</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841485116">Table 21</xref>.</p>
        <table-wrap id="idm1841485116">
          <label>Table 21.</label>
          <caption>
            <title> ID list for B-&gt;F temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">B→F</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841476044">Table 22</xref>.</p>
        <table-wrap id="idm1841476044">
          <label>Table 22.</label>
          <caption>
            <title> ID list for D-&gt;D temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">D→D</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID D</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841465460">Table 23</xref>.</p>
        <table-wrap id="idm1841465460">
          <label>Table 23.</label>
          <caption>
            <title> ID list for D-&gt;A temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">D→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>4</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841408300">Table 24</xref>.</p>
        <table-wrap id="idm1841408300">
          <label>Table 24.</label>
          <caption>
            <title> ID list for D-&gt;B temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">D→B</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>2</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>3</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. Tab 25.</p>
        <table-wrap id="idm1841397860">
          <label>Table 25.</label>
          <caption>
            <title> ID list for D-&gt;F temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">D→F</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>4</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>3</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841383388">Table 26</xref>.</p>
        <table-wrap id="idm1841383388">
          <label>Table 26.</label>
          <caption>
            <title> ID list for F-&gt;F temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">F→F</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID F</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841374388">Table 27</xref>.</p>
        <table-wrap id="idm1841374388">
          <label>Table 27.</label>
          <caption>
            <title> ID list for F-&gt;D temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">F→D</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID F</td>
                <td>EID D</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841365820">Table 28</xref>.</p>
        <table-wrap id="idm1841365820">
          <label>Table 28.</label>
          <caption>
            <title> ID list for F-&gt;B temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">F→B</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID F</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841355668">Table 29</xref>.</p>
        <table-wrap id="idm1841355668">
          <label>Table 29.</label>
          <caption>
            <title> ID list for F-&gt;A temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="3">F→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID F</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
              <tr>
                <td>4</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841239804">Table 30</xref>.</p>
        <table-wrap id="idm1841239804">
          <label>Table 30.</label>
          <caption>
            <title> Number of occurrences of items</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td>Items</td>
                <td>N° occurrence</td>
              </tr>
              <tr>
                <td>AB</td>
                <td>3</td>
              </tr>
              <tr>
                <td>AD</td>
                <td>1</td>
              </tr>
              <tr>
                <td>AF</td>
                <td>3</td>
              </tr>
              <tr>
                <td>BD</td>
                <td>0</td>
              </tr>
              <tr>
                <td>BF</td>
                <td>4</td>
              </tr>
              <tr>
                <td>DF</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→A</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→B</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>A→F</td>
                <td>1</td>
              </tr>
              <tr>
                <td>B→A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>B→B</td>
                <td>1</td>
              </tr>
              <tr>
                <td>B→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>B→F</td>
                <td>1</td>
              </tr>
              <tr>
                <td>D→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>D→A</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D→B</td>
                <td>2</td>
              </tr>
              <tr>
                <td>D→F</td>
                <td>2</td>
              </tr>
              <tr>
                <td>F→F</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→D</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→B</td>
                <td>1</td>
              </tr>
              <tr>
                <td>F→A</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>From equality join and temporal joins, the table showing count of occurrence of sequences of items.</p>
        <p>L<sub>2</sub>={(AB),(AF),(BF),B→A,D→A,D→F,D→B,F→A}</p>
        <p>Generating 3-sequence: <xref ref-type="table" rid="idm1841199124">Table 31</xref>.</p>
        <table-wrap id="idm1841199124">
          <label>Table 31.</label>
          <caption>
            <title> ID list for ABF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">ABF</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID B</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 3, it satisfies the minimum support. <xref ref-type="table" rid="idm1841178892">Table 32</xref>.</p>
        <table-wrap id="idm1841178892">
          <label>Table 32.</label>
          <caption>
            <title> ID list for AB-&gt;A non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">AB→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID B</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>2</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>-</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
                <td>-</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841159956">Table 33</xref>.</p>
        <table-wrap id="idm1841159956">
          <label>Table 33.</label>
          <caption>
            <title> ID list for AF-&gt;A non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">AF→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID F</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>4</td>
                <td>4</td>
                <td>-</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>-</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
                <td>-</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841137132">Table 34</xref>.</p>
        <table-wrap id="idm1841137132">
          <label>Table 34.</label>
          <caption>
            <title> ID list for BF-&gt;A non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">BF→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID F</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>-</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
                <td>-</td>
              </tr>
              <tr>
                <td>4</td>
                <td>3</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841119780">Table 35</xref>.</p>
        <table-wrap id="idm1841119780">
          <label>Table 35.</label>
          <caption>
            <title> ID list for D-&gt;B-&gt;A non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">D→B→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID B</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>2</td>
                <td>3</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841099316">Table 36</xref>.</p>
        <table-wrap id="idm1841099316">
          <label>Table 36.</label>
          <caption>
            <title> ID list for D-&gt;F-&gt;A non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">D→F→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID F</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841084628">Table 37</xref>.</p>
        <table-wrap id="idm1841084628">
          <label>Table 37.</label>
          <caption>
            <title> ID list for D-&gt;BF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">D→BF</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID B</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841067708">Table 38</xref>.</p>
        <table-wrap id="idm1841067708">
          <label>Table 38.</label>
          <caption>
            <title> ID list for F-&gt;AF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">F→AF</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID F</td>
                <td>EID A</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>-</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>-</td>
                <td>4</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 0, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1841045748">Table 39</xref>.</p>
        <table-wrap id="idm1841045748">
          <label>Table 39.</label>
          <caption>
            <title> ID list for D-&gt;AF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">D→AF</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID A</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>4</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841025588">Table 40</xref>.</p>
        <table-wrap id="idm1841025588">
          <label>Table 40.</label>
          <caption>
            <title> ID list for D-&gt;AB non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">D→AB</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID A</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>4</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support. <xref ref-type="table" rid="idm1841003916">Table 41</xref>.</p>
        <table-wrap id="idm1841003916">
          <label>Table 41.</label>
          <caption>
            <title> ID list for F-&gt;AB non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">F→AB</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID F</td>
                <td>EIDA</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>1</td>
                <td>-</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 0, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1840984980">Table 42</xref>.</p>
        <table-wrap id="idm1840984980">
          <label>Table 42.</label>
          <caption>
            <title> ID list for B-&gt;AB non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">B→AB</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID A</td>
                <td>EID B</td>
              </tr>
              <tr>
                <td>1</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1840926788">Table 43</xref>.</p>
        <table-wrap id="idm1840926788">
          <label>Table 43.</label>
          <caption>
            <title> ID list for B-&gt;AF non-temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="4">B→AF</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID B</td>
                <td>EID A</td>
                <td>EID F</td>
              </tr>
              <tr>
                <td>1</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>1</td>
                <td>2</td>
                <td>3</td>
                <td>3</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1840906700">Table 44</xref>.</p>
        <table-wrap id="idm1840906700">
          <label>Table 44.</label>
          <caption>
            <title> ID list for ABF-&gt;A temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="5">ABF→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID A</td>
                <td>EID B</td>
                <td>EID F</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>3</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>2</td>
                <td>-</td>
              </tr>
              <tr>
                <td>3</td>
                <td>1</td>
                <td>1</td>
                <td>1</td>
                <td>-</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>So, the results are: L<sub>3</sub>={(ABF), (BF)→A, D→B→A, D→F→A, D→(BF)}</p>
        <p>Generate 4-sequence:</p>
        <p>The support is 1, it does not satisfy the minimum support. <xref ref-type="table" rid="idm1840885820">Table 45</xref>.</p>
        <table-wrap id="idm1840885820">
          <label>Table 45.</label>
          <caption>
            <title> ID list for D-&gt;BF-&gt;A temporal join</title>
          </caption>
          <table rules="all" frame="box">
            <tbody>
              <tr>
                <td colspan="5">D→BF→A</td>
              </tr>
              <tr>
                <td>SID</td>
                <td>EID D</td>
                <td>EID B</td>
                <td>EID F</td>
                <td>EID A</td>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>4</td>
              </tr>
              <tr>
                <td>2</td>
                <td>-</td>
                <td>2</td>
                <td>2</td>
                <td>-</td>
              </tr>
              <tr>
                <td>3</td>
                <td>-</td>
                <td>1</td>
                <td>1</td>
                <td>-</td>
              </tr>
              <tr>
                <td>4</td>
                <td>1</td>
                <td>3</td>
                <td>3</td>
                <td>4</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>The support is 2, it satisfies the minimum support.</p>
        <p>The result:  L<sub>4</sub>={D→(BF)→A}</p>
      </sec>
    </sec>
    <sec id="idm1841711724">
      <title>Experimental Results</title>
      <p>In this section, we have carried out some experiments in order to evaluate the performance of SPADE and GSP. The implementation of these algorithms has been carried out using JAVA as a coding language and a machine with an intel core i5 processor and 6GB of RAM. The experiment used the same dataset for both algorithms however; the input was varied according to a number of sequences each time. The results display the number of sequences, the CPU time, and the number of sequences found at a support of 30%. <xref ref-type="table" rid="idm1840859612">Table 46</xref>. <xref ref-type="fig" rid="idm1840830812">Figure 1</xref>.</p>
      <table-wrap id="idm1840859612">
        <label>Table 46.</label>
        <caption>
          <title> The following chart displays the chosen attributes of GSP and SPADE: </title>
        </caption>
        <table rules="all" frame="box">
          <tbody>
            <tr>
              <td> </td>
              <td colspan="2">
                <bold>GSP</bold>
              </td>
              <td colspan="2">
                <bold>SPADE</bold>
              </td>
            </tr>
            <tr>
              <td>Input Sequence Count</td>
              <td>CPU time</td>
              <td>Sequence Count</td>
              <td>CPU time</td>
              <td>Sequence Count</td>
            </tr>
            <tr>
              <td>5</td>
              <td>~5 ms</td>
              <td>222</td>
              <td>~2 ms</td>
              <td>222</td>
            </tr>
            <tr>
              <td>10</td>
              <td>~3 ms</td>
              <td>357</td>
              <td>~1 ms</td>
              <td>357</td>
            </tr>
            <tr>
              <td>100</td>
              <td>~11 ms</td>
              <td>35</td>
              <td>~ 4 ms</td>
              <td>35</td>
            </tr>
            <tr>
              <td>500</td>
              <td>~71 ms</td>
              <td>20</td>
              <td>~2 ms</td>
              <td>20</td>
            </tr>
            <tr>
              <td>1000</td>
              <td>~80 ms</td>
              <td>20</td>
              <td>~1 ms</td>
              <td>20</td>
            </tr>
            <tr>
              <td>10000</td>
              <td>~750 ms</td>
              <td>20</td>
              <td>~16 ms</td>
              <td>20</td>
            </tr>
            <tr>
              <td>100000</td>
              <td>~6441 ms</td>
              <td>20</td>
              <td>~ 658 ms</td>
              <td>20</td>
            </tr>
            <tr>
              <td>500000</td>
              <td>~31438 ms</td>
              <td>20</td>
              <td>~425 ms</td>
              <td>20</td>
            </tr>
          </tbody>
        </table>
      </table-wrap>
      <fig id="idm1840830812">
        <label>Figure 1.</label>
        <caption>
          <title>  Comparison of SPADE and GSP in computing time</title>
        </caption>
        <graphic xlink:href="images/image1.jpg" mime-subtype="jpg"/>
      </fig>
    </sec>
    <sec id="idm1841653044" sec-type="conclusions">
      <title>Conclusion</title>
      <p>This paper presented the concept explanation of two algorithms GSP and SPADE  used for mining frequent sequential patterns and presented a case study of how the two algorithms work. The experiment results displayed a higher performance from the SPADE algorithm compared to GSP in consuming a minimal process time. </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ridm1842770292">
        <label>1.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Chakrabarti</surname>
            <given-names>S</given-names>
          </name>
          <name>
            <surname>Ester</surname>
            <given-names>M</given-names>
          </name>
          <name>
            <surname>Fayyad</surname>
            <given-names>U</given-names>
          </name>
          <name>
            <surname>Gehrke</surname>
            <given-names>J</given-names>
          </name>
          <name>
            <surname>Han</surname>
            <given-names>J</given-names>
          </name>
          <name>
            <surname>Morishita</surname>
            <given-names>S</given-names>
          </name>
          <name>
            <surname>Wang</surname>
            <given-names>W</given-names>
          </name>
          <article-title>Data mining curriculum: A proposal (Version 1.0). Intensive Working</article-title>
          <date>
            <year>2006</year>
          </date>
          <source>Group of ACM SIGKDD Curriculum Committee</source>
          <volume>140</volume>
        </mixed-citation>
      </ref>
      <ref id="ridm1842838684">
        <label>2.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Fayyad</surname>
            <given-names>U</given-names>
          </name>
          <name>
            <surname>Piatetsky-Shapiro</surname>
            <given-names>G</given-names>
          </name>
          <name>
            <surname>Smyth</surname>
            <given-names>P</given-names>
          </name>
          <article-title>From data mining to knowledge discovery in databases</article-title>
          <date>
            <year>1996</year>
          </date>
          <source>AI magazine</source>
          <volume>17</volume>
          <issue>3</issue>
          <fpage>37</fpage>
          <lpage>37</lpage>
        </mixed-citation>
      </ref>
      <ref id="ridm1842847900">
        <label>3.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Bharati</surname>
            <given-names>M</given-names>
          </name>
          <name>
            <surname>Ramageri</surname>
            <given-names/>
          </name>
          <article-title>MData mining techniques and applications</article-title>
          <date>
            <year>2010</year>
          </date>
          <source>Indian Journal of Computer Science and Engineering</source>
          <volume>1</volume>
          <issue>4</issue>
          <fpage>.</fpage>
        </mixed-citation>
      </ref>
      <ref id="ridm1842633036">
        <label>4.</label>
        <mixed-citation xlink:type="simple" publication-type="book">
          <name>
            <surname>Verma</surname>
            <given-names>M</given-names>
          </name>
          <name>
            <surname>Mehta</surname>
            <given-names>D</given-names>
          </name>
          <date>
            <year>2014</year>
          </date>
          <chapter-title>Sequential Pattern Mining: A Comparison between GSP, SPADE and Prefix SPAN 1</chapter-title>
        </mixed-citation>
      </ref>
      <ref id="ridm1842630228">
        <label>5.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Zhao</surname>
            <given-names>Q</given-names>
          </name>
          <name>
            <surname>Bhowmick</surname>
            <given-names>S S</given-names>
          </name>
          <article-title>Sequential pattern mining: A survey. ITechnicalReport CAISNayangTechnological University Singapore</article-title>
          <date>
            <year>2003</year>
          </date>
          <volume>1</volume>
          <issue>26</issue>
          <fpage>135</fpage>
        </mixed-citation>
      </ref>
      <ref id="ridm1842627564">
        <label>6.</label>
        <mixed-citation xlink:type="simple" publication-type="book">
          <name>
            <surname>Agrawal</surname>
            <given-names>R</given-names>
          </name>
          <name>
            <surname>Srikant</surname>
            <given-names>R</given-names>
          </name>
          <article-title>Mining sequential patterns</article-title>
          <date>
            <year>1995</year>
          </date>
          <chapter-title>In Proceedings of the eleventh international conference on data engineering</chapter-title>
          <fpage>3</fpage>
          <lpage>14</lpage>
          <publisher-name>IEEE</publisher-name>
        </mixed-citation>
      </ref>
      <ref id="ridm1842619660">
        <label>7.</label>
        <mixed-citation xlink:type="simple" publication-type="book">
          <name>
            <surname>Agrawal</surname>
            <given-names>R</given-names>
          </name>
          <name>
            <surname>Srikant</surname>
            <given-names>R</given-names>
          </name>
          <article-title>Fast algorithms for mining association rules</article-title>
          <date>
            <year>1994</year>
          </date>
          <chapter-title>In Proc. 20th int. conf. very large data bases, VLDB</chapter-title>
          <volume>1215</volume>
          <fpage>487</fpage>
          <lpage>499</lpage>
        </mixed-citation>
      </ref>
      <ref id="ridm1842619228">
        <label>8.</label>
        <mixed-citation xlink:type="simple" publication-type="book">
          <name>
            <surname>Srikant</surname>
            <given-names>R</given-names>
          </name>
          <name>
            <surname>Agrawal</surname>
            <given-names>R</given-names>
          </name>
          <article-title>Mining sequential patterns: Generalizations and performance improvements</article-title>
          <date>
            <year>1996</year>
          </date>
          <chapter-title>In International Conference on Extending Database Technology</chapter-title>
          <fpage>1</fpage>
          <lpage>17</lpage>
          <publisher-loc>Berlin, Heidelberg</publisher-loc>
        </mixed-citation>
      </ref>
      <ref id="ridm1842604708">
        <label>9.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>M</surname>
            <given-names>J Zaki</given-names>
          </name>
          <article-title>SPADE: An efficient algorithm for mining frequent sequences</article-title>
          <date>
            <year>2001</year>
          </date>
          <source>Machine</source>
          <volume>42</volume>
          <issue>1</issue>
          <fpage>31</fpage>
          <lpage>60</lpage>
        </mixed-citation>
      </ref>
      <ref id="ridm1842607804">
        <label>10.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Hornik</surname>
            <given-names>K</given-names>
          </name>
          <name>
            <surname>Grün</surname>
            <given-names>B</given-names>
          </name>
          <name>
            <surname>Hahsler</surname>
            <given-names>M</given-names>
          </name>
          <article-title>arules-A computational environment for mining association rules and frequent item sets</article-title>
          <date>
            <year>2005</year>
          </date>
          <source>Journal of Statistical Software</source>
          <volume>14</volume>
          <issue>15</issue>
          <fpage>1</fpage>
          <lpage>25</lpage>
        </mixed-citation>
      </ref>
      <ref id="ridm1842596020">
        <label>11.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Hahsler</surname>
            <given-names>Michael</given-names>
          </name>
          <article-title>Introduction to arules – A computational environment for mining association rules and frequent item sets”</article-title>
          <date>
            <year>2005</year>
          </date>
          <source>Journal of Statistical Software</source>
        </mixed-citation>
      </ref>
      <ref id="ridm1842593068">
        <label>12.</label>
        <mixed-citation xlink:type="simple" publication-type="journal">
          <name>
            <surname>Hahsler</surname>
            <given-names>M</given-names>
          </name>
          <article-title>A probabilistic comparison of commonly used interest measures for association rules. United States</article-title>
          <date>
            <year>2015</year>
          </date>
          <institution>Southern Methodist University</institution>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>
