Skip to content

Commit d496325

Browse files
committed
some details adjusted.
1 parent a748562 commit d496325

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed
Binary file not shown.

03-Sort-Visualization/08-Quick-Sort-Visualization-with-Random-Pivot/src/AlgoVisualizer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public static void main(String[] args) {
9595
EventQueue.invokeLater(() -> {
9696
AlgoFrame frame = new AlgoFrame("Quick Sort Visualization", sceneWidth,sceneHeight);
9797

98-
int N = 200;
99-
// int N = 100;
98+
//int N = 200;
99+
int N = 100;
100100

101-
QuickSortData data = new QuickSortData(N, sceneHeight, true);
101+
QuickSortData data = new QuickSortData(N, sceneHeight, false);
102102
AlgoVisualizer vis = new AlgoVisualizer(frame, data);
103103
new Thread(() -> {
104104
vis.run();

04-Probability-Simulation/01-A-Money-Experiment/src/AlgoVisualizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static void main(String[] args) {
5353
int N = 120;
5454

5555
EventQueue.invokeLater(() -> {
56-
AlgoFrame frame = new AlgoFrame("Fractal Visualizer", sceneWidth,sceneHeight);
56+
AlgoFrame frame = new AlgoFrame("Money Problem", sceneWidth,sceneHeight);
5757

5858
SocietyData data = new SocietyData(N, sceneHeight);
5959

04-Probability-Simulation/02-Get-PI-with-Monte-Carlo/src/AlgoVisualizer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void run(){
3131
int y = (int)(Math.random() * frame.getCanvasHeight());
3232
data.addPoint(x, y);
3333

34-
if( data.N() % 100 == 0) {
34+
if( data.N() % 10 == 0) {
3535
this.setData();
3636
AlgoVisHelper.pause(DELAY);
3737

@@ -52,13 +52,13 @@ private void setData(){
5252

5353
public static void main(String[] args) {
5454

55-
int sceneWidth = 400;
56-
int sceneHeight = 400;
55+
int sceneWidth = 800;
56+
int sceneHeight = 800;
5757

5858
EventQueue.invokeLater(() -> {
5959
AlgoFrame frame = new AlgoFrame("Monte Carlo Visualizer", sceneWidth,sceneHeight);
6060

61-
MonteCarloData data = new MonteCarloData(sceneWidth/2, sceneHeight/2, 150);
61+
MonteCarloData data = new MonteCarloData(sceneWidth/2, sceneHeight/2, 300);
6262

6363
AlgoVisualizer vis = new AlgoVisualizer(frame, data);
6464
new Thread(() -> {

05-Maze-Solver/Chapter-04-Completed-Codes/DFS-Maze-Solver/src/AlgoVisualizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class AlgoVisualizer {
88

9-
private static int DELAY = 40;
9+
private static int DELAY = 10;
1010

1111
private MazeData data;
1212
private AlgoFrame frame;

06-Maze-Generalization/Chapter-05-Completed-Codes/Random-Maze-Generation-with-Mist/src/AlgoVisualizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class AlgoVisualizer {
88

9-
private static int DELAY = 5;
9+
private static int DELAY = 20;
1010

1111
private MazeData data;
1212
private AlgoFrame frame;

07-Mine-Sweeper/Chapter-06-Completed-Codes/Mine-Sweeper-Demo/src/AlgoVisualizer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ private void open(int x, int y){
9494

9595
public static void main(String[] args) {
9696

97-
int N = 20;
98-
int M = 20;
97+
int N = 24;
98+
int M = 32;
9999

100100
int blockSide = 32;
101101
int sceneWidth = M * blockSide;
102102
int sceneHeight = N * blockSide;
103103

104-
int mineNumber = 20;
104+
int mineNumber = 66;
105105
MineSweeperData data = new MineSweeperData(N, M, mineNumber);
106106

107107
EventQueue.invokeLater(() -> {

0 commit comments

Comments
 (0)