1: \begin{displaymath}
2: \setlength{\arrayrulewidth}{0.4mm}
3: \begin{tabular}{p{8.5cm}}
4: \hline
5: $\! \mathbf{Algorithm \ 1}$ Tensor Alignment \\
6: \hline
7: $\mathbf{Input}$: tensor set $\mathcal{X}_{\mathscr{D}}$ in both domains, regularization parameter $\lambda$ and dim of cores $\{ J_{1},\dots,J_{M} \}$ \\
8: $\mathbf{Output}$: core tensor set $\mathcal{G}_{\mathscr{D}}$ in both domains, projection matrices $\mathfrak{U}$ \\
9: 1: Compute two graph matrice $\mathbf{W}_{\mathscr{D}}$;\\
10: 2: Initialize $\mathfrak{U}$ using Tucker decomposition;\\
11: 3: $\mathbf{While}$ optimization in (5) does not converge $\mathbf{do}$\\
12: 4: \ \ \ \ \ update $\mathcal{G}_{\mathscr{D}}$ by solving (13); \\
13: 5: \ \ \ \ \ update $\mathfrak{U}$ by alternatively solving (15); \\
14: 6: $\mathbf{Check}$ the convergence of (5);\\
15: 7: $\mathbf{Return}$ $\mathcal{G}_{\mathscr{D}}$ and $\mathfrak{U}$.\\
16: \hline
17: \end{tabular}
18: \end{displaymath}
19: