Skip to main content
. 2024 Feb 29;12:RP84141. doi: 10.7554/eLife.84141
Algorithm 3 Patrolling.
Parameters: gain γ, noise ϵ, habituation β, recovery time τ
Input: map synapses M
  hi1, for all point cells i                  starting sensitivity of point cell at node i
  sx                                                  begin patrolling at node x
  while patrolling do
    hshseβ                                           habituation of point cell s
    hi1(1hi)e1/τ, for all i                    resensitization of all point cells
    for all nodes j that neighbor s do                    agent tests available options
      ui(j)δi,jhj for all i                      point cell output with agent at node j
      v(j)(1γ1M)1u(j)                                          map output
      p(j)1Zivi(j)+η      sum of map output with noise, normalized so max = 1
    end for
    sargmaxjp(j)             move to neighbor node with the highest patrol signal
  end while