we have had the system in Georgia for the past 2 or 3 years... so far it is 282,500+ numbers long! we have to pay $5 to get our number added to the list. i have to use the list at work because real estate companies cannot "cold call" people to see if they are interested in selling their property. i download the list from the website and then i have to import it to a database to search it... last year i wrote a c++ program to search the list using a binary search. it was text based and some of the other employees did not like using it. so, this year i wrote a Java swing program to search the list. i am not sure what algorithm Java uses with the vector.contains( xxx ) but it is a lot faster than my binary search. anyway, i think the NoCall idea is great! the $5 gets our number on the list for 2 years and then it is our responsibility to re-register for an aditional 2 years when the time is up. small price to pay to get rid of those annoying phone calls. [This message has been edited by Greg Harris (edited June 24, 2001).]
posted 18 years ago
Although I would prefer less government involvement in our lives, the service is there so I thought we should use it.
------------------ Michael Finney Sun Certified Programmer for the Java 2 Platform Sun Certified Developer for the Java 2 Platform
Originally posted by Greg Harris: ...so, this year i wrote a Java swing program to search the list. i am not sure what algorithm Java uses with the [b]vector.contains( xxx ) but it is a lot faster than my binary search.[/B]
You might want to take a look at TreeSet. It provides guaranteed log(n) time cost for the basic operations (add, remove and contains).