Compare commits

..

6 Commits

Author SHA1 Message Date
Jan Meyer
a9dc077e73 chore: update OOP 2026-05-18 22:11:28 +02:00
Jan Meyer
35d545c527 vault backup: 2026-04-28 14:27:40 2026-04-28 14:27:40 +02:00
Jan Meyer
4bee68e6c4 vault backup: 2026-04-28 13:50:38 2026-04-28 13:50:38 +02:00
Jan Meyer
02fb38fdda vault backup: 2026-04-28 10:14:29 2026-04-28 10:14:29 +02:00
Jan Meyer
88a52d6bfc vault backup: 2026-04-28 10:06:25 2026-04-28 10:06:26 +02:00
Jan Meyer
0e99eb925b vault backup: 2026-04-28 10:01:01 2026-04-28 10:01:01 +02:00
18 changed files with 69 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
---
created: 2026-04-28 14:25
course:
topic:
related:
type: lecture
status: 🔴
tags:
- university
---
## 📌 Summary
> [!abstract]
>
---
## 📝 Content

View File

@@ -0,0 +1,18 @@
---
created: 2026-04-28 10:02
course:
topic:
related:
type: lecture
status: 🔴
tags:
- university
---
## 📌 Summary
> [!abstract]
>
---
## 📝 Content

View File

@@ -0,0 +1,18 @@
---
created: 2026-04-28 10:02
course:
topic:
related:
type: lecture
status: 🔴
tags:
- university
---
## 📌 Summary
> [!abstract]
>
---
## 📝 Content

View File

@@ -1,6 +1,6 @@
## Asymptotic Equivalence Classes (Big-O)
The equivalence relation definition given in the task is asking you to find functions that grow at the exact same rate (also known as Big-Theta $\Theta$):
The equivalence relation definition given in the task is asking you to find functions that grow at the exact same rate (also known as Big-Theta $Theta$):
$f asymp g <==> f in O(g) and g in O(f)$
@@ -29,8 +29,7 @@ Result is the last $"Remainder"$ that is not $0$.
**Goal:** find a $x$ and $y$ so that $"Divident" * x + "Divisor" * y = gcd("Dividend", "Divisor")$
1. **Rewrite Euclid (above) equations** to solve for remainder ($"Remainder" = "Old Remainder" - "Dividend" * "Divisor"$)
2. **Substitute remainders** -> $$
2. **Substitute remainders** ->
## Inclusion-Exclusion Principle
Principle that dictates that when combining / overlapping sets, you have to make sure to not include elements that occur in multiple sets multiple times.
@@ -54,6 +53,7 @@ $$
& 4^10 = 1,048,576 \
& => 3 "numbers that are both" x^2 "and" x^5 "exist"
$$
#### Final calculation:
Formula: $"Elements that are" x^2 + "Elements that are" x^5 - "Elements that are both"$
$==> 1,000 + 15 - 3 = 1,012$

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,6 +1,5 @@
#!/bin/bash
# Check if a filename was provided
if [ -z "$1" ]; then
echo "Usage: $0 <filename>"
exit 1
@@ -8,29 +7,28 @@ fi
TARGET="$1"
# Check if the file actually exists
if [ ! -f "$TARGET" ]; then
echo "Error: File '$TARGET' not found."
exit 1
fi
# Get creation time (%W).
# Note: Returns 0 or '-' if the filesystem doesn't support birth time.
# Extract just the filename (e.g., "Lecture_1.pdf")
# and the directory path (e.g., ".")
FILENAME=$(basename "$TARGET")
DIRNAME=$(dirname "$TARGET")
BTIME=$(stat -c %W "$TARGET")
# Fallback to last modification time (%Y) if birth time is unavailable
if [ "$BTIME" -eq 0 ] || [ "$BTIME" == "-" ]; then
BTIME=$(stat -c %Y "$TARGET")
fi
# Calculate the minute-based timestamp (equivalent to Math.floor(ms / 60000))
# Since stat returns seconds, we divide by 60.
FORMATTED_DATE=$(( BTIME / 60 ))
# Define the new name
NEW_NAME="${FORMATTED_DATE} - ${TARGET}"
# Construct the new name using ONLY the filename,
# then prepend the original directory path
NEW_NAME="${DIRNAME}/${FORMATTED_DATE} - ${FILENAME}"
# Perform the rename
mv "$TARGET" "$NEW_NAME"
echo "Renamed: '$TARGET' -> '$NEW_NAME'"

3
Untitled 1.base Normal file
View File

@@ -0,0 +1,3 @@
views:
- type: table
name: Table