This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class Main { | |
final static String FNAME = "A-large"; //input file name | |
public Scanner in; | |
public PrintWriter out; | |
void open() throws IOException { | |
in = new Scanner( new File( FNAME + ".in" ) ) ; | |
out = new PrintWriter( new File( FNAME + ".out" ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* | |
* Tested in NetBeans IDE 6.5.1 with JDK 1.6.0_17 | |
* Generates the configuration space image and saves in png format. | |
* Generates the configuration space matrix and saves in txt format | |
* Please replace FNAME_input and FNAME_output variables as per preffered location of input and output files. | |
*/ | |
import java.io.*; | |
import java.util.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* | |
* Tested in NetBeans IDE 6.5.1 with JDK 1.6.0_17 | |
* Generates the configuration space along with the path and saves in png format. | |
* Modify the variables sample_size, distance if needed | |
* Please replace FNAME_input and FNAME_output variables as per preffered location of input and output files. | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import java.io.*; | |
public class Main { | |
final static String FNAME = "C-small-attempt0"; | |
public Scanner in; | |
public PrintWriter out; | |
void open() throws IOException { | |
in = new Scanner( new File( FNAME + ".in" ) ) ; | |
out = new PrintWriter( new File( FNAME + ".out" ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package aiproject; | |
import java.awt.Point; | |
import java.util.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/ | |
package aiproject; | |
import java.io.IOException; | |
public class AIproject { | |
/** | |
* @param args the command line arguments |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A5 30 573 | |
A4 30 483 | |
A2 30 178 | |
A1 30 48 | |
B1 207 48 | |
B2 207 161 | |
B3 144 339 | |
B4 129 443 | |
B5 127 479 | |
C2 258 162 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package aiproject; | |
import java.awt.Point; | |
//Node Object blueprint | |
public class Node { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package aiproject; | |
import java.awt.Point; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package aiproject; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.io.IOException; |
OlderNewer