I know that there are plenty of open source implemenations of AVL trees out there but I was wondering if it is possible to have a AVL that has repeat entries. I want to use one so I can search records by various fields. Eg I would have one for forename and then a forename would have a unique ID with it that I could then load up the whole record. The problem is that forename isnt unique.
If it is possible could someone point me to a simple open source implementation.
bob89
0
Newbie Poster
Recommended Answers
Jump to PostThis library is written in C, but it allows duplicates. The duplicate check is actually an extra step for insertion because proper duplicate handling falls out of the usual binary search tree insertion logic.
Keep in mind that the above library treats duplicates as a stack. …
Jump to PostI'll save myself quite a bit of typing and link you to some general information that will help you understand the library better as well as binary search trees and AVL trees in general:
Binary Search Trees Part 1
AVL TreesThe easiest …
All 6 Replies
Narue
5,707
Bad Cop
Team Colleague
bob89
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Danish Emerald
0
Newbie Poster
arkoenig
340
Practically a Master Poster
paladin.lone
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.