⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hk.ps

📁 介绍各种经典算法的代码。说明详细
💻 PS
📖 第 1 页 / 共 5 页
字号:
LTb1200 827 M63 0 V5634 0 R-63 0 V-5754 0 R(90) Rshow1200 1479 M63 0 V5634 0 R-63 0 V-5754 0 R(100) Rshow1200 2131 M63 0 V5634 0 R-63 0 V-5754 0 R(110) Rshow1200 2783 M63 0 V5634 0 R-63 0 V-5754 0 R(120) Rshow1200 3435 M63 0 V5634 0 R-63 0 V-5754 0 R(130) Rshow1200 4087 M63 0 V5634 0 R-63 0 V-5754 0 R(140) Rshow1200 4739 M63 0 V5634 0 R-63 0 V-5754 0 R(150) Rshow1770 501 M0 63 V0 4175 R0 -63 V0 -4375 R(14) Cshow2909 501 M0 63 V0 4175 R0 -63 V0 -4375 R(16) Cshow4049 501 M0 63 V0 4175 R0 -63 V0 -4375 R(18) Cshow5188 501 M0 63 V0 4175 R0 -63 V0 -4375 R(20) Cshow6327 501 M0 63 V0 4175 R0 -63 V0 -4375 R(22) Cshow1200 501 M5697 0 V0 4238 V-5697 0 V0 -4238 V200 2620 Mcurrentpoint gsave translate 90 rotate 0 0 M(Leaves Relative to ID Alpha-Beta \(%\)) Cshowgrestore4048 101 M(lg of Entries in Transposition Table) Cshow4048 4939 M(Chess - Sensitivity of ID AB-SSS* to Storage) CshowLT06234 4476 M(ID Alpha-Beta) Rshow6354 4476 M360 0 V1200 1479 M570 0 V569 0 V570 0 V570 0 V570 0 V569 0 V570 0 V570 0 V569 0 V570 0 VLT16234 4276 M(ID AB-SSS* depth 7) Rshow6354 4276 M360 0 V2258 4739 M81 -782 V2909 1675 L570 -587 V570 -65 V569 0 V570 65 V570 0 V569 0 V6474 4276 D2339 3957 D2909 1675 D3479 1088 D4049 1023 D4618 1023 D5188 1088 D5758 1088 D6327 1088 DLT26234 4076 M(ID AB-SSS* depth 6) Rshow6354 4076 M360 0 V2150 4739 M2339 3696 L2909 1935 L570 -717 V4049 957 L4618 827 L570 -65 V570 0 V569 -65 V6474 4076 A2339 3696 A2909 1935 A3479 1218 A4049 957 A4618 827 A5188 762 A5758 762 A6327 697 ALT36234 3876 M(ID AB-SSS* depth 5) Rshow6354 3876 M360 0 V1770 1153 M569 65 V570 0 V570 0 V570 65 V569 0 V570 0 V570 0 V569 0 V6474 3876 B1770 1153 B2339 1218 B2909 1218 B3479 1218 B4049 1283 B4618 1283 B5188 1283 B5758 1283 B6327 1283 Bstrokegrestoreendshowpage%%EndDocument @endspecial 1158 3151 a(Figure)g(4:)30 b(Leaf)20 b(node)f(count)g(ID)h(AB-SSS*.)330 3419 y(dri)n(v)o(ers)f(dif)n(fer)g(in)h(the)h(w)o(ay)f(the)g(null)g(windo)n(w)f(is)i(chosen)f(\(denoted)e(by)iFl(g)32 b Fs(in)20 b(the)g(\256gures\).)330 3656 y Fo(3.1)99b(SSS*)330 3812 y Fs(The)20 b(dri)n(v)o(er)f(in)i(\256gure)e(3)i(constructs)f(an)g(algorithm)f(that)h(starts)i(with)e(an)h(upper)e(bound)f(of)i(+)p Fr(\245)p Fs(.)31 b(From)330 3912 y(Alpha-Beta')-5b(s)20 b(postcondition)e(we)i(see)h(that)g(this)f(call)h(will)g(f)o(ail)g(lo)n(w)-5 b(,)20 b(yielding)f(an)h(upper)f(bound.)27b(By)330 4011 y(feeding)d(this)h(upper)f(bound)f Fr(\246)12353981 y Fk(+)1298 4011 y Fs(again)h(to)h(an)g(MT)g(call,)h(we)g(will)f(get)g(a)h(sequence)e(of)g(f)o(ail)i(lo)n(ws.)44 b(In)3304111 y(the)25 b(end,)g(if)h Fm(g)j Fs(=)h Fl(g)12 b Fs(,)25b(we)h(will)g(ha)n(v)o(e)e(a)h(f)o(ail)h(high)e(with)hFm(g)30 b Fs(=)f Fr(\246)2124 4081 y Fj(\000)2210 4111y Fs(=)h Fl(g)41 b Fs(=)30 b Fr(\246)2473 4081 y Fk(+)25104111 y Fs(,)c(which)f(means)g(the)g(game)330 4210 y(v)n(alue)dFr(\246)i Fs(is)g(found.)35 b(T)-7 b(o)23 b(compute)f(the)h(ne)o(xt)f(upper)f(bound,)h(AB-SSS*)h(re\256nes)g(a)g(max)g(solution)f(tree)3304310 y([20)o(,)e(17)o(,)h(18)o(].)455 4410 y(This)c(dri)n(v)o(er)e(e)o(xpands)g(the)i(same)g(leaf)g(nodes)f(in)h(the)g(same)f(order)g(as)i(Stockman')-5 b(s)15 b(SSS*)j([18)n(,)g(21)o(].)330 4509y(In)23 b(this)h(sense,)h(we)e(ha)n(v)o(e)g(constructed)f(an)h(equi)n(v)n(alent)f(formulation)f(of)i(SSS*,)i(constructing)c(a)j(best)3304609 y(\256rst)15 b(algorithm)d(using)i(depth)f(\256rst,)i(memory)e(enhanced,)g(search.)26 b(F)o(ormulating)12 b(SSS*)j(as)f(a)h(sequence)330 4709 y(of)j(null)h(windo)n(w)e(searches)i(mak)o(es)f(clear)gFm(why)h Fs(it)h(searches)e(less)i(lea)n(v)o(es)e(than)h(a)g(single)f(wide)h(windo)n(w)330 4808 y(Alpha-Beta)f(call,)i(as)g(has)f(been)f(pro)o(v)o(en)f(by)i(Stockman:)27 b(because)19 b(of)g(the)g(smaller)g(search)g(windo)n(ws.)455 4908 y(The)33 b(ne)n(w)g(formulation)f(has)h(a)h(number)e(of)i(practical)f(adv)n(antages)f(o)o(v)o(er)g(the)i(old)f(Stockman)330 5007 y(formulation.)38 b(The)24 b(biggest)f(adv)n(antage)f(is)j(that)f(this)h(formulation)c(is)k(readily)e(implementable)f(in)i(a)330 5107 y(re)o(gular)17 b(Alpha-Beta)h(based)g(chess)h(program.)27b(This)19 b(enables)f(us)h(to)g(\256nally)f(test)h(the)g(performance)d(of)330 5207 y(SSS*)21 b(in)f(a)h(real)f(application.)28b(Section)19 b(4)i(gi)n(v)o(es)e(these)i(test)g(results.)4555306 y(Another)29 b(quite)h(interesting)g(test)i(is)g(to)f(see)g(ho)n(w)f(much)g(storage)g(is)i(needed)d(to)i(store)g(the)g(re-)3305406 y(search)16 b(information\320is)f(it)i(indeed)f(of)g(the)h(order)e(of)i(the)f(max)g(solution)g(tree?\320in)g(the)h(transposition)3305506 y(table.)29 b(Of)21 b(the)f(three)g(uses)h(of)f(the)g(transposition)f(table\320better)g(mo)o(v)o(e)g(ordering,)f(no)i(re-e)o(xpansions)330 5605 y(through)k(transpositions,)j(and)f(no)g(re-e)o(xpansions)d(from)j(pre)n(vious)e(passes\320we)j(are)g(interested)e(in)1809 5919 y(5)p eop%%Page: 6 66 5 bop 504 454 a Fv(function)18 b Fw(AB-DU)m(AL*\()pFe(n)p Fw(\))j Fu(\256)g(\246)p Fw(;)621 545 y Fe(g)gFw(:=)h Fb(\000)p Fu(\245)p Fw(;)621 637 y Fv(r)o(epeat)737728 y Fd(g)32 b Fw(:=)21 b Fe(g)p Fw(;)737 819 y Fe(g)hFw(:=)c(Alpha-Beta\()p Fe(n)p Fu(,)13 b Fd(g)d Fu(,)jFd(g)28 b Fw(+)17 b(1\);)621 911 y Fv(until)g Fe(g)22b Fw(=)f Fd(g)10 b Fw(;)621 1002 y Fv(r)o(etur)o(n)17b Fe(g)p Fw(;)556 1268 y Fs(Figure)i(5:)30 b(DU)m(AL*)19b(as)i(a)g(Sequence)e(of)g(memory)g(enhanced)f(Alpha-Beta)i(Searches.)330 1535 y(the)e(third)f(one.)28 b(That)18 b(w)o(ould)f(sho)n(w)h(us)g(whether)f(the)h(assumption)f(of)h(section)f(2.2,)h(that)g(the)g(re-search)330 1635 y(information)24 b(\256ts)j(in)f(memory)-5b(,)26 b(is)h(v)n(alid.)47 b(Therefore,)25 b(we)i(ha)n(v)o(e)e(conducted)f(tests)k(with)e(a)h(v)n(ariable)330 1734y(size)18 b(transposition)d(table,)j(and)e(sho)n(w)h(the)g(number)e(of)i(e)o(xpanded)d(nodes)j(for)f(a)i(multi-pass)e(algorithm)3301834 y(di)n(vided)23 b(by)i(the)g(nodes)f(e)o(xpanded)f(by)h(a)h(one-pass)f(algorithm.)42 b(T)-7 b(o)25 b(put)g(it)h(dif)n(ferently)-5b(,)23 b(ho)n(w)i(much)330 1933 y(memory)32 b(does)h(AB-SSS*)g(need)g(to)g(beat)g(Alpha-Beta?)68 b(Figure)33 b(4)g(sho)n(ws)g(the)g(test)i(results)e(for)330 2033 y(Phoenix.)51 b(The)28 b(graph)f(sho)n(ws)h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -