Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Samenvatting

Summary Modelling Computing Systems Hoofdstuk 8 Faron Moller & Georg Struth

Beoordeling
3,0
(1)
Verkocht
-
Pagina's
7
Geüpload op
22-12-2020
Geschreven in
2020/2021

Logic for Computer Science / Logica voor computertechnolgie hoofdstuk 8. Samenvatting van het boek Modelling Computing Systems geschreven door Faron Moller en Georg Struth. Samenvatting geschreven in het Engels. Aan de hand van voorbeelden en plaatjes wordt de stof en theorie verduidelijkt. Gegeven op Universiteit Utrecht.

Meer zien Lees minder

Voorbeeld van de inhoud

Hoofdstuk 8:

We can define a finite set by enumerating all its elements: People = {Alice, Bob, Carroll } We can
define a function on such a finite set by listing all possible cases: age(Alice) = 23 age(Bob) = 21
age(Carroll) = 19 We can define a relation by listing all the relevant pairs: Likes = { (Alice, IceCream),
(Alice, Toffee), (Carroll, Toffee) }

But for infinite set we can define for example the natural numbers as: N = {0, 1, 2, …}. We (as
humans) can understand this definition perfectly well - but it relies on ‘guessing’ how to fill in the
dots. Because we as human scan guess that after the 2, probably stands a 3, but we do not know this
for sure. Criticism on these notations:

− How could we expect a computer to understand such a definition?
− How can we be sure that the reader ‘guesses’ the right definition? Maybe I meant to define
the set of solutions to the equation x × (x − 1) × (x − 2) = 0.
− The order of elements in a set is not important. Yet this definition implies that the elements
should be listed in some particular order.
− How can we determine whether a particular number is in the set or not? The definition
doesn’t give us an effective check.
− What about sets where the ‘next’ element is difficult to describe, like the set of all real
numbers or the set of all valid C# programs.



Many infinite sets are described using induction, the idea behind induction is to easily describe
infinite sets. Each inductive definition consists of three parts:

− The base case that establishes some objects are in the set. Says these are some elements of
the set
− The inductive case that determines the ways in which elements of the set can be assembled
to create new elements that are also in the set. Describe how to build up bigger elements
from existing elements.
− The extremal clause that asserts that no other elements are in the set unless its
membership can be established from the first two clauses. This is all there is, there are no
other things living in the set.



We can give an inductive definition of the natural numbers (N) as follows:

− 0∈N
− for any n ∈ N, the number (n + 1) ∈ N.
− there are no other elements of N.

Using these clauses, we can show that 3 ∈ N but 4.5 ∈/ N. This inductive definition lets give a finite
description of an infinite set.

, Example of a power set:

Given a set A we can define the powerset of A, written P(A) as follows:

− ∅ ∈ P(A)
− if a ∈ A and X ∈ P(A) then {a} ∪ X ∈ P(A)
− there are no other elements of P(A)

Let B = {1, 2, 3} then from these rules we can conclude that:

− ∅ ∈ P(B)
− {1} ∪ ∅ ∈ P(B) – or more simply {1} ∈ P(B). Similarly, {2} ∈ P(B), {3} ∈ P(B)
− Repeating the second rule also gives us that, {1, 2} ∈ P(B), {1, 3} ∈ P(B), {2, 3} ∈ P(B)
− Finally, {1, 2, 3} ∈ P(B).



− 0∈N
− for any n ∈ N, the number (s(n)) ∈ N. Here we thing of s as being a unary function symbol
that stands for ‘successor’.
− there are no other elements of N.

We consider the digit 4 to be a shorthand for s(s(s(s(0)))). The Arabic numerals are simply a
shorthand for repeatedly adding one using the successor operation.

Example of a string instead of int:

Induction definition:

− the empty string, which we’ll denote using the symbol ε, is a string;
− if c is one of the 256 ASCII characters and s is a string, we can construct a longer string by
writing cs (that is, the character c followed by the string s).

There is very little that is specific to ASCII in this definition! Given any set A, we can construct the
words of characters over some set A, often written A ⋆ as follows:

− ε∈A⋆
− for all a ∈ A an w ∈ A ⋆ , aw ∈ A ⋆



A⋆ To denote the set of all words over A
A+ To denote the set of non-empty words over A.
That is, the only word of length 0.


Let’s try to construct some example inhabitants of the set {0, 1} ⋆:

− ε ∈ {0, 1} ⋆
− 0 ∈ {0, 1} ⋆ and 1 ∈ {0, 1} ⋆
− 00, 01, 10, 11 are all also in {0, 1} ⋆ .
− As are 000, 001, 010, 100, …

Documentinformatie

Heel boek samengevat?
Nee
Wat is er van het boek samengevat?
Hoofdstuk 8
Geüpload op
22 december 2020
Aantal pagina's
7
Geschreven in
2020/2021
Type
SAMENVATTING

Onderwerpen

€3,49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Beoordelingen van geverifieerde kopers

Alle reviews worden weergegeven
5 jaar geleden

3,0

1 beoordelingen

5
0
4
0
3
1
2
0
1
0
Betrouwbare reviews op Stuvia

Alle beoordelingen zijn geschreven door echte Stuvia-gebruikers na geverifieerde aankopen.

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
luukvaa Universiteit Utrecht
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
763
Lid sinds
7 jaar
Aantal volgers
589
Documenten
12
Laatst verkocht
3 maanden geleden

Welkom op mijn stuvia pagina! Kijk gerust rond welke samenvattingen op dit moment op mijn pagina staan. Gedurende elk jaar zullen er weer nieuwe samenvattingen verschijnen, dus neem af en toe een kijkje en klik op het knopje \'\'volgen\". Succes met studeren!

4,0

285 beoordelingen

5
108
4
103
3
58
2
5
1
11

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen