WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Algorithms in Latex | Loop and Break

Algorithms in Latex

The algorithm environment is used to write algorithms in latex. Include it by adding the \usepackage{algorithm} to your document’s preamble.

Example

\documentclass{article}
\usepackage{algorithmic}
\begin{document}
	\begin{algorithmic}
		\REQUIRE $n \geq 0 \vee x \neq 0$
		\ENSURE $y = x^n$
		\STATE $y \Leftarrow 1$
		\IF{$n < 0$}
		\STATE $X \Leftarrow 1 / x$
		\STATE $N \Leftarrow -n$
		\ELSE
		\STATE $X \Leftarrow x$
		\STATE $N \Leftarrow n$
		\ENDIF
		\WHILE{$N \neq 0$}
		\IF{$N$ is even}
		\STATE $X \Leftarrow X \times X$
		\STATE $N \Leftarrow N / 2$
		\ELSE[$N$ is odd]
		\STATE $y \Leftarrow y \times X$
		\STATE $N \Leftarrow N - 1$
		\ENDIF
		\ENDWHILE
	\end{algorithmic}
\end{document}

Output

latexAlgo

Share

You may also like...