Beruflich Dokumente
Kultur Dokumente
APRIORI ALGORITHM
********************************************************************************
Modified March 08 2019
********************************************************************************
This script is for educational purpose only.
I created the table in Oracle 12C DB, used sql and pl/sql to find the frequent
patterns.
This script works well with smaller datasets.
When dealing with large/voluminous datasets(GB of data), a different approach is to
be implemented,
to handle voluminous data efficiently.
export ORACLE_SID=orcl
export ORACLE_HOME=c:/app/oracle/product/12.2.0/dbhome_1
$ORACLE_HOME/bin/sqlplus " / as sysdba"
alter session set container=orclpdb;
--------------------------------------------------------------------------------
connect veeksha/saketh
ITEMS
--------------------------------------------------------------------------------
apples,chacolates,donuts
bananas,chacolates,eggs
apples,bananas,chacolates,eggs
bananas,eggs
connect veeksha/saketh
There are few other methods to produce the required pattern results, the cusious
readers may explore.
Happy scripting.
REFERENCES:
https://www.codeproject.com/Articles/70371/Apriori-Algorithm
http://www.vldb.org/conf/2004/DEMP2.PDF --COMPUTING FREQUENT
DATA SETS IN ORACLE
https://community.oracle.com/thread/2131403?start=0&tstart=0 --Converting
delimited string into table columns
https://www.oracle.com/technetwork/database/enterprise-edition/odm-techniques-
algorithms-097163.html
https://www.oracle.com/technetwork/database/options/advanced-
analytics/odm/overview/index.html