¿Cómo sangrar/alinear una línea en el algoritmo en Beamer?

¿Cómo sangrar/alinear una línea en el algoritmo en Beamer?

La producción esperada es

ingrese la descripción de la imagen aquí

Y mi salida es

ingrese la descripción de la imagen aquí

En mi salida Brancingestá en la posición correcta. Los primeros 3 elementos deben moverse hacia la derecha desde Brancingy Boundingdeben moverse hacia la derecha para que queden alineados con Brancing. Y los segundos 3 elementos deben moverse hacia la derecha desde la nueva posición desde Bounding.
Si se confunde coincide con lo esperado.
MWE

\documentclass{beamer}
\usetheme{Madrid}
\usepackage{algpseudocode}
\usefonttheme[onlymath]{serif}
%this code is from: https://tex.stackexchange.com/a/353165/101651
\algnewcommand\algorithmicinput{\textbf{Input:}}
\algnewcommand\algorithmicoutput{\textbf{Output:}}
\algnewcommand\algorithmicinitialization{\textbf{Initialize:}}
\algnewcommand\Input{\item[\algorithmicinput]}%
\algnewcommand\Output{\item[\algorithmicoutput]}%
\algnewcommand\Initialize{\item[\algorithmicinitialization]}%

\begin{document}
\begin{frame}[fragile]
    \begin{block}{BnB algorithm for QWSRM problem}
        \begin{algorithmic}
      \Input $\mathcal{Q}_{\text{init}}, \mathcal{A}, \text{and} \mathcal{f} \text{(c)}.$
      \Initialize Obtain $c_{i} \text{ by solving } \frac{\delta f(c)}{\delta c_{i}}=0, \text{ for } i\in\mathcal{N}.\text{ Set } k = 1, \mathcal{B} = \mathcal{Q}_{init},u_{1}=\gamma_{ub}(\mathcal{Q}_{init}) \text{ and } l_{1} = \gamma_{lb}(\mathcal{Q}_{init}).$\\
      Check the feasibility of problem (17) with given
      \If{feasible}
      \State $c_{0} = \widetilde{c};$
      \Else
      \While{$u_{k} - l_{k} > \epsilon$}
      \State Branching:
      \begin{itemize}
        \item Set $\mathcal{Q}_{k} = \mathcal{Q}, \text{ where } \mathcal{Q} \text{ satisfies } \gamma_{lb}(\mathcal{Q}) = l_{k}.$
          \item Split $\mathcal{Q} \text{ into } \mathcal{Q}_{\rm{I}} \text{ and } \mathcal{Q}_{\rm{II}}, \text{ along one of its longest edges.}$
          \item Update $\mathcal{B}_{k+1} = (\mathcal{B}_{k}\setminus{\{\mathcal{Q}_{k}\}}) \bigcup (\mathcal{Q}_{\rm{I}}, \mathcal{Q}_{\rm{II}}).$
      \end{itemize}
      Bounding:
      \begin{itemize}
        \item Update $u_{k+1} = \min_{\mathcal{Q}\in\mathcal{B}_{k+1}}{\{\gamma_{ub}(\mathcal{Q})}\}$
        \item Update $l_{k+1} = \min_{\mathcal{Q}\in\mathcal{B}_{k+1}}{\{\gamma_{lb}(\mathcal{Q})}\}$
      \end{itemize}
      \EndWhile\\
      Set $c_{0} = c_{min};$
      \EndIf
      \Output $c_{0}.$
        \end{algorithmic}
    \end{block}
\end{frame}
\end{document}

Respuesta1

Para alinear las viñetas con "Bifurcación", puede insertar las viñetas manualmente sin un entorno detallado:

\documentclass{beamer}
\usetheme{Madrid}
\usepackage{algpseudocode}
\usefonttheme[onlymath]{serif}

\begin{document}

\begin{frame}[fragile]
    \begin{block}{BnB algorithm for QWSRM problem}
        \begin{algorithmic}
            \State Branching:
            \State\quad\usebeamertemplate{itemize item} Set $\mathcal{Q}$...
            \State\quad\usebeamertemplate{itemize item} Split $\mathcal{Q}$...
            \State Bounding:
            \State\quad\usebeamertemplate{itemize item} Update $u_{k+1}$
      \end{algorithmic}
  \end{block}
\end{frame}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada