•
•
•
•
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
![]() |
•
•
Join Date: Sep 2004
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
•
•
Join Date: Jun 2004
Location: Marin, CA, USA
Posts: 434
Reputation:
Rep Power: 5
Solved Threads: 10
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.
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.
•
•
Join Date: Oct 2004
Location: Bellingham, WA
Posts: 12
Reputation:
Rep Power: 5
Solved Threads: 0
•
•
•
•
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.
![]() |
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp blog business software computer dell design developer development erp systems experiment firefox india intel internet it java linux media microsoft mmorpg msdn networking news office online open open-source operating programming project management rss science security software software selection source sql sun super system technology technology evaluation vista warez web wiki windows xp
- My HJT log - desktop problem (Viruses, Spyware and other Nasties)
- hjt log with problem (Viruses, Spyware and other Nasties)
- What Should I Do Next? (Viruses, Spyware and other Nasties)
- another hjt log for jkl (Viruses, Spyware and other Nasties)
- "About:blank" problem (Viruses, Spyware and other Nasties)
- MSN Messenger 6 can't view message logs (Windows NT / 2000 / XP / 2003)
- Win 2K Pro Log in problem (Windows NT / 2000 / XP / 2003)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: Programming .exe files directly
- Next Thread: Simple Programming Errors


Linear Mode