主权项 |
1. A method comprising:
receiving a request for one or more numbers, wherein the request includes an original-range of possible numbers; loading an original list of previously allocated numbers into an indexed data structure; generating gap values for the original list of previously allocated numbers in the indexed data structure; performing an available number search process on the original list of previously allocated numbers in the indexed data structure to identify one or more currently available numbers within the original range of numbers and using the original list of previously allocated numbers as an initial current number list, wherein each iteration of the available number search process includes, for a current number list:
determining whether there are one or more available numbers between a lowest number in the current number list and a highest number in the current number list based on a gap value associated with a highest numeric value in the current number list;in accordance with a determination that there are one or more available numbers between the lowest number in the current number list and the highest number in the current number list:
identifying one or more available numbers between a lowest number in the current number list and a highest number in the current number list; and transmitting one or more identified available numbers to the requesting system. |