Uncategorized

# Data Mining: Hash tree based support counting

Data Mining: Hash Tree based support counting

Hash tree is a very quick way to search an item. When there are many itemsets, hash tree could be used to find out if a given itemset has got required support count. But, how do we construct hash tree? The links I came across were very abstarct to define the hash tree implementation.

Suppose we want to insert (i.e. hash)
the following 3-itemsets into the tree
(9,3,6)
(8,7,1)

We have taken hashing function h(x) = N mod 3. This has three possible values for h(x) = {0, 1, 2}. Each value is a branch of a Hash tree node. So, each node will have three branches.

Now, lets insert Itemsets = {8, 7, 5} {9, 3, 6} Remember, that we are considering 8 because it is lavel 1 of the tree. Next level, we will consider 7 and the next with 5.

The first item = 8
h(8) = 8 mod 3 = 2 I2 = {9, 3, 6}
The first item = 9
h(9) = 9 mod 3 = 0 Level 1
Now, the secons item of set I1 = 7
h(7) = 7 mod 3 = 1 Now, the secons item of set I2 = 3
h(7) = 3 mod 3 = 0 Categories: Uncategorized

Tagged as: ,

### 3 replies »

1. Jarek says:

Lots of errors in your document, changing layout of the “slides” as well as constantly changing itemsets .. (8,7,1) then (8,7,5) and then even (8,7,6). The article needs to be properly restructured. It appears to me you didnt really know yourself how to demonstrate it for the audience..

Like

• noName says:

2. shruti says:
{"ft_lang_label":"__label__en","ft_lang_prob":0.92298347,"math_prob":0.9589823,"size":1478,"snap":"2019-51-2020-05","text_gpt3_token_len":459,"char_repetition_ratio":0.0963365,"word_repetition_ratio":0.020761246,"special_character_ratio":0.3112314,"punctuation_ratio":0.14534883,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9698291,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],"im_url_duplicate_count":[null,5,null,5,null,5,null,5,null,5,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-11T00:12:07Z\",\"WARC-Record-ID\":\"<urn:uuid:e934caa3-dffb-4cb8-b84d-fc1d4a677e24>\",\"Content-Length\":\"146792\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e4b5618d-d582-4b87-acb4-f9b3a3cec904>\",\"WARC-Concurrent-To\":\"<urn:uuid:7a56eaf6-56af-46cf-acdd-16594779c2ca>\",\"WARC-IP-Address\":\"192.0.78.25\",\"WARC-Target-URI\":\"https://freethreads.net/2012/04/08/data-mining-hash-tree-based-support-counting/?replytocom=860\",\"WARC-Payload-Digest\":\"sha1:NPLIYC3XKEAY53JG6LWWZUR56T7V4W4F\",\"WARC-Block-Digest\":\"sha1:RIJPHAPAPW6GS4Y3O46PCLKNSRUJYFEV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540529516.84_warc_CC-MAIN-20191210233444-20191211021444-00271.warc.gz\"}"}