semvec/pypi-packages huggingface dataset:
Incidence-Matrix 0.0.0
Incidence Matrix of absolutely all Sorting Algorithms
Requires Python: >=3.6

Incidence Matrix of absolutelly all Sorting Algorithms

```Python
from random import randint

if __name__ == "__main__":

    n = 10
    N = 30
    a = [randint(0, N) for i in range(0, n)]
    print(a)

    for i in range(n):
        pos = 0
        print(f"{a[i]:3} : ", end='', flush=True)
        for j in range(n):
            state=int(a[i] >= a[j])
            pos = pos + state
            print(f"{state:3}", end='', flush=True)
        print(f" : {pos:3}")
```

Output sample

```Python
me@amadeus:~/Templates$ python3 Aa
[30, 12, 15, 19, 25, 10, 25, 26, 2, 28]
 30 :   1  1  1  1  1  1  1  1  1  1 :  10
 12 :   0  1  0  0  0  1  0  0  1  0 :   3
 15 :   0  1  1  0  0  1  0  0  1  0 :   4
 19 :   0  1  1  1  0  1  0  0  1  0 :   5
 25 :   0  1  1  1  1  1  1  0  1  0 :   7
 10 :   0  0  0  0  0  1  0  0  1  0 :   2
 25 :   0  1  1  1  1  1  1  0  1  0 :   7
 26 :   0  1  1  1  1  1  1  1  1  0 :   8
  2 :   0  0  0  0  0  0  0  0  1  0 :   1
 28 :   0  1  1  1  1  1  1  1  1  1 :   9
me@amadeus:~/Templates$ 
```