From 8f97cb08aee5be3c85bb130ce0613bb348c71a9b Mon Sep 17 00:00:00 2001 From: Fredrik Robertsen Date: Tue, 14 Apr 2026 10:22:06 +0200 Subject: [PATCH] add readme --- README.md | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..439f5e1 --- /dev/null +++ b/README.md @@ -0,0 +1,61 @@ +# magic tricks revealed + +## assignment 1 + +all done on paper, old school + +## assignment 2 + +### task 1 + +written in [typst](https://typst.app/). + +made a 2-column research-style document, but with a [dracula color theme](https://draculatheme.com/) + +my use of dracula is inspired by the [ride apl](https://github.com/dyalog/ride) editor + +also learned to use the [algorithmic](https://typst.app/universe/package/algorithmic/) package for writing pseudocode + +### task 2 + +back to pen and paper + +### task 3 & 4 + +whiteboard at [PVV](https://www.pvv.ntnu.no) + +task 4 was particularly inspired by [uiua](https://www.uiua.org) `under`, which is similar to linear algebra diagonalization $P M P^-1$. it is also similar to general algorithmic reduction, where solving `A` to obtain `B` is difficult, then reducing `A` to `a`, solving `a` to obtain `b`, then doing the inverse transformation that got you to `a` on `b` to obtain the wanted solution `B`. i.e. transform from co-domain to domain via duality-magic that may or may not work out, solve it there and recover the answer. + +## assignment 3 + +### task 1 + +implemented the push-relabel algorithm in [odin](https://www.odin-lang.org) to gain a better understanding of it and also learn more odin. then just analyze the numerical patterns that show up. brute force, yay! + +### task 2 (miracle-submission) + +i injured my dominant right hand (it's good again now) so i wrote this assignment mirrored with my left hand. why? for fun, and i have practiced writing mirrored with my left hand before. it is significantly easier than writing the normal way with my left hand, in my opinion. i included a mirrored image for readability, which indeed made it easier to spot the inequality error i figured i had made. + +i heard leonardo davinci took all his notes mirrored with his left hand, which inspired me to learn this fun skill once upon a time, and now it just happened to come in *hand*. + +### task 3 + +had no more motivation so i just looked up the solution on wikipedia and interpreted it + +## assignment 4 + +i originally didn't intend to complete this one, but here we are + +### task 1 + +did a little bit of it after the lecture, but didn't finish that + +### task 2 + +what's the next step after all these weird handins? a flow chart of course + +made in [excalidraw](https://www.excalidraw.com) + +### task 3 + +haven't learned the necessary curriculum for this yet, and who knows if i will