User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 456,453 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,638 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser: Programming Forums
Views: 3149 | Replies: 2
Reply
Join Date: Sep 2004
Posts: 1
Reputation: vertica is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vertica vertica is offline Offline
Newbie Poster

Math/computerscience Log Problem- Helpppp

  #1  
Sep 27th, 2004
here is the problem


The following problems require you to make some assumptions. Be sure to specify them.

What is the shortest the address on a typical letter could be, if it is to get to a unique human recipient? (Assume the permitted characters are A-Z, 0-9). Explain your assumptions and show your work. You will need a calculator that can do logarithms.

Please, help - I don't even understand what logs would have to do with this problem.

Thanks, Vertica
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2004
Location: Marin, CA, USA
Posts: 434
Reputation: Chainsaw is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 10
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Math/computerscience Log Problem- Helpppp

  #2  
Sep 27th, 2004
ya, me neither. If there are 4 billion people you need to support 4 billion addresses or one 32-bit integer (convienient!)

So, if the chars are A-Z and 0-9 you have a base-36 numbering system to work with.

How many digits of base-36 numbers do you need?

(in base-36, 10 == decimal 36, 100 == decimal 36*36, 1000 == 36*36*36)

I suppose you could use logs to aid in figuring that out, but it seems pretty simple.
Reply With Quote  
Join Date: Oct 2004
Location: Bellingham, WA
Posts: 12
Reputation: Nuez_Jr is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
Nuez_Jr's Avatar
Nuez_Jr Nuez_Jr is offline Offline
Newbie Poster

Re: Math/computerscience Log Problem- Helpppp

  #3  
Oct 6th, 2004
Originally Posted by Chainsaw
How many digits of base-36 numbers do you need?

That's exactly the question that logarithms will answer. Were invented to answer.

Going back to the definition: a^x=b --> log_a(b)=x, we have 36 as the base, and we know the result of the exponentiation is something in the vecinity of 4B. (4 Gigapeople??)

So a=36, and b=4,000,000,000. The equation on the left can't be solved directly for x, but the log identity gives an equation that can.

ceil(log_36(4,000,000,000)) = the minimum number of symbols chosen from a 36-member set, needed to uniquely identify one element out of a list of 4 billion items.

Sure, that result can be obtained without too much hassle by guessing, but it's faster AND THE WAY THEY WANT you to do the problem : )

A few assumptions I can think of:
-we know how many people there are on the planet
-there are 4 billion
*the number will not grow beyond 36^(ceil(log_36(4B))) during the expected system lifetime of our new addressing system
*addresses will be assigned to all humans without collisions
-a typical human recipient will be able to correctly identify their own unique address under the new system
-a typical human recipient will be able to REMEMBER their own unique address
*some mail routing/delivery system will be implemented that is compatible with the new unique-human-ID addressing scheme.
and finally,
-enough people will be able to be convinced that replacing the old system (name, city address, state, country) with the new system (a 7-digit address) is a good idea.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Computer Science and Software Design Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Computer Science and Software Design Forum

All times are GMT -4. The time now is 2:06 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC