-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathoutBFS.txt
56 lines (27 loc) · 1.4 KB
/
outBFS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
BFS ::
No of Expanded Nodes: 15
No of Explored Nodes: 15
< @Depth:0 State (3, 3, 1, 0, 0) >
take 1 missionaries and 1 cannibals from the original shore to the new shore.
< @Depth:1 State (2, 2, 0, 1, 1) >
take 1 missionaries and 0 cannibals back from the new shore to the original shore.
< @Depth:2 State (3, 2, 1, 0, 1) >
take 0 missionaries and 2 cannibals from the original shore to the new shore.
< @Depth:3 State (3, 0, 0, 0, 3) >
take 0 missionaries and 1 cannibals back from the new shore to the original shore.
< @Depth:4 State (3, 1, 1, 0, 2) >
take 2 missionaries and 0 cannibals from the original shore to the new shore.
< @Depth:5 State (1, 1, 0, 2, 2) >
take 1 missionaries and 1 cannibals back from the new shore to the original shore.
< @Depth:6 State (2, 2, 1, 1, 1) >
take 2 missionaries and 0 cannibals from the original shore to the new shore.
< @Depth:7 State (0, 2, 0, 3, 1) >
take 0 missionaries and 1 cannibals back from the new shore to the original shore.
< @Depth:8 State (0, 3, 1, 3, 0) >
take 0 missionaries and 2 cannibals from the original shore to the new shore.
< @Depth:9 State (0, 1, 0, 3, 2) >
take 1 missionaries and 0 cannibals back from the new shore to the original shore.
< @Depth:10 State (1, 1, 1, 2, 2) >
take 1 missionaries and 1 cannibals from the original shore to the new shore.
< @Depth:11 State (0, 0, 0, 3, 3) >
Elapsed time in BFS: 0.37ms