Famously, the alternating sign matrix theorem gives a product formula for the number $a(n)$ of ASMs of size $n$. There are multiple proofs of this formula, all somewhat involved. My question is about a closely related but weaker problem:
Question: Is there a polynomial time algorithm which inputs an ASM $M$ of size $n$ and outputs an integer $k\in \{1,\ldots,a(n)\}$, such that the map $M\to k$ is bijective?
Note that the algorithm can use the product formula for the number of ASMs or any of its many variations and generalizations, so I am not asking for a new proof.
Example: To emphasize the difference, note that there is a simple polynomial time algorithm which takes a partition $\lambda$ of $n$ and outputs an integer $k\in \{1,\ldots,p(n)\}$. Namely, precompute all integers $p(n,m)$ of the numbers of partitions of $n$ with largest part $m$. This is easy to do using formulas $p(n,m) = p(n-m,1) + \ldots + p(n-m,m)$. Depending on $\lambda_1\in \{1,2,\ldots\}$, split the interval intro smaller intervals $\{1,\ldots,p(n,1)\}$, $\{p(n,1)+1,\ldots,p(n,1)+p(n,2)\}$, etc. Proceed recursively.
Note: One can show that such algorithm exists for the MacMahon box formula but the construction is somewhat technical, at least the one I found.