• Keine Ergebnisse gefunden

Klaus Madlener sheet 1 On this sheet we will look at the VDM specification method, introduced in the lecture

N/A
N/A
Protected

Academic year: 2021

Aktie "Klaus Madlener sheet 1 On this sheet we will look at the VDM specification method, introduced in the lecture"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

WS 2011-2012 19.10.2011 Exercises to the Lecture FSVT

Prof. Dr. Klaus Madlener sheet 1

On this sheet we will look at the VDM specification method, introduced in the lecture.

There is further information athttp://www.vdmportal.org/twiki/bin/view, especial- ly in the free book available there by Cliff Jones: Systematic Software Development using VDM.

Exercise 1:

Specify sorting functions for arrays of naturals with VDM. Specify in a purely functional manner, i.e. no state, and keep it as general as possible.

1. Sorting

2. Sorting methods based on swapping 3. Sorting by Insertion

4. Merge-Sort

Are there any correlations between your specifications? What could be interesting to prove given that your specifications are intermediate products of software development?

Exercise 2:

1. Model with VDM a bank with some ATMs. The bank offers creating and deleting accounts. An account has a number, a credit limit, and the current amount. An ATM supports incoming and outgoing payments and displaying the current amount of an account.

2. Extend the model by PIN-based authorization of all ATM operations.

Think about the same questions as in the previous exercise.

Delivery: until 26.10.2011,

by E-Mail to huechting@informatik.uni-kl.de

Referenzen

ÄHNLICHE DOKUMENTE

Try to find some of the literature mentioned on the lecture slides in the infor- matics library in building 36.. You may use the electronical catalog availabe

Let R X be the update rule of A in the state X as considered in consequence 3.10 on slide 59 of

[r]

Extend INTEGER by a function absolute with the properties of the absolute value function on Z.. Show that this is an enrichment

Be verbose, write down for at least 5 most general unificators how you determined them when looking for critical pairs.. Write down all critical pairs, you have

If you need more place than the reserved pages, please use the sheets of the other problems also and label these problem parts clearly.. • If you have used all of your solution

If the indirect object is a pronoun, this word order is more common.. Here are some other verbs that work the

Change the word order and change the indirect object into a pronoun. We sent an application form to