cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Binary Search trees
Binary Search trees
Jul 14, 2011 at 6:09pm UTC
tam0009
(40)
Does c++ have a library that implements a binary search tree, or do you have to build them yourself?
Jul 14, 2011 at 6:43pm UTC
geekocoder
(103)
i guess you need to build it yourself...
Jul 14, 2011 at 6:57pm UTC
LB
(13399)
http://www.cplusplus.com/reference/algorithm/binary_search/
Jul 15, 2011 at 8:26pm UTC
tam0009
(40)
L B (1077) Jul 14, 2011 at 1:57pm
http://www.cplusplus.com/reference/algorithm/binary_search/
Isn't that just an algorithm to do a binary search on an array? I'm more interested in building a tree data structure. Say something like an AVL tree, Red-Black tree, ect. Is there a library to do anything like that?
Jul 15, 2011 at 9:43pm UTC
tam0009
(40)
Ok after a little thought I think a heap will be plenty sufficient for what I am trying to do.
Topic archived. No new replies allowed.