CS Notation
25. Common symbols used in algorithms
| Symbol | Common meaning |
|---|---|
| Input size | |
| Count, parameter, or iteration number | |
| Indices | |
| Running time | |
| Space consumption | |
| Graph | |
| Weight of edge | |
| Distance to vertex | |
| Parent/predecessor of | |
| Infinity or unreachable initial distance | |
| Undefined, false, failure, or bottom value | |
| True or top value | |
| Empty string or a small positive value | |
| Parameter, eigenvalue, or anonymous function | |
| Difference, transition function, or small change | |
| Larger change, discriminant, or maximum degree | |
| Mean or parameter | |
| Standard deviation or alphabet | |
| Alphabet or named set |
Note
Symbols are overloaded. Their meaning comes from their definition in the paper.
26. Formal-language notation
| Notation | Meaning |
|---|---|
| Alphabet | |
| Empty string | |
| All finite strings over | |
| All nonempty finite strings | |
| $ | w |
| Concatenation of strings | |
| Language over alphabet | |
| String belongs to language | |
| Kleene closure | |
| Concatenation of two languages | |
| Union of languages |
Example:
27. Type-theory and programming-language notation
| Notation | Meaning |
|---|---|
| Expression has type | |
| Under environment , has type | |
| Environment extended with variable of type | |
| reduces/evaluates one step to | |
| Zero or more evaluation steps | |
| Anonymous function taking and returning | |
| Function type | |
| Product/pair type | |
| Polymorphic type |
Inference rule
Read:
If the statements above the line are true, then the statement below the line follows.
- top: premises
- bottom: conclusion