concepts.benchmark.algorithm_env.quickaccess.get_sort_env#

get_sort_env(n, exclude_self=True)[source]#

Get a sorting environment with n elements.

Parameters:
  • n (int) – number of elements.

  • exclude_self (bool) – whether to exclude swap(i, i) actions.

Returns:

the sorting environment.

Return type:

RLEnvBase