For a small number of values linear search may be OK; when values do not change 
much, you may sort them and do a binary search. Or use a hash table, or maybe a 
tree structure.

Reply via email to