No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey all, I'm currently working on a project that exemplifies matrix multiplication algorithms. My problem isn't working on the algorithms, but more of the structure of the classes. If any of you wouldn't mind looking over my code and helping me get a little more familiar with how things should … | |
I have an assignment to show a brute force algorithm on combination and permutations. All I am given is the function headers, and I cannot see the main. I'm having trouble understanding how sets work... Here is my header function for combination [code=c++]set< set<char> > powerSet(set<char S>)[/code] now, I'm not … | |
Hello, I'm working on a function that is supposed to impose brute force algorithm on a set of chars. Here is what I have so far [CODE]set<string> permutation(set<char>S) { set<string> fun; string myString; do{ for(set<char>::iterator it=S.begin(); it !=S.end(); ++it){ myString += *it; } fun.insert(myString); }while(next_permutation(S.begin(), S.end())); return fun; }[/CODE] due … |