Courses‎ > ‎AP Computer Science 2‎ > ‎konstantinovich‎ > ‎

2018-02-15 Extra Credit

posted Feb 18, 2018, 7:15 AM by Konstantinovich Samuel   [ updated Feb 23, 2018, 6:37 PM ]
 Make a folder   EC01Knights/  on your repo.

 Place a copy of your extra credit in this folder if you would like it to be graded.

 You must have an additional public method: 
public boolean solveFast(int startingRow, int startingCol){

It works just like the regular solve method, but should complete in much less time. 

 If you do not have  EC01/ , and the method is not named solveFast(), you will not get credit.

 You must find a tour using a much faster method than plain brute force. I will test on boards with sizes between 16 and 50.

Note : I added a new public method to give you flexibility. I don't care if solve and solveFast call the same method, as It doesn't matter if your original solve is now fast.