# Gebruikt lineair zoeken
def index_van_linair (element,lijst):
    index = 0
    while index < len(lijst) and lijst[index] < element:
        index += 1
    return index

# Gebruikt binair zoeken
def index_van_binair (element,lijst):
    links = 0
    rechts = len(lijst)
    while links < rechts:
        midden = (links + rechts) // 2
        if element <= lijst[midden]:
            rechts = midden
        else:
            links = midden + 1
    return links

# Lees postnummers-1.txt in en hou de lijst resultaat gesorteerd m.b.v. lineair zoeken.
# Meet en toon hoelang dit duurt.
resultaat = []

# Lees postnummers-1.txt in en hou de lijst resultaat gesorteerd m.b.v. binair zoeken.
# Meet en toon hoelang dit duurt.
resultaat = []
