Presentation is loading. Please wait.

Presentation is loading. Please wait.

Brute Force Average of 88 checks Worst possible algorithm if there is a ship in the bottom right cell Best search: 25.

Similar presentations


Presentation on theme: "Brute Force Average of 88 checks Worst possible algorithm if there is a ship in the bottom right cell Best search: 25."— Presentation transcript:

1

2

3

4

5

6 Brute Force Average of 88 checks Worst possible algorithm if there is a ship in the bottom right cell Best search: 25

7

8 Implements Java’s random Worst possible algorithm Average of 95 checks Best search: 56 Does not account for hits Mathematically, the chances of playing a perfect game with random firing are easy to calculate and are: 355,687,428,096,000 / 2,365,369,369,446,553,061,560,941,772,800,000 This equates to, on average, once in every 6,650,134,872,937,201,800 games Source (http://www.datagenetics.com/blog/december32011/)

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27


Download ppt "Brute Force Average of 88 checks Worst possible algorithm if there is a ship in the bottom right cell Best search: 25."

Similar presentations


Ads by Google