8 Topics

Member Avatar for
Member Avatar for anku83

package pkgnew.approach; import java.io.*; import java.io.IOException; import java.util.*; import java.io.BufferedReader; import java.util.ArrayList; import pkgnew.approach.NewClass1; public class NewApproach { public static void main(String[] args) { NewClass1 no=new NewClass1(); BufferedReader br = null; Date d1; int n, c, d,k, swap,i=0,j=0,no_of_selected_item=0,newsupport=0,multiply=1,support=0,t=0; int numItems,numTransactions; double minSup; long diff; String configFile = "F:\\DP1\\DPmodification\\Config.Datasetsmall.txt"; try{ FileInputStream …

Member Avatar for anku83
0
201
Member Avatar for anku83

I want to find all the subset of a set.Can sumone plz help me through this.I have a array which would consisting ={1,4,5,6,7} i want all subsets.. {1,4} {1,5}...{1,4,5,6} {1,5,6,7} {1,4,6,7}..etc.

Member Avatar for JamesCherrill
0
116
Member Avatar for anku83

I have this code which finds the duplicate rows .I want to check if the top row has weight greater than given minimum support..If true then generate its subsets. If row 1 i.e 11110011 wight>min_sup then generate subsets....if not then jump to next row here 1 represents presence of items …

Member Avatar for anku83
0
297
Member Avatar for znerihc

So I am making this game kinda like super text twist. I was wondering if there are functions in c++ that lets you know if the guess word is a subset of the scrambled word. Of course, the number of characters would have to match up. Example word || scambled …

Member Avatar for ravenous
0
119
Member Avatar for IndianaRonaldo

Hi, I made a program that lists all possible anagrams of a word.Now I'd like to include anagrams of subsets of letters in the word.I have the code for making the subsets also now.But i do not want merge them as a single code.So I'd like to know if there …

Member Avatar for thines01
0
207
Member Avatar for IndianaRonaldo

[CODE]void SubGen(char* s) { //rearrange s ... for(int i=0;i<strlen(s);i++) { for(int j=i+1;j<strlen(s);j++) { if(s[i]==s[j]) { char temp=s[i+1]; s[i+1]=s[j]; s[j]=temp; } } } //s arranged.... Sub[0][0].push_back(s[0]); for(int i=1;i<strlen(s);i++) { if(s[i]==s[i-1]) { vector<string> temp; for(int j=i-1;j<Sub.size();j++) { for(int p=0;p<Sub[j].size();p++) { temp.push_back(Sub[j][p]); } } for(int j=0;j<temp.size();j++) { temp[j].push_back(s[i]); } Sub.push_back(temp); } else { …

Member Avatar for IndianaRonaldo
0
213
Member Avatar for Coffee_Table

I recently took upon myself the challenge of finding the actual subsequence in an array that yields the largest sum rather than just the largest sum. Example - if you enter {3,2,-5,4} in an array, my program returns {3,2}, since that yields the largest sum, 5. I thought myself rather …

Member Avatar for Coffee_Table
0
237
Member Avatar for rukshilag

i need Given a set of numbers on the command line (partition an array) It should check whether a solution exists and if so  print the two sets upto now the code i have seems to parttion each integer, what i need is for it to partition the array as a whole, for example lets take the array[1,2,3] this can be divided as [1,2] and [3], we can see that …

Member Avatar for thamilvaanan
0
567

The End.