From: | Tony Rolfe |
Date: | 18 Jan 2000 at 04:55:31 |
Subject: | Re: AmPCS |
On Mon, 17 Jan 2000 10:52:22 +0000 Bippy M said:
> Howdy Tony
>
> On 17-Jan-00, Tony Rolfe wrote:
>
> TR> On Sun, 16 Jan 2000 13:46:41 +0000 Bippy M said:
> TR>> Hiya Guys,
>
> TR> Australia is simple:
>
> TR> (02) - NSW, ACT
> TR> (03) - Vic, Tas
> TR> (04) - Mobile phones
> TR> (07) - Qld
> TR> (08) - WA, SA, NT
>
> TR> Boring Innit?
>
> Ummm if they are ALL the code areas that cover Austrailia then yes.. So
> doesn't each city have its own area-code?
They used to. My old (6-digit number) area code was 044, which
covered a 150 x 10 mile area of the NSW South Coast (From Berry or
Nowra in the North to Narooma in the South - if you have a map).
Within the 044 area, the first two digits of the 6-digit number
defined a smaller area - 55 xxxx and 54 xxxx were the Ulladulla area.
AusTel - the telecommunications control authority - decided that all
phones should have an 8-digit number so the 44 became part of the
number and the area code 02 which was just Sydney became the whole of
NSW (plus a little bit of Victoria, less a bit near Queensland).
>
> TR> Why does searching 15000 items take so long?
>
> TR> Can't you put them into ascending numeric sequence and binary
chop the
> TR> data? Should only take 14 hits maximum.
>
> Well I could but I search both codes and place names, so it'd be
sorted for
> say codes but not areas and vice-versa..
If search speed is more important than memory usage then I'd load the
array into memory twice, one sorted by place name and one by number.
These arrays are going to be static for any one program execution,
I'd guess. People won't be adding codes on the fly?
>
> I would like more info on searching algorithms.. atm I'm comparing
each
> code/area with what is inserted.
>
If you want a basic binary chp algorithm, let me know. I've got one
for searching my customer file (about 4000 names and the search time
on an 030/25 doing I/O to the disk iswell under 1 sec.
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie