Loading
      
  Sorry, something went wrong. Reload?
      Sorry, we cannot display this file.
      Sorry, this file is invalid so it cannot be displayed.
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """ | |
| In this file I generate a loop-erased random walk | |
| along with its associated loop-soup. | |
| """ | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| directions = [(1, 0), (-1, 0), (0, 1), (0, -1)] | |
| all_colors = [ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | """ | |
| This script creates a random graph and optimizes production for a certain roblox game. | |
| The game is encoded as a Hamiltonian and configurations are optimized | |
| using Glauber dynamics and parallel tempering. | |
| """ | |
| import numpy as np | |
| import numpy.random as npr | |
| import matplotlib.pyplot as plt | |
| from tqdm import tqdm | |
| from typing import List, Tuple, Callable |