Skip to content

Instantly share code, notes, and snippets.

View QuentinWach's full-sized avatar
🛠️

Quentin Wach QuentinWach

🛠️
View GitHub Profile
# Quentin Wach, AVL Tree
class Node:
def __init__(self, key, leftChild=None, rightChild=None, parent=None):
self.key = key
self.leftChild = leftChild
self.rightChild = rightChild
self.parent = parent
self.height = 1
@QuentinWach
QuentinWach / run_2.py
Created May 15, 2020 17:55
(b) Random Walker
# Random Walker ThP4 14.Mai 2020
# Quentin Wach
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.ticker as ticker
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
rc('text', usetex=True)
import numpy as np
import math
@QuentinWach
QuentinWach / run.py
Created May 15, 2020 17:29
(a) Random Walker
# Random Walker ThP4 14.Mai 2020
# Quentin Wach
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.ticker as ticker
from matplotlib import rc
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
rc('text', usetex=True)
import numpy as np
import math
@QuentinWach
QuentinWach / covid.ipynb
Created April 13, 2020 02:17
"It's going to be just fine."
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.