#6 BITS 'N' BYTES IN STRIPES


Which year is coded in the information below?

0 - 0 - 1 - 0 - 0 - 0 - 1 - 0 - 1 - 1 - 0 - 0 - 1 - 0
0 - 0 - 0 - 1 - 0 - 1 - 0 - 0 - 0 - 0 - 1 - 1 - 0


Correct answer: 1967

Explanation:

The solution for this one is pretty hard to obtain. Well, the most important hint is in the heading: "BITS 'N' BYTES IN STRIPES". However, the term "IN BARS" would be more precise since the information above is a barcode.

There are several different types of barcodes, but the total number of bytes (27) and the information that we are looking for a year (usually 4 digits) will lead you to the "2/5 interleaved barcode" which is one of the most common barcodes used today.

The first line of the code is the information for the width of the black bars (0 = narrow bar, 1 = wide bar) and the second line the information for the white bars which are placed between the black bars.

If you "translate" the code you will get the barcode shown below.


Now you only need to go to the next supermarket and scan in that barcode to get the answer ;-)
If they don't give you the scanner you probably need the information how the numbers are coded in the bars. There are several sources on the internet, here is one of it:

2/5 interleaved barcode

One very common wrong solution is to convert both lines from binary and subtract these two numbers. That's a poor solution because it does't have to do anything with 'stripes', there is no hint to subtract numbers (you also could add these numbers or even multiply), there is no need to have the zeros at the start (hey, they have a meaning) and writing the bytes of the second line between the bytes of the first line is also not needed. No points for this kind of solution.


Back to Problem Overview

Back to Main Page


© Andreas Rottler


visitors:
month:
today:
online:
since 12.11.2002