# Algorithmcx and array representation

I'm using package algorithmcx and algpseudocode to describe an algorithm in a paper. Each function in the algorithm receive an array/list of numerical values, e.g. {x1, x2, ..., xn}.

\documentclass{article}
\usepackage{algorithm}
\usepackage{algorithmicx}
\usepackage{algpseudocode}

\begin{document}

\begin{algorithm}
\begin{algorithmic}[1]

\Statex
\Function{FUN\_NAME}{$\{x_i^j \,|\, i \in A, j \in B \}$}
....
\EndFunction%
\end{algorithmic}
\end{algorithm}

\end{document}

I don't know if the list of values/variables is represented in the right way.

I've got a look through the Web to see if there was such an accepted convention for representing an array, but I didn't find any example.

How can I represent them?

-
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – egreg Nov 26 '12 at 16:55
@egreg Well, I'm not running such error. I'm asking about convention on using a package. However, I will improve the question. Thanks – JeanValjean Nov 26 '12 at 16:58
We need just a minimal example for avoiding guessing at the needed packages and the algorithm you have in mind. It will be easier to give suggestions. – egreg Nov 26 '12 at 16:59