File: drivers.tex

package info (click to toggle)
spooles 2.2-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,760 kB
  • sloc: ansic: 146,836; sh: 7,571; csh: 3,615; makefile: 1,970; perl: 74
file content (45 lines) | stat: -rw-r--r-- 1,612 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\par
\section{Driver programs for the {\tt I2Ohash object}}
\label{section:I2Ohash:drivers}
\par
%=======================================================================
\begin{enumerate}
%-----------------------------------------------------------------------
\item
\begin{verbatim}
test_hash msglvl msgFile size grow maxkey nent seed
\end{verbatim}
This driver program tests the {\tt I2Ohash} insert method.
It inserts a number of triples into a hash table and prints
out the ``measure'' of how well distributed the entries are in the
hash table.
\par
\begin{itemize}
\item
The {\tt msglvl} parameter determines the amount of output.
Use {\tt msglvl = 1} for just timing output.
\item
The {\tt msgFile} parameter determines the message file --- if {\tt
msgFile} is {\tt stdout}, then the message file is {\it stdout},
otherwise a file is opened with {\it append} status to receive any
output data.
\item
The {\tt size} parameter is the number of lists.
\item
The {\tt grow} parameter is how much the pool of {\tt I2OP} objects
can grow.
Setting {\tt grow} to zero is helpful when the number of items 
that can be placed into the hash table is known a priori.
If one tries to insert an items when the free pool is empty and
{\tt grow} is zero, an error message is printed and the program
exits.
\item
The {\tt maxkey} parameter an upper bound on key value.
\item
The {\tt nent} parameter is the number of {\tt <key1, key2, pointer>}
triples to insert.
\item
The {\tt seed} parameter is a random number seed.
\end{itemize}
%-----------------------------------------------------------------------
\end{enumerate}