亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? group__search.html

?? 黑白棋終局解算程序
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Othello Solver: Search module</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.5 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>Search module</h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga0">board_get_final_score</a> (const <a class="el" href="structBoard.html">Board</a> *board)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the final score.  <a href="#ga0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga1">board_get_final_score_0</a> (const <a class="el" href="structBoard.html">Board</a> *board)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the final score.  <a href="#ga1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga2">board_get_final_score_1</a> (<a class="el" href="structBoard.html">Board</a> *board)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the final score.  <a href="#ga2"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga3">board_get_final_score_2</a> (<a class="el" href="structBoard.html">Board</a> *board, int alpha, int beta, int passed)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the final score.  <a href="#ga3"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga4">alphabeta_shallow</a> (<a class="el" href="structBoard.html">Board</a> *board, int alpha, int beta, int passed)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluate a position using a shallow Alphabeta.  <a href="#ga4"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga5">PVS_deep</a> (<a class="el" href="structBoard.html">Board</a> *board, <a class="el" href="structHashTable.html">HashTable</a> *hash_table, int alpha, int beta, int passed)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Evaluate a position with a deep Principal Variation Search algorithm.  <a href="#ga5"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga6">PVS_root</a> (<a class="el" href="structBoard.html">Board</a> *board, <a class="el" href="structHashTable.html">HashTable</a> *hash_table, int alpha, int beta, <a class="el" href="structMoveList.html">MoveList</a> *movelist)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Principal Variation Search algorithm at the root of the tree.  <a href="#ga6"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__search.html#ga7">solve</a> (<a class="el" href="structBoard.html">Board</a> *board, <a class="el" href="structHashTable.html">HashTable</a> *hash_table, int mode, <a class="el" href="structMove.html">Move</a> *bestmove)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Search the bestmove of a given board.  <a href="#ga7"></a><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Functions that evaluate a board with different methods depending on the position in the tree search and/or that finds the best move of a given board.<p>At the end of the game, some trivial functions are used to compute the score. Optimization here is reached by maintaining a disc number record that is updated each time a move is made. At the end of the game, computing the score consists only to a simple substraction. For further optimization, the last move is not made and only the number of flipped discs is evaluated. Special and optimized functions are used when one or two empty squares remain on the board, in order to speed up the search.<p>The search of the best move is driven with the Principal Variation Search algorithm (PVS) [1], an enhanced variation of the alphabeta algorithm. The alphabeta algorithm is known to visit less nodes when the alphabeta window is reduced. PVS takes this property into account. From a set of sibling nodes, the first node is searched using a plain alpha beta window. Then the sibling nodes are only searched with minimal windows (where beta = alpha + 1), just to refute the best (first) score. In rare cases the first move is actually refuted, then the current move is re-searched a second time in order to determinate its score more accurately. On highly ordered tree, very few re-searches will be done. Moreover, thanks to the hash table, a second search is usually faster than a first search. So the seldom and fast re-searches will not impact too much the benefit of using minimal windows. Aspiration windows have been added as another improvement, so that even the first search is done with a reduced window. During the 1990s, several re-re-search algorithm based on null-window alphabeta have been proposed : SSS*ab [2], Dual*ab[2], NegaC*[3], MDT[2], negascout[4]. Some (unpublished) experimental tests I made with them did not show any significant improvement compare to the PVS algorithm with aspiration-windows used here.<p>To be efficient PVS need highly ordered tree. The following ordering have been made :<ul><li>fixed square ordering : square usually leading to a good move are visited first, ie from corner squares to X and C squares.</li><li>most stable ordering : a crude evaluation of stability at the corner (corner, X and C squares) to order the moves.</li><li>fast first ordering : the moves leading to the most reduced mobility for the opponent are played first.</li><li>best move previously found : If the position have been previously searched, the best move that was found is replayed as the first move.</li></ul><p><ol><li>Campbell MS &amp; Marsland TA (1983) A Comparison of Minimax Trees Search Algorithms. Artificial Intelligence, 20, pp. 347-367.</li><li>Plaat A. et al. (1996) Best-First Fixed Depth Minimax Algorithms. Artificial Intelligence, 84, pp. 255-293.</li><li>Weill JC. (1992) Experiments With The NegaC* Search. An alternative for Othello Endgame Search. ICCA journal, 15(1), pp. 3-7.</li><li>Reinsfeld A. (1983) An Improvement Of the Scout Tree-Search Algorithm. ICCA journal, 6(4), pp. 4-14. </li></ol><hr><h2>Function Documentation</h2><a class="anchor" name="ga4" doxytag="solver.c::alphabeta_shallow" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int alphabeta_shallow </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="structBoard.html">Board</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>board</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>alpha</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>beta</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>passed</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Evaluate a position using a shallow Alphabeta. <p>This function is used when there are few empty squares on the board. Here, optimizations are in favour of speed instead of efficiency. A simple alphabeta is used because of the low branching factor that makes PVS less efficient. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign=top><em>board</em>&nbsp;</td><td>board. </td></tr>    <tr><td valign=top><em>alpha</em>&nbsp;</td><td>lower bound. </td></tr>    <tr><td valign=top><em>beta</em>&nbsp;</td><td>upper bound. </td></tr>    <tr><td valign=top><em>passed</em>&nbsp;</td><td>a flag indicating if previous move was a pass. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>the final score, as a disc difference. </dd></dl><p><div class="fragment"><pre>01822 {01823     <span class="keyword">const</span> <span class="keywordtype">char</span> p = board-&gt;<a class="code" href="structBoard.html#o1">player</a>;01824     <span class="keyword">const</span> <span class="keywordtype">char</span> o = <a class="code" href="group__mac.html#ga50">OPPONENT</a>(p);01825     <span class="keywordtype">int</span> score, bestscore = -<a class="code" href="group__mac.html#ga21">INF_SCORE</a>;01826     <a class="code" href="structSquareList.html">SquareList</a> *empties;01827     <a class="code" href="structMove.html">Move</a> move;01828 01829 <span class="preprocessor">#if PLAY_ODD_SQUARE_FIRST</span>01830 <span class="preprocessor"></span>    <span class="keywordtype">int</span> parity;01831     <span class="keywordflow">for</span> (parity = 1; parity &gt;= 0; parity--) {01832         <span class="keywordflow">for</span> (empties = board-&gt;<a class="code" href="structBoard.html#o7">empties</a>-&gt;<a class="code" href="structSquareList.html#o2">next</a>; empties-&gt;<a class="code" href="structSquareList.html#o0">position</a> != <a class="code" href="group__mac.html#gga56a56">NOMOVE</a>; empties = empties-&gt;<a class="code" href="structSquareList.html#o2">next</a>) {01833             <span class="keywordflow">if</span> (board-&gt;<a class="code" href="structBoard.html#o6">parity</a>[<a class="code" href="group__mac.html#ga1">QUADRANT_ID</a>[empties-&gt;<a class="code" href="structSquareList.html#o0">position</a>]] == parity01834              &amp;&amp; <a class="code" href="group__board.html#ga3">board_do_flip</a>(board, empties-&gt;<a class="code" href="structSquareList.html#o0">position</a>, &amp;move)) {01835 <span class="preprocessor">#else</span>01836 <span class="preprocessor"></span>        {01837         <span class="keywordflow">for</span> (empties = board-&gt;<a class="code" href="structBoard.html#o7">empties</a>-&gt;<a class="code" href="structSquareList.html#o2">next</a>; empties-&gt;<a class="code" href="structSquareList.html#o0">position</a> != <a class="code" href="group__mac.html#gga56a56">NOMOVE</a>; empties = empties-&gt;<a class="code" href="structSquareList.html#o2">next</a>) {01838             <span class="keywordflow">if</span> (<a class="code" href="group__board.html#ga3">board_do_flip</a>(board, empties-&gt;<a class="code" href="structSquareList.html#o0">position</a>, &amp;move)) {01839 <span class="preprocessor">#endif</span>01840 <span class="preprocessor"></span>                <a class="code" href="group__mac.html#ga38">BOARD_UPDATE_PLAYER</a>(board);01841                 <a class="code" href="group__mac.html#ga40">BOARD_UPDATE_DISCS</a>(board, move.<a class="code" href="structMove.html#o1">n</a>);01842                 <a class="code" href="group__mac.html#ga42">BOARD_UPDATE_PARITY</a>(board, *move.<a class="code" href="structMove.html#o0">position</a>);01843                 <a class="code" href="group__mac.html#ga44">BOARD_UPDATE_EMPTIES</a>(board, empties, *move.<a class="code" href="structMove.html#o0">position</a>);01844                 <span class="keywordflow">if</span> (board-&gt;<a class="code" href="structBoard.html#o3">n_empties</a> == 2) {01845                     score = -<a class="code" href="group__search.html#ga3">board_get_final_score_2</a>(board, -beta, -alpha, 0);01846                 } <span class="keywordflow">else</span> {01847                     score = -<a class="code" href="group__search.html#ga4">alphabeta_shallow</a>(board, -beta, -alpha, 0);01848                 }01849                 <a class="code" href="group__mac.html#ga37">BOARD_RESTORE_SQUARE</a>(board, &amp;move);01850                 <a class="code" href="group__mac.html#ga39">BOARD_RESTORE_PLAYER</a>(board);01851                 <a class="code" href="group__mac.html#ga41">BOARD_RESTORE_DISCS</a>(board, move.<a class="code" href="structMove.html#o1">n</a>);01852                 <a class="code" href="group__mac.html#ga43">BOARD_RESTORE_PARITY</a>(board, *move.<a class="code" href="structMove.html#o0">position</a>);01853                 <a class="code" href="group__mac.html#ga45">BOARD_RESTORE_EMPTIES</a>(board, empties, *move.<a class="code" href="structMove.html#o0">position</a>);01854                 <span class="keywordflow">if</span> (score &gt; bestscore) {01855                     bestscore = score;01856                     <span class="keywordflow">if</span> (bestscore &gt; alpha) {01857                         alpha = bestscore;01858                         <span class="keywordflow">if</span> (alpha &gt;= beta) <span class="keywordflow">return</span> bestscore;01859                     }01860                 }01861             }01862         }01863     }01864 01865     <span class="comment">/* no move */</span>01866     <span class="keywordflow">if</span> (bestscore == -<a class="code" href="group__mac.html#ga21">INF_SCORE</a>) {01867         <span class="keywordflow">if</span> (passed) { <span class="comment">/* game over */</span>01868             <a class="code" href="group__mac.html#ga28">BOARD_CORRECT_TERMINAL_NODES</a>();01869             bestscore = <a class="code" href="group__search.html#ga0">board_get_final_score</a>(board);01870         } <span class="keywordflow">else</span> { <span class="comment">/* pass */</span>01871             <a class="code" href="group__mac.html#ga38">BOARD_UPDATE_PLAYER</a>(board);01872             <a class="code" href="group__mac.html#ga26">BOARD_UPDATE_INTERNAL_NODES</a>();01873             bestscore = -<a class="code" href="group__search.html#ga4">alphabeta_shallow</a>(board, -beta, -alpha, 1);01874             <a class="code" href="group__mac.html#ga39">BOARD_RESTORE_PLAYER</a>(board);01875         }01876     }01877 01878     <span class="keywordflow">return</span> bestscore;01879 }</pre></div>    </td>  </tr></table><a class="anchor" name="ga0" doxytag="solver.c::board_get_final_score" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int board_get_final_score </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="structBoard.html">Board</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>board</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线综合视频播放| 久久久久久9999| 不卡的电影网站| 成人亚洲精品久久久久软件| 国产一区不卡视频| 国产精品一区二区免费不卡| 全国精品久久少妇| 国产精品一区二区三区四区| 国产盗摄精品一区二区三区在线| 国产一区啦啦啦在线观看| 国产一区不卡在线| 成人短视频下载| 在线观看国产91| 日韩一区二区三区视频| 日韩美女在线视频| 国产精品美女久久久久久| 最新国产の精品合集bt伙计| 亚洲欧美自拍偷拍| 一区二区三区成人在线视频| 婷婷开心激情综合| 久久电影网站中文字幕| 成人免费精品视频| 欧美日本一区二区三区| 久久蜜臀精品av| 一区二区久久久| 国内精品久久久久影院一蜜桃| 国产一区二区在线视频| 一本大道久久a久久综合| 欧美精品99久久久**| www亚洲一区| 一区二区三区免费观看| 精品一区二区三区久久| 色婷婷综合久久久中文字幕| 日韩一级成人av| 中文字幕中文字幕在线一区| 日韩经典中文字幕一区| 国产成人免费在线| 欧美日韩亚洲丝袜制服| 欧美韩国一区二区| 视频一区国产视频| 成人a级免费电影| 日韩欧美色综合网站| 亚洲色图欧美在线| 国产一区二区在线看| 欧美男人的天堂一二区| 国产精品久久精品日日| 久久精品噜噜噜成人88aⅴ| 色女孩综合影院| 精品国产百合女同互慰| 一区二区三区电影在线播| 精品夜夜嗨av一区二区三区| 欧美伊人精品成人久久综合97| 2017欧美狠狠色| 三级成人在线视频| 色婷婷久久综合| 亚洲国产精品高清| 国产乱码精品一区二区三| 欧美男男青年gay1069videost| 亚洲人吸女人奶水| 成人动漫一区二区三区| 精品久久久影院| 麻豆91在线看| 91麻豆精品国产91久久久资源速度| 国产精品毛片大码女人| 国产激情91久久精品导航| 日韩欧美三级在线| 日韩成人av影视| 欧美日韩国产一级片| 亚洲一级二级在线| 色噜噜夜夜夜综合网| 亚洲欧美成人一区二区三区| 欧美日韩视频一区二区| 亚洲激情自拍视频| 色老汉一区二区三区| 国产精品女同互慰在线看| 高清日韩电视剧大全免费| 久久久久久久性| 成人午夜av电影| ●精品国产综合乱码久久久久 | 亚洲国产精品av| 国产麻豆视频一区| 中文字幕av不卡| 波多野结衣一区二区三区 | 亚洲另类春色国产| 色国产精品一区在线观看| 亚洲欧美日韩综合aⅴ视频| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 久久成人久久爱| 日韩一区二区免费视频| 国内精品不卡在线| 国产精品毛片a∨一区二区三区| 成人18视频日本| 亚洲精品中文在线影院| 欧美唯美清纯偷拍| 麻豆freexxxx性91精品| 国产蜜臀av在线一区二区三区| 国产精品1区2区| 中文字幕一区在线| 欧美精品一二三| 加勒比av一区二区| 国产精品理论片| 欧美日韩不卡视频| 国产成人在线免费| 亚洲一区二区欧美激情| 日韩免费在线观看| caoporn国产精品| 日韩精品免费视频人成| 久久久久久久综合色一本| 91偷拍与自偷拍精品| 日本最新不卡在线| 国产精品不卡一区二区三区| 欧美日韩国产免费一区二区| 国产91在线|亚洲| 亚洲国产精品一区二区久久| 精品国产一区二区精华| 一道本成人在线| 国产精品亚洲成人| 亚洲国产精品影院| 国产精品久99| 精品国精品国产| 欧美色窝79yyyycom| 国产精品性做久久久久久| 日韩黄色小视频| 中文字幕中文乱码欧美一区二区| 91精品午夜视频| 色婷婷久久一区二区三区麻豆| 国产一区二区在线免费观看| 午夜不卡在线视频| 18涩涩午夜精品.www| 26uuuu精品一区二区| 欧美日韩mp4| 欧美在线影院一区二区| av在线不卡免费看| 国产精品一区二区无线| 久久黄色级2电影| 日韩精彩视频在线观看| 一个色在线综合| 亚洲精品国产精品乱码不99| 久久久国际精品| 精品国产伦一区二区三区观看方式| 在线观看亚洲成人| 成人国产亚洲欧美成人综合网| 国产自产v一区二区三区c| 日本不卡123| 视频一区二区三区中文字幕| 亚洲激情图片一区| 亚洲免费观看视频| 国产精品国产精品国产专区不蜜 | 国产ts人妖一区二区| 久久激情五月婷婷| 九九在线精品视频| 久久99热狠狠色一区二区| 精品一区二区三区在线观看国产| 亚洲aaa精品| 日韩av一区二区在线影视| 亚洲成av人综合在线观看| 午夜精品久久久| 三级成人在线视频| 欧美a级一区二区| 国产在线精品免费av| 国产成人小视频| 国产91精品久久久久久久网曝门| 国产福利精品导航| 欧美日韩黄色影视| 日韩欧美高清dvd碟片| 久久婷婷久久一区二区三区| 久久久久久久性| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 国产伦精品一区二区三区视频青涩 | 丁香五精品蜜臀久久久久99网站 | 91精品国产色综合久久不卡蜜臀| 欧美视频一区二区三区| 欧美亚洲综合久久| 91精品国产综合久久香蕉麻豆| 日韩欧美一区二区视频| 国产女同性恋一区二区| 国产精品国产三级国产普通话三级| 亚洲美女视频在线| 麻豆国产一区二区| 成人午夜视频网站| 91精彩视频在线| 欧美哺乳videos| 中文字幕一区日韩精品欧美| 亚洲国产一区二区三区青草影视| 日日摸夜夜添夜夜添精品视频| 国精产品一区一区三区mba视频| 成人午夜免费电影| 欧美日韩亚洲另类| 欧美极品美女视频| 亚洲大片在线观看| 粉嫩av一区二区三区在线播放| 色综合久久综合网欧美综合网| 制服丝袜国产精品| 国产精品对白交换视频| 视频一区欧美精品| 91猫先生在线| 国产日韩av一区| 婷婷综合在线观看| 91免费在线视频观看| 久久理论电影网|