|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Educational examples for indexed nodes (O(log n) node search) More...
Go to the source code of this file.
Functions | |
| int | main () |
Educational examples for indexed nodes (O(log n) node search)
Maintains a binary search tree of graph nodes indexed by their values Enables O(log n) search instead of O(n) linear scan Automatically prevents duplicate node values
g++ -std=c++20 -I.. -o tpl_indexNode_example tpl_indexNode_example.cc ./tpl_indexNode_example
Definition in file tpl_indexNode_example.cc.
| int main | ( | ) |
Definition at line 31 of file tpl_indexNode_example.cc.
References GTNodeCommon< NodeInfo >::get_info(), GraphCommon< GT, Node, Arc >::get_num_nodes(), Aleph::IndexNode< GT, Compare, Tree, SN >::insert_in_graph(), Aleph::maps(), N, and operator<().