|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <random>#include <string>#include <cmath>#include <gtest/gtest.h>#include <search_move_ordering.H>Go to the source code of this file.
Functions | |
| TEST (KillerMoveTable, EmptyTableReportsFalse) | |
| TEST (KillerMoveTable, RecordAndQuery) | |
| TEST (KillerMoveTable, TwoSlotsPerDepth) | |
| TEST (KillerMoveTable, ThirdRecordEvictsOldest) | |
| TEST (KillerMoveTable, DuplicateRecordIsNoOp) | |
| TEST (KillerMoveTable, IndependentDepths) | |
| TEST (KillerMoveTable, ClearResetsAll) | |
| TEST (KillerMoveTable, SparseDepthAccess) | |
| TEST (KillerMoveTable, NonComparableMovesUseNoOpTable) | |
| TEST (KillerMoveTable, StringMoves) | |
| TEST (HistoryHeuristicTable, EmptyTableReturnsZero) | |
| TEST (HistoryHeuristicTable, RecordAndScore) | |
| TEST (HistoryHeuristicTable, AccumulatesBonus) | |
| TEST (HistoryHeuristicTable, DefaultBonusIsOne) | |
| TEST (HistoryHeuristicTable, IndependentKeys) | |
| TEST (HistoryHeuristicTable, ClearResetsAll) | |
| TEST (HistoryHeuristicTable, NullTableIsNoOp) | |
| TEST (SortRankedMoves, SortsByPriorityDescending) | |
| TEST (SortRankedMoves, KillerMovesFirst) | |
| TEST (SortRankedMoves, HistoryBreaksTies) | |
| TEST (SortRankedMoves, OrdinalBreaksTiesWhenEverythingEqual) | |
| TEST (SortRankedMoves, KillerThenHistoryThenPriority) | |
| TEST (SortRankedMoves, SingleElementIsNoOp) | |
| TEST (SortRankedMoves, EmptyIsNoOp) | |
| TEST (KillerMoveTable, LargeDepthRange) | |
| TEST (KillerMoveTable, EvictionUnderManyInsertsPerDepth) | |
| TEST (KillerMoveTable, NonComparableLargeInput) | |
| TEST (HistoryHeuristicTable, LargeKeySet) | |
| TEST (HistoryHeuristicTable, AccumulatesLargeBonuses) | |
| TEST (HistoryHeuristicTable, NullTableLargeInput) | |
| TEST (SortRankedMoves, RandomizedStress) | |
| TEST | ( | HistoryHeuristicTable | , |
| AccumulatesBonus | |||
| ) |
Definition at line 167 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| AccumulatesLargeBonuses | |||
| ) |
Definition at line 388 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| ClearResetsAll | |||
| ) |
Definition at line 195 of file move_ordering_test.cc.
References Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::clear(), Aleph::divide_and_conquer_partition_dp(), Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| DefaultBonusIsOne | |||
| ) |
Definition at line 175 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| EmptyTableReturnsZero | |||
| ) |
Definition at line 154 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| IndependentKeys | |||
| ) |
Definition at line 184 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| LargeKeySet | |||
| ) |
Definition at line 372 of file move_ordering_test.cc.
References Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::clear(), Aleph::divide_and_conquer_partition_dp(), k, N, Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | HistoryHeuristicTable | , |
| NullTableIsNoOp | |||
| ) |
Definition at line 206 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Null_History_Heuristic_Table::record(), Aleph::Null_History_Heuristic_Table::score(), and Aleph::Null_History_Heuristic_Table::supported.
| TEST | ( | HistoryHeuristicTable | , |
| NullTableLargeInput | |||
| ) |
Definition at line 399 of file move_ordering_test.cc.
References Aleph::Null_History_Heuristic_Table::clear(), Aleph::divide_and_conquer_partition_dp(), k, Aleph::Null_History_Heuristic_Table::record(), Aleph::Null_History_Heuristic_Table::score(), and Aleph::Null_History_Heuristic_Table::supported.
| TEST | ( | HistoryHeuristicTable | , |
| RecordAndScore | |||
| ) |
Definition at line 160 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::record(), and Aleph::History_Heuristic_Table< Key, HashMapTable, Cmp >::score().
| TEST | ( | KillerMoveTable | , |
| ClearResetsAll | |||
| ) |
Definition at line 106 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| DuplicateRecordIsNoOp | |||
| ) |
Definition at line 82 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| EmptyTableReportsFalse | |||
| ) |
Definition at line 43 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| EvictionUnderManyInsertsPerDepth | |||
| ) |
Definition at line 345 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| IndependentDepths | |||
| ) |
Definition at line 94 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| LargeDepthRange | |||
| ) |
Definition at line 324 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and N.
| TEST | ( | KillerMoveTable | , |
| NonComparableLargeInput | |||
| ) |
Definition at line 358 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| NonComparableMovesUseNoOpTable | |||
| ) |
Definition at line 125 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| RecordAndQuery | |||
| ) |
Definition at line 50 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| SparseDepthAccess | |||
| ) |
Definition at line 117 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| StringMoves | |||
| ) |
Definition at line 139 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| ThirdRecordEvictsOldest | |||
| ) |
Definition at line 70 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | KillerMoveTable | , |
| TwoSlotsPerDepth | |||
| ) |
Definition at line 60 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | SortRankedMoves | , |
| EmptyIsNoOp | |||
| ) |
Definition at line 311 of file move_ordering_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Aleph::Array< T >::is_empty(), and Aleph::sort_ranked_moves().
| TEST | ( | SortRankedMoves | , |
| HistoryBreaksTies | |||
| ) |
Definition at line 249 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::sort_ranked_moves().
| TEST | ( | SortRankedMoves | , |
| KillerMovesFirst | |||
| ) |
Definition at line 233 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::sort_ranked_moves().
| TEST | ( | SortRankedMoves | , |
| KillerThenHistoryThenPriority | |||
| ) |
Definition at line 281 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::sort_ranked_moves().
| TEST | ( | SortRankedMoves | , |
| OrdinalBreaksTiesWhenEverythingEqual | |||
| ) |
Definition at line 265 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::sort_ranked_moves().
| TEST | ( | SortRankedMoves | , |
| RandomizedStress | |||
| ) |
Definition at line 415 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), N, and rng.
| TEST | ( | SortRankedMoves | , |
| SingleElementIsNoOp | |||
| ) |
Definition at line 299 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::sort_ranked_moves().
| TEST | ( | SortRankedMoves | , |
| SortsByPriorityDescending | |||
| ) |
Definition at line 217 of file move_ordering_test.cc.
References Aleph::Array< T >::append(), Aleph::divide_and_conquer_partition_dp(), and Aleph::sort_ranked_moves().