↓ 1 callersFunctionmincutThis array is filled by BFS and to store path >>> mincut(test_graph, source=0, sink=5) [(1, 3), (4, 3), (4, 5)]
networking_flow/minimum_cut.py:30
↓ 1 callersFunctionmodular_exponential >>> modular_exponential(5, 0, 10) 1 >>> modular_exponential(2, 8, 7) 4 >>> modular_exponential(3, -2, 9) -1
maths/modular_exponential.py:11
↓ 1 callersFunctionmove_x Simulates gravity in a specific column. >>> move_x([['-', 'A'], ['-', '-'], ['-', 'C']], 1, 2) [['-', '-'], ['-', 'A'], ['-', 'C']]
matrix/matrix_based_game.py:176
↓ 1 callersFunctionmove_y Shifts all columns leftward when an entire column becomes empty. >>> move_y([['-', 'A'], ['-', '-'], ['-', 'C']], 2) [['A', '-'], ['-',
matrix/matrix_based_game.py:196
↓ 1 callersMethodmulti_level_feedback_queue MLFQ(Multi Level Feedback Queue) >>> P1 = Process("P1", 0, 53) >>> P2 = Process("P2", 0, 17) >>> P3 = Process("P3", 0
scheduling/multi_level_feedback_queue.py:243
↓ 1 callersFunctionnew_generation Generates the next generation for a given state of Conway's Game of Life. >>> new_generation(BLINKER) [[0, 0, 0], [1, 1, 1], [0, 0, 0]]
cellular_automata/conways_game_of_life.py:26
↓ 1 callersFunctionodd_even_transposition >>> odd_even_transposition([5, 4, 3, 2, 1]) [1, 2, 3, 4, 5] >>> odd_even_transposition([13, 11, 18, 0, -1]) [-1, 0, 11, 13, 18]
sorts/odd_even_transposition_single_threaded.py:11
↓ 1 callersFunctionparse_moves >>> parse_moves("0 1, 1 1") [(0, 1), (1, 1)] >>> parse_moves("0 1, 1 1, 2") Traceback (most recent call last): ... ValueE
matrix/matrix_based_game.py:105
↓ 1 callersFunctionpartition >>> array = [4, 2, 6, 8, 1, 7, 8, 22, 14, 56, 27, 79, 23, 45, 14, 12] >>> partition(array, 0, len(array), 12) 8 >>> array = [21, 15,
sorts/intro_sort.py:108
↓ 1 callersFunctionpermute_backtrack Return all permutations of the given list. >>> permute_backtrack([1, 2, 3]) [[1, 2, 3], [1, 3, 2], [2, 1, 3], [2, 3, 1], [3, 2, 1], [3,
data_structures/arrays/permutations.py:21
↓ 1 callersFunctionpigeonhole_sort >>> a = [8, 3, 2, 7, 4, 6, 8] >>> b = sorted(a) # a nondestructive sort >>> pigeonhole_sort(a) # a destructive sort >>> a == b
sorts/pigeonhole_sort.py:6
↓ 1 callersMethodpivotPivots on value on the intersection of pivot row and column. >>> Tableau(np.array([[-2,-3,0,0,0],[1,3,1,0,4],[3,1,0,1,4.]]), ... 2, 2
linear_programming/simplex.py:149
↓ 1 callersFunctionplace_word Place a word at the given position. >>> puzzle = [ ... ['', '', '', ''], ... ['', '', '', ''], ... ['', '', '', ''],
backtracking/crossword_puzzle_solver.py:36
↓ 1 callersFunctionplay Processes a single move, updating the matrix and calculating the score. >>> play([['R', 'G'], ['R', 'G']], 0, 0, 2) ([['G', '-'], ['G',
matrix/matrix_based_game.py:220