

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


COMPSCI 342: Data Structures and Algorithms
In this assignment you will experiment with various random graphs that simulate social networks like Facebook. Start with the programs in the examples folder lab/graphs.
Please make sure that the name of your main class is SocialNetworkExperiment.
You will need to download the fat-jar plug-in in order to bundle the JFreeChart jar files along with your class files in Eclipse. The fat-jar plug in update site for Eclipse is:
http://kurucz-grafika.de/fatjar
Now use the JFreeChart package to plot the following graphs from inside your program.
The program should be bundled as a jar file that contain all needed classes as well as any external jar files for JFreeChart. The name of the jar file must be sne.jar and it should be at the top level of your submitted folder. The program should take three command line arguments:
java -jar sne.jar <n=#vertices> <d=average degree> <t=#iterations> [
The last argument (random seed) is optional. If specified, use that as a random seed and assume that the number of iterations is just one. This option is provided for testing and comparison purposes.
Please submit all the source code with a brief README file with your comments as well.
Make a separate subdirectory for the assignment. Once you are ready to submit, make sure you are in the right directory (that is, in your directory where your programs for this assignment are) and execute the following command (where 4 is the assignment number):
submit amit cs342 4
This will copy all the files in your current directory for submission and will time stamp the files as well.