|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Sparse history heuristic table over Aleph hash maps. More...
#include <search_move_ordering.H>
Public Types | |
| using | Key_Type = Key |
| Type of move keys. | |
| using | Map_Type = DynHashMap< Key, size_t, HashMapTable, Cmp > |
| Internal map type. | |
Public Member Functions | |
| void | clear () noexcept |
| Reset all history scores to zero. | |
| size_t | score (const Key &key) const noexcept |
| Read the current score for a move key. | |
| void | record (const Key &key, const size_t bonus=1) |
| Increment the history score for a move key. | |
Static Public Attributes | |
| static constexpr bool | supported = true |
| Marker indicating that this table tracks history. | |
Private Attributes | |
| Map_Type | table_ |
Sparse history heuristic table over Aleph hash maps.
| Key | Key type used to identify moves globally. |
| HashMapTable | Aleph hash-table implementation. |
| Cmp | Key equality comparator. |
Definition at line 230 of file search_move_ordering.H.
| using Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::Key_Type = Key |
Type of move keys.
Definition at line 236 of file search_move_ordering.H.
| using Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::Map_Type = DynHashMap<Key, size_t, HashMapTable, Cmp> |
Internal map type.
Definition at line 238 of file search_move_ordering.H.
|
inlinenoexcept |
Reset all history scores to zero.
Definition at line 241 of file search_move_ordering.H.
References Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::table_.
|
inline |
Increment the history score for a move key.
| key | Move key. |
| bonus | Amount to add to the score. |
Definition at line 262 of file search_move_ordering.H.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::table_.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
inlinenoexcept |
Read the current score for a move key.
| key | Move key. |
Definition at line 250 of file search_move_ordering.H.
References Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::table_.
Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().
|
staticconstexpr |
Marker indicating that this table tracks history.
Definition at line 234 of file search_move_ordering.H.