Skip to content

starkshaw/JavaStudyspace

Repository files navigation

Study Space (Java)

Free use on study purpose.
Stark Shaw


Traveling Salesman Problem

Be advised, the text file shall be stored 2 copies at the root folder of TSP and also TSP/out/production/TSP.

Sieve of Eratothenes

Note that in this folder you could learn how to deal with command argument and parse them to the program.

  • IndexOfPrime.java - The code could print out the certain prime number with given index. Note that this code was modified to accept command argument. Run java IndexOfPrime 100 is same as input 100 when the program prompt without any argument.
  • Solution.java - This could could print out a list of prime numbers from 2 to a certain number. Note that this code was modified to accept command argument. Run java Solution 100 is same as input 100 when the program prompt without any argument.

Fibonacci Sequence

See the command help information, complie and run java Fibonacci -help in Command Prompt or Terminal. This package includes the method of creating a parameter-supported java program and exception handle statement.

Sample Paper of CS210 on January 2015

Huffman Compression

Also find C# version at here.

Hashing

About

Java Study Space

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published