The.Algorithm.Design.Manual.Springer-Verlag.1998
The.Algorithm.Design.Manual.Springer-Verlag.1998 The.Algorithm.Design.Manual.Springer-Verlag.1998
Lecture 11 - backtracking Applications include minimizing plotter movement, printed-circuit board wiring, transportation problems, etc. There is no known polynomial time algorithm (ie. for some fixed k) for this problem, so search-based algorithms are the only way to go if you need an optional solution. Listen To Part 11-3 But I want to use a Supercomputer Moving to a faster computer can only buy you a relatively small improvement: ● Hardware clock rates on the fastest computers only improved by a factor of 6 from 1976 to 1989, from 12ns to 2ns. ● Moving to a machine with 100 processors can only give you a factor of 100 speedup, even if your job can be perfectly parallelized (but of course it can't). ● The fast Fourier algorithm (FFT) reduced computation from n=4096 and revolutionized the field of image processing. to . This is a speedup of 340 times on ● The fast multipole method for n-particle interaction reduced the computation from of 4000 times on n=4096. to O(n). This is a speedup Listen To Part 11-4 Can Eight Pieces Cover a Chess Board? Consider the 8 main pieces in chess (king, queen, two rooks, two bishops, two knights). Can they be positioned on a chessboard so every square is threatened? file:///E|/LEC/LECTUR16/NODE11.HTM (2 of 8) [19/1/2003 1:34:54]
Lecture 11 - backtracking Only 63 square are threatened in this configuration. Since 1849, no one had been able to find an arrangement with bishops on different colors to cover all squares. Of course, this is not an important problem, but we will use it as an example of how to attack a combinatorial search problem. Listen To Part 11-5 Picking a square for each piece gives us the bound: How many positions to test? Anything much larger than is unreasonable to search on a modest computer in a modest amount of time. However, we can exploit symmetry to save work. With reflections along horizontal, vertical, and diagonal axis, the queen can go in only 10 non-equivallent positions. Even better, we can restrict the white bishop to 16 spots and the queen to 16, while being certain that we get all distinct configurations. Listen To Part 11-6 file:///E|/LEC/LECTUR16/NODE11.HTM (3 of 8) [19/1/2003 1:34:54]
- Page 889 and 890: Lecture 5 - quicksort Listen To Par
- Page 891 and 892: Lecture 5 - quicksort Listen To Par
- Page 893 and 894: Lecture 5 - quicksort The worst cas
- Page 895 and 896: Lecture 5 - quicksort Mon Jun 2 09:
- Page 897 and 898: Lecture 6 - linear sorting Since 2i
- Page 899 and 900: Lecture 6 - linear sorting With uni
- Page 901 and 902: Lecture 6 - linear sorting Listen T
- Page 903 and 904: Lecture 7 - elementary data structu
- Page 905 and 906: Lecture 7 - elementary data structu
- Page 907 and 908: Lecture 7 - elementary data structu
- Page 909 and 910: Lecture 7 - elementary data structu
- Page 911 and 912: Lecture 7 - elementary data structu
- Page 913 and 914: Lecture 7 - elementary data structu
- Page 915 and 916: Lecture 7 - elementary data structu
- Page 917 and 918: Lecture 8 - binary trees - Joyce Ki
- Page 919 and 920: Lecture 8 - binary trees TREE-MINIM
- Page 921 and 922: Lecture 8 - binary trees Inorder-Tr
- Page 923 and 924: Lecture 8 - binary trees Listen To
- Page 925 and 926: Lecture 8 - binary trees insert(b)
- Page 927 and 928: Lecture 8 - binary trees Not (1) -
- Page 929 and 930: Lecture 9 - catch up Next: Lecture
- Page 931 and 932: Lecture 10 - tree restructuring 1.
- Page 933 and 934: Lecture 10 - tree restructuring Lis
- Page 935 and 936: Lecture 10 - tree restructuring Not
- Page 937 and 938: Lecture 10 - tree restructuring Cas
- Page 939: Lecture 11 - backtracking Next: Lec
- Page 943 and 944: Lecture 11 - backtracking Recursion
- Page 945 and 946: Lecture 11 - backtracking Specifica
- Page 947 and 948: Lecture 12 - introduction to dynami
- Page 949 and 950: Lecture 12 - introduction to dynami
- Page 951 and 952: Lecture 12 - introduction to dynami
- Page 953 and 954: Lecture 12 - introduction to dynami
- Page 955 and 956: Lecture 12 - introduction to dynami
- Page 957 and 958: Lecture 13 - dynamic programming ap
- Page 959 and 960: Lecture 13 - dynamic programming ap
- Page 961 and 962: Lecture 13 - dynamic programming ap
- Page 963 and 964: Lecture 14 - data structures for gr
- Page 965 and 966: Lecture 14 - data structures for gr
- Page 967 and 968: Lecture 14 - data structures for gr
- Page 969 and 970: Lecture 14 - data structures for gr
- Page 971 and 972: Lecture 14 - data structures for gr
- Page 973 and 974: Lecture 14 - data structures for gr
- Page 975 and 976: Lecture 15 - DFS and BFS Next: Lect
- Page 977 and 978: Lecture 15 - DFS and BFS In a DFS o
- Page 979 and 980: Lecture 15 - DFS and BFS It could u
- Page 981 and 982: Lecture 15 - DFS and BFS Algorithm
- Page 983 and 984: Lecture 16 - applications of DFS an
- Page 985 and 986: Lecture 16 - applications of DFS an
- Page 987 and 988: Lecture 16 - applications of DFS an
- Page 989 and 990: Lecture 17 - minimum spanning trees
Lecture 11 - backtracking<br />
Applications include minimizing plotter movement, printed-circuit board wiring, transportation problems, etc.<br />
<strong>The</strong>re is no known polynomial time algorithm (ie. for some fixed k) for this problem, so search-based algorithms<br />
are the only way to go if you need an optional solution.<br />
Listen To Part 11-3<br />
But I want to use a Supercomputer<br />
Moving to a faster computer can only buy you a relatively small improvement:<br />
● Hardware clock rates on the fastest computers only improved by a factor of 6 from 1976 to 1989, from 12ns to<br />
2ns.<br />
● Moving to a machine with 100 processors can only give you a factor of 100 speedup, even if your job can be<br />
perfectly parallelized (but of course it can't).<br />
● <strong>The</strong> fast Fourier algorithm (FFT) reduced computation from<br />
n=4096 and revolutionized the field of image processing.<br />
to . This is a speedup of 340 times on<br />
● <strong>The</strong> fast multipole method for n-particle interaction reduced the computation from<br />
of 4000 times on n=4096.<br />
to O(n). This is a speedup<br />
Listen To Part 11-4<br />
Can Eight Pieces Cover a Chess Board?<br />
Consider the 8 main pieces in chess (king, queen, two rooks, two bishops, two knights). Can they be positioned on a<br />
chessboard so every square is threatened?<br />
file:///E|/LEC/LECTUR16/NODE11.HTM (2 of 8) [19/1/2003 1:34:54]