HP3000-L Archives

September 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Travis Howerton <[log in to unmask]>
Reply To:
Travis Howerton <[log in to unmask]>
Date:
Fri, 24 Sep 1999 16:03:04 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Greetings.

I'm not a mathematician and could be totally wrong here, but....

Case 1: A..Z, a..z, and 0..9
Case 2: A..Z and 0..9 ?

17 characters from the above cases require:
case 1 has 62^17 (2955688905823059073916326510592) possibilities.
case 2 has 36^17 (    286511799958070431838109696) possibilities.

case 1 needs 102 bits to be totally represented
case 2 needs  88 bits.

You have 72 bits (9 * 8). I don't think it'll go without eliminating
some possibilities. Any letters or digits never used? ( You can have at
most 18 characters still fit it into 9 bytes "losslessly")

Good luck.

Travis Howerton
Pharmacy Computer Services, Inc.
541.476.3139 x233
[log in to unmask]
(change "f" in farm to "ph")

----- Original Message -----
> I have a situation where I need to fit 17 ASCII alphanumeric
characters into 9
> byte field and must still be a ASCII alphanumeric representation.
Does
> anyone know of a good  algorithm to use to solve this problem or a web
site to
> get me going?
>
> Thanks in advance,
>
> Kimber Renk
> HMO Nebraska
> Email: [log in to unmask]

ATOM RSS1 RSS2