given 10 mega byte storage, how many UPC bar code you can save in it?

given 10 mega byte storage, how many UPC bar code you can save in it?
given 10 mega byte storage, how many UPC bar code you can save in it?

Best answer:

A UPC seems to have (had to look it up) 12 digits. The maximum number you can create with that is 999,999,999,999. The first power of two that’s not less than that is 1,099,511,627,776 = 2^40. That means you need 40 bits or 5 bytes to store a single UPC.

100 MB is 100 * 1,024 * 1,024 = 104,857,600 bytes, divided by 5 = 20,971,520 bar codes.

This is a lower limit; if there are sufficiently many combinations (within those 999,999,999,999 possible combinations) that are not used, you may be able to store more than 20,971,520 bar codes. Although in that case you may need to do some special encoding (before storing) and decoding (after retrieving).

Tags: , , , , , ,

Under Forum

Leave a Comment for given 10 mega byte storage, how many UPC bar code you can save in it?

You must be logged in to post a comment.

Trackback this post  |  Subscribe to the comments via RSS Feed


Categories