• Keine Ergebnisse gefunden

Korrektheit von Bitonic Sort

N/A
N/A
Protected

Academic year: 2021

Aktie "Korrektheit von Bitonic Sort"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Angewandte Softwareverifikation mit einem interaktiven Theorembeweiser Version 28. M¨arz 2011

Korrektheit von Bitonic Sort

Bitonic Sort ist ein etwas unbekannterer Sortieralgorithmus der Komplexit¨atO(nlog(n)2).

Das besondere an Bitonic Sort ist, dass die Anzahl zu vergleichenden Elemente un- abh¨angig von den Daten sind. Bitonic Sort l¨aßt sich deshalb in Hardware realisieren.

Siehehttp://www.iti.fh-flensburg.de/lang/algorithmen/sortieren/bitonic/bitonic.htm.

Aufgabe

1. Programmieren Sie Bitonic Sort f¨ur beliebig lange Felder in Pvs als rekursive Funk- tion.

2. Beweisen Sie die Korrektheit der Sortierfunction.

Detaillierte Hinweise

• Ein Feld der L¨ange n kann man gut als Funktion [below(n)→nat] darstellen.

Referenzen

ÄHNLICHE DOKUMENTE

The user should then either let the CASORT continue if he does not need the information that was truncated, or he should restart the CASORT and give a

parameter affects whether the output file is space compressed.. This is the first sort key specification. If no key is specified, FASTSORT will assume the entire

En vous aidant du gabarit, tracer les coutours du poussin sur une carte forte jaune, puis découper la forme à l'aide d'une paire de ciseaux..7. Voilà la vidéo pour apprendre

(If the user specified an output_file exit procedure, then the status code data_seq_error is returned to that exit procedure; see the sort_$return entry below.)

Control cards supply the Sort-7 Timing program with a description of the Sort-7 program, the object ma- chine, and the file(s) to be sorted.. Two control cards are

Space-filling curve: mapping from unit square to unit interval Z-order: map quadrants recursively in order NW, NE, SW, SE.

In this chapter the algorithm is described that draws an upward planar graph by using the algorithm of Gronemann [Gro15] on the given graph and on its flipped graph. This idea is

Bitonic Sort Bemerkung ▶ Das Vergleichsnetzwerk Nn partioniert also zwei 0-1 Folgen so, dass alle Elemente in der linken Hälfte ≤ den entsprechenden Elementen in der rechten