Hello people, I know how simple binary search works, but how can I do a double binary search, we got students each with a name and a code, I need in my binary search to find a student by name AND by code, using ONLY binary search.How could I do that ???
Please, I don't see how to express the binary search algorithm that is going to exclude another student, with the same name, but a different code.
Please help me, it's very urgent.
It's in C++, just the idea.
comply or die 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
comply or die 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
comply or die 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
Alex Edwards 321 Posting Shark
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured 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.