课程: AI Algorithms for Game Design with Python
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Time complexity of chess
- [Instructor] Now, how about chess? Well, chess is a very much more complicated game than Tic-Tac-Toe and certainly not a solved game. Let me give you an idea of the complexity of chess. Consider a game that ends after 40 pairs of moves, 40 for white and 40 for black. A pretty accurate estimate is 10 to the 40 possible games. So how long would this take to compute? This is where the fun begins. Imagine a computer that is capable of processing a whole game of chess in one nanosecond. By game, I mean a state in the search tree, a chessboard. This is very optimistic because today a computer may be expected to perform a single operation in one nanosecond, an operation like an addition or a multiplication, not checking all 64 squares in a chess game. But let's dream. So in this computer, producing one move would take 10 to the 40 nanoseconds. That's about 300 times 10 to the 21 years. Okay, let's dream some more. Your computer probably has somewhere between two and eight CPU cores, which…
内容
-
-
-
(已锁定)
Some history as motivation3 分钟 46 秒
-
(已锁定)
Different types of games2 分钟 17 秒
-
(已锁定)
Tree-based decision-making2 分钟 28 秒
-
(已锁定)
Time complexity of brute-force approaches2 分钟 56 秒
-
(已锁定)
Time complexity of chess2 分钟 31 秒
-
The cat trap game3 分钟 36 秒
-
(已锁定)
The Python setting for the cat trap6 分钟 38 秒
-
(已锁定)
Code example: A random cat6 分钟 8 秒
-
(已锁定)
-
-
-
-
-