Skip to content

Commit 8b838de

Browse files
committed
#80 rename youngify_reversed to reversed_youngify
1 parent d1a5207 commit 8b838de

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/solutions/chapter6/problem3.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ def young_extract_min(Y: Matrix, m: int, n: int) -> float:
5050
return y
5151

5252

53-
def youngify_reversed(Y: Matrix, i: int, j: int) -> None:
53+
def reversed_youngify(Y: Matrix, i: int, j: int) -> None:
5454
"""Restores the Young tableau property violated by a single element. Moves the violating element upwards or
5555
leftwards in the matrix.
5656
5757
Implements:
58-
Youngify-Reversed
58+
Reversed-Youngify
5959
6060
Args:
6161
Y: The Young tableau.
@@ -69,7 +69,7 @@ def youngify_reversed(Y: Matrix, i: int, j: int) -> None:
6969
(i_, j_) = (i, j - 1)
7070
if (i_, j_) != (i, j):
7171
Y[i, j], Y[i_, j_] = Y[i_, j_], Y[i, j]
72-
youngify_reversed(Y, i_, j_)
72+
reversed_youngify(Y, i_, j_)
7373

7474

7575
def young_insert(Y: Matrix, m: int, n: int, k: float) -> None:
@@ -85,7 +85,7 @@ def young_insert(Y: Matrix, m: int, n: int, k: float) -> None:
8585
k: The element to insert into Y.
8686
"""
8787
Y[m, n] = k
88-
youngify_reversed(Y, m, n)
88+
reversed_youngify(Y, m, n)
8989

9090

9191
def young_sort(A: Array[float], n: int) -> None:

0 commit comments

Comments
 (0)