max words.
max-sequence.
max = 3:A B C D E F
A B C B C D C D E D E F E F F
The first and second column are the 2-tuples.
The first three columns are the 3-tuples, and so on.
max sequence in the tree itself.
max sequences.
max goes back to the root.
| 100 | 200 | 300 | 400 | 500 | |
|---|---|---|---|---|---|
| 0 | 1 | ||||
| 10 | 1 | 1 | |||
| 20 | 2 | 1 | |||
| 30 | 1 | 1 | |||
| 40 | 1 | 1 | 1 | ||
| 50 | 1 | 1 | |||
| 60 | 2 | 1 | 1 | ||
| 70 | 1 | 1 | |||
| 80 | 1 | 1 | |||
| 90 | 2 | 1 | |||
| Totals | 8 | 9 | 4 | 1 | 2 |
| 000 | 100 | 200 | |
|---|---|---|---|
| 0 | |||
| 10 | 2 | 1 | |
| 20 | 2 | ||
| 30 | |||
| 40 | |||
| 50 | 3 | ||
| 60 | 2 | ||
| 70 | 6 | 1 | |
| 80 | 5 | ||
| 90 | 2 | ||
| Totals | 18 | 5 | 1 |
| total | pages per procedure | ||||||
|---|---|---|---|---|---|---|---|
| procs | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 1 | 1 | ||||||
| 1 | 1 | ||||||
| 3 | 2 | 1 | |||||
| 3 | 2 | 1 | |||||
| 4 | 2 | 1 | 1 | ||||
| 4 | 2 | 1 | 1 | ||||
| 4 | 2 | 1 | 1 | ||||
| 4 | 3 | 1 | |||||
| 4 | 3 | 1 | |||||
| 5 | 2 | 2 | 1 | ||||
| 5 | 3 | 2 | |||||
| 7 | 5 | 1 | 1 | ||||
| 7 | 5 | 2 | |||||
| 8 | 6 | 2 | |||||
| 8 | 6 | 2 | |||||
| 8 | 7 | 1 | |||||
| 9 | 5 | 1 | 2 | 1 | |||
| 9 | 7 | 1 | 1 | ||||
| 22 | 21 | 1 | |||||
| File Counts | Count | Average Lines/File | Avg Semicolons per File |
|---|---|---|---|
| 1 | 15 | 224 | 86 |
| 2 | 2 | 102 | 37 |
| 3 | 5 | 121 | 31 |
| 4 | 1 | 79 | 20 |
| 5 | 0 | ||
| 6 | 1 | 97 | 35 |
#define MAX_WORD_SIZE 80 char word[MAX_WORD_SIZE]; while(true >> word; if(cin.eof()) break; // blah blah blah }
Half-Life vulnerability announcement
www.securityfocus.com, 20 September 2001
A problem in the software package could allow
a malicious server to execute arbitrary code.
This could allow unauthorized local access.The problem is in the /Connect command. This
command is used by a client to negotiate a
connection with a server on a specific IP address
and port. A buffer overflow in this command occurs
when 128 bytes or more of data have been received.
while (cin.getline(word, MAX_WORD_SIZE)) // blah blah blah
while (true)
cin.getline(word, MAX_WORD_SIZE)
if (cin.fail())
// partial long word.
if (cin.eof())
// eof.
// blah blah blah
while (true)
cin.getline(word, MAX_WORD_SIZE)
if (cin.fail())
// partial long word.
if (cin.gcount() > 0)
// non-long word
if (cin.eof())
// eof.
// blah blah blah
string lowerCase(string s) {
char* buf = new char[s.length()];
s.copy(buf, s.length());
for(int i = 0; i < s.length(); i++)
buf[i] = tolower(buf[i]);
string r(buf, s.length());
delete buf;
return r;
}
It's this:
string lowerCase(string s) {
for(int i = 0; i < s.length(); i++)
s[i] = tolower(s[i]);
return s;
}
LList::~LList() {
ListNode * curr = firstPtr, *temp;
while(curr != 0){
temp = curr;
curr = firstPtr->nextPtr;
delete temp;
}
}
while (cin.eof()) {
cin >> word;
WordList.push_back(word);
}
$ echo x | count-tuples 2 x $
while (true) {
cin >> word;
if (cin.eof()) break;
WordList.push_back(word);
}
or just
while (cin >> word) WordList.push_back(word);
$ count-tuples < /dev/null FILE IS EMPTY PLEASE TRY AGAIN ! $
This page last modified on 25 September 2001.