import numpy as np
import matplotlib.pyplot as plt
xy = {}
# Iterative logistic map function
def iterative(x, a):
return a * x * (1 - x)
# Loop over values of 'a' from 1 to 4 with small step size
for a in np.arange(1, 4, 0.0001):
# Start with a random initial condition
temp = iterative(np.random.default_rng().random(), a)
# Iterate 100 times to reach the steady state
for i in range(100):
temp = iterative(temp, a)
# Store the final value for bifurcation diagram
xy[a] = temp
# Plot the bifurcation diagram
plt.plot(xy.keys(), xy.values(), linestyle='None', marker='o', markersize=0.2)
plt.show()Linux Content#
Windows Content#
https://icpcarchive.github.io/
https://github.com/BedirT/ACM-ICPC-Preparation/tree/master/Week01
Hugo Quiz#
---
primary_color: orange
secondary_color: lightgray
text_color: black
shuffle_questions: false
---
## The sound of dog
---
shuffle_answers: false
---
What do dogs sound like?
> Some hint
- [ ] yes
- [ ] no
- [ ] `self.sound = "meow"`
- [x] wuff
## Put the [days](https://en.wikipedia.org/wiki/Day) in order!
> Monday is the *first* day of the week.
1. Monday
2. Tuesday
3. Wednesday
4. Friday
5. Saturday