 A related problem to search is set membership.Any algorithm that does lookup, like binary search, can also be used for set membership.There are other algorithms that are more specifically suited for set membership.