_index.org

support

Last edited: August 8, 2025

surjectivity

Last edited: August 8, 2025

A function \(T: V\to W\) is surjective if its range equals its codomain \(W\). “onto”

“For any possible output, \(w \in W\) for \(T \in \mathcal{L}(V,W)\), there is at LEAST one input \(T\) that maps \(Tv \to w\). "

\begin{equation} \forall w \in W, \exists v \in V:Tv=W \end{equation}

map to bigger space is not surjective

See map to bigger space is not surjective

syscalls

Last edited: August 8, 2025

syscalls are public functions that allow user land operations to access system-level services (such as reading a sector) which otherwise is locked in kernel mode because they require special privileges.

These functions are called completely isolated to another function: 1) private stack frame 2) private memory, etc.

open, close, read, write

kernel mode

kernel mode allows superuser function access such as reading sectors, etc. which would be dangerous if public.

file

open

int open(const char *pathname, int flags, mode_t mode);

Flags are a bitwise OR operations: you have to open with O_RDONLY (read only), O_WRONLY (write only), or O_RDWR (both read and write). This returns \(-1\) if the reading fails.

System Modeling

Last edited: August 8, 2025

Goal: model systems such that we can simulate them for off line validation.

Procedure for Building Models

  1. select a model class
  2. select the parameters for the model class
  3. validate the model

System Specification

Last edited: August 8, 2025

Metric

Sometimes we can just get a specification easily from just a metric, like (“the aircraft can’t be more than 50 meters apart”)

value at risk

see value at risk

composite metrics

weighted sum method

depends on how you care about each value, perform weighted sum and optimizes over a single metric \(\sum_{i=1}^{n} w_{i}f_{i}\qty(\tau) = w^{T}f\qty(\tau)\)

But, coming up with the weights is a bit hard! So we get them by asking pairwise questions with Preference Elicitation