CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: gary_88

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    842

    Re: Frequency of occurrences

    Here i have to implement frequent itemsets using candidate generation Apriori algorithm
  2. Replies
    3
    Views
    842

    Re: Frequency of occurrences

    I'm sorry.. I used the following code to find out the pairs in above list.. but i dont know how to change it for triplets or quadruplets..

    --------------------
    #include <fstream>
    #include...
  3. Replies
    3
    Views
    842

    Frequency of occurrences

    hey im trying to count occurrences of numbers from a fle in following way..CAn some one tell me how to code this?
    Here when u find a triplet or quadruplet..its only when the set is present in one...
  4. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    hey... can some one please help me with this...?
    thanks!
  5. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    hi don

    Firstly i just checked up on the following input
    11 22 33 44 55
    66 77 88
    it gave me 8 element set long answer.. I'm really sorry but that isnt wat i wanted as o/p.. Perhaps tthis wud be...
  6. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    Thanks..code was able to compile but still it isnt working for big files even though a single line is not more than 65535 characters

    30 31 32
    33 34 35
    36 37 38 39 40 41 42 43 44 45 46
    38 39...
  7. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    Thanks a lot mysterd429.... Although there are some small problems..

    1. In the main function..this code

    for(set<set<int> >::iterator sub = aye.begin(); sub != aye.end(); sub++)
    {
    ...
  8. Replies
    12
    Views
    1,115

    Re: counting occurences of combinations

    But after inserting elements into the set how do u do the counting part??
    Can u demonstrate the code?
  9. Replies
    12
    Views
    1,115

    counting occurences of combinations

    for the following input file
    11 22 33 44
    11 22

    im supposed to get
    11,22 2
    11,33 1
    11,44 1
    11,22,33 1
    11,22,44 1
Results 1 to 9 of 9


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)