\section{Algorithms}
\label{app:appendix1}
\subsection{Rescale}
\input{algs/alg1}
\clearpage
\subsection{Straight-through Estimator}
\input{algs/alg2}
\input{algs/alg3}
\clearpage
\subsection{Adaptive Dynamic Sampler}
\input{algs/alg4}
\input{algs/alg5}
\clearpage

\subsection{End-to-end Adaptive Dynamic Subsampling and Reconstruction}
\input{algs/alg6}

\clearpage
