Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 1 fuera de 7 páginas
Resumen

Summary Modelling Computing Systems Hoofdstuk 6 Faron Moller & Georg Struth

Document preview thumbnail
Vista previa 1 fuera de 7 páginas

Logic for Computer Science / Logica voor computertechnolgie hoofdstuk 6. 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.

Vista previa del contenido

Hoofdstuk 6:

A function f from a set A to a set B is an assignment of exactly one element of B to each element of
A. More generally, we write f : A → B to mean f ∈ A → B.

Example:

- Suppose I’m teaching a class with 5 students, S = {Alice, Bob, Carroll, David, Eve }. At the end
of the class, I need to assign marks from 1 to 10 to each student. More precisely, this
determines a function

We write marks(x) = y when a student x is assigned the mark y by the marks function. Crucially, each
student is assigned a single grade. This rules out situations such as: marks(Alice) = 7 and
marks(Alice) = 10. Furthermore, the marks function should assign a mark to every student. That is,
for each student s in S, there is a mark m in {1..10} such that marks(s) = m. A function A → B must
map every element a ∈ A to a single element b ∈ B. In other words f maps each element a of A to an
element b = f(a), which we will also denote by f : a -> b. So there won’t be a output where 2 numbers
are associated with it.




It is possible for a function f : A -> B to assign the same value from B to two different values of A. So
marks(Bob) = 8 and marks(Carroll) = 8.

Given a function f : A → B we introduce the following terminology:

- We call the set A the domain of the function;
- The set B is the codomain of the function;
- If f(a) = b we refer to a as an argument of the function f, and to b as the value of the
function f on argument a.
- If a function takes more than one argument, f : A1 × A2 × A3 … An we refer to the number of
arguments as the arity. Example: f: A x B x C has 3 numbers of arguments
- A function with two arguments is sometimes called a binary function; often we use infix
notation, writing x + y rather than +(x,y).
- The range of f is the subset of B that f can produce: range(f) = {f(a)|a ∈ A}

Libro relacionado
 image
Faron Moller, Georg Struth Modelling Computing Systems
Editorial: Desconocido ISBN: 9781848003217 Edición: 2013

Información del documento

Estudio
¿Un libro?
No
¿Qué capítulos están resumidos?
Hoofdstuk 6
Subido en
9 de diciembre de 2020
Número de páginas
7
Escrito en
2020/2021
Tipo
Resumen
$4.19

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
luukvaa
4.0
(285)
Vendido
763
Seguidores
589
Artículos
12
Última venta
7 meses hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes