For our programming assignment, we have to implement a dictionary. We have to time it and stuff like that on a Unix machine. However, I am clueless on how to use Unix commands...
I don't understand the time a.out, cat, awk 'NF > 5'.... doesnt calling a class automatically call void main( String )? So how can there be an output?
| Quote: |
|
2. Timing: Run you algorithm on dictionary file dict. Time your algorithm on this input using the unix command time. For instance say time a.out <dict >anagram. Submit all the timing information (user time, system time etc) that time gives you. Also write down and submit the machine that you timed it on. 3. Correctness: Place the file anagram that is output by your program in your class directory. Also place your program and executable in your class directory. The TA will look at it if necessary. Do not print out the output file anagram, since it is too big. Instead submit the following. Find out the number of anagram classes you found using the UNIX command wc anagram, and submit this number. Further, print all the anagram classes that contain more than 5 words in them and submit this. You will be able to do this using the UNIX command: cat anagram | awk ’NF > 5’. |
I don't understand the time a.out, cat, awk 'NF > 5'.... doesnt calling a class automatically call void main( String )? So how can there be an output?
