1. \State  r e s u l t   ←   0 result \gets 0 result  0
  2. \If { l e f t   <   r i g h t left < right left < right}
  3. \State  m i d d l e   ←   ( l e f t   +   r i g h t )   /   2 middle \gets (left + right) / 2 middle  (left + right) / 2
  4. \State  r e s u l t   ←   r e s u l t   + result \gets result + result  result + \Call{MergerSort}{ A r r a y ,   l e f t ,   m i d d l e Array, left, middle Array, left, middle}
  5. \State  r e s u l t   ←   r e s u l t   + result \gets result + result  result + \Call{MergerSort}{ A r r a y ,   m i d d l e ,   r i g h t Array, middle, right Array, middle, right}
  6. \State  r e s u l t   ←   r e s u l t   + result \gets result + result  result + \Call{Merger}{ A r r a y , l e f t , m i d d l e , r i g h t Array,left,middle,right Array,left,middle,right}
  7. \EndIf
  8. \State \Return{ r e s u l t result result}
  9. \EndFunction
  10. \State
  11. \Function{Merger}{ A r r a y ,   l e f t ,   m i d d l e ,   r i g h t Array, left, middle, right Array, left, middle, right}
  12. \State  i ←   l e f t i\gets left i left
  13. \State  j ←   m i d d l e j\gets middle j middle
  14. \State  k ←   0 k\gets 0 k 0
  15. \State  r e s u l t   ←   0 result \gets 0 result  0
  16. \While{ i < m i d d l e i<middle i<middle \textbf{and}  j < r i g h t j<right j<right}
  17. \If{ A r r a y [ i ] < A r r a y [ j ] Array[i]<Array[j] Array[i]<Array[j]}
  18. \State  B [ k + + ] ←   A r r a y [ i + + ] B[k++]\gets Array[i++] B[k++] Array[i++]
  19. \Else
  20. \State  B [ k + + ]   ←   A r r a y [ j + + ] B[k++] \gets Array[j++] B[k++]  Array[j++]
  21. \State  r e s u l t   ←   r e s u l t   +   ( m i d d l e   −   i ) result \gets result + (middle - i) result  result + (middle  i)
  22. \EndIf
  23. \EndWhile
  24. \While{ i < m i d d l e i<middle i<middle}
  25. \State  B [ k + + ]   ←   A r r a y [ i + + ] B[k++] \gets Array[i++] B[k++]  Array[i++]
  26. \EndWhile
  27. \While{ j < r i g h t j<right j<right}
  28. \State  B [ k + + ]   ←   A r r a y [ j + + ] B[k++] \gets Array[j++] B[k++]  Array[j++]
  29. \EndWhile
  30. \For{ i   =   0   →   k − 1 i = 0 \to k-1 i = 0  k1}
  31. \State  A r r a y [ l e f t   +   i ]   ←   B [ i ] Array[left + i] \gets B[i] Array[left + i]  B[i]
  32. \EndFor
  33. \State \Return{ r e s u l t result result}
  34. \EndFunction
  35. \end{algorithmic}
  36. \end{algorithm}
  37. \end{document}

algorithm例子

前期准备

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \usepackage{algorithm}
  2. \usepackage{algpseudocode}
  3. \usepackage{amsmath}
  4. \renewcommand{\algorithmicrequire}{\textbf{Input:}}  % Use Input in the format of Algorithm
  5. \renewcommand{\algorithmicensure}{\textbf{Output:}} % Use Output in the format of Algorithm

example 1

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}[htb]
  2. \caption{ Framework of ensemble learning for our system.}
  3. \label{alg:Framwork}
  4. \begin{algorithmic}[1]
  5. \Require
  6. The set of positive samples for current batch,  P _ n P\_n P_n;
  7. The set of unlabelled samples for current batch,  U _ n U\_n U_n;
  8. Ensemble of classifiers on former batches,  E _ n − 1 E\_{n-1} E_n1;
  9. \Ensure
  10. Ensemble of classifiers on the current batch,  E _ n E\_n E_n;
  11. \State Extracting the set of reliable negative and/or positive samples  T _ n T\_n T_n from  U _ n U\_n U_n with help of  P _ n P\_n P_n;
  12. \label{code:fram:extract}
  13. \State Training ensemble of classifiers  E E E on  T _ n   ∪   P _ n T\_n \cup P\_n T_n  P_n, with help of data in former batches;
  14. \label{code:fram:trainbase}
  15. \State  E _ n = E _ n − 1 c u p   E E\_n=E\_{n-1}cup E E_n=E_n1cup E;
  16. \label{code:fram:add}
  17. \State Classifying samples in  U _ n − T _ n U\_n-T\_n U_nT_n by  E _ n E\_n E_n;
  18. \label{code:fram:classify}
  19. \State Deleting some weak classifiers in  E _ n E\_n E_n so as to keep the capacity of  E _ n E\_n E_n;
  20. \label{code:fram:select} \
  21. \Return  E _ n E\_n E_n;
  22. \end{algorithmic}
  23. \end{algorithm}

example 2

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}[h]
  2. \caption{An example for format For & While Loop in Algorithm}
  3. \begin{algorithmic}[1]
  4. \For{each  i ∈   [ 1 , 9 ] i\in [1,9] i [1,9]}
  5. \State initialize a tree  T _ i T\_{i} T_i with only a leaf (the root);
  6. \State  T = T ∪   T _ i ; T=T\cup T\_{i}; T=T T_i;
  7. \EndFor
  8. \ForAll { c c c such that  c ∈   R e c e n t M B a t c h ( E _ n − 1 ) c\in RecentMBatch(E\_{n-1}) c RecentMBatch(E_n1)}
  9. \label{code:TrainBase:getc}
  10. \State  T = T ∪   P o s S a m p l e ( c ) T=T\cup PosSample(c) T=T PosSample(c);
  11. \label{code:TrainBase:pos}
  12. \EndFor;
  13. \For{ i = 1 i=1 i=1 i < n i<n i<n i + + i++ i++ }
  14. \State  / / // // Your source here;
  15. \EndFor
  16. \For{ i = 1 i=1 i=1 to  n n n}
  17. \State  / / // // Your source here;
  18. \EndFor
  19. \State  / / // // Reusing recent base classifiers.
  20. \label{code:recentStart}
  21. \While { ( ∣ E _ n ∣   ≤   L _ 1   ) a n d (   D   ≠   ϕ ) (|E\_n| \leq L\_1 )and( D \neq \phi) (E_n∣  L_1 )and( D = ϕ)}
  22. \State Selecting the most recent classifier  c _ i c\_i c_i from  D D D;
  23. \State  D = D − c _ i D=D-c\_i D=Dc_i;
  24. \State  E _ n = E _ n + c _ i E\_n=E\_n+c\_i E_n=E_n+c_i;
  25. \EndWhile
  26. \label{code:recentEnd}
  27. \end{algorithmic}
  28. \end{algorithm}

example 3

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}[h]
  2. \caption{Conjugate Gradient Algorithm with Dynamic Step-Size Control}
  3. \label{alg::conjugateGradient}
  4. \begin{algorithmic}[1]
  5. \Require
  6. f ( x ) f(x) f(x): objective funtion;
  7. x _ 0 x\_0 x_0: initial solution;
  8. s s s: step size;
  9. \Ensure
  10. optimal KaTeX parse error: Undefined control sequence: \* at position 4: x^{\̲*̲}
  11. \State initial  g _ 0 = 0 g\_0=0 g_0=0 and  d _ 0 = 0 d\_0=0 d_0=0;
  12. \Repeat
  13. \State compute gradient directions  g _ k = ▽   f ( x _ k ) g\_k=\bigtriangledown f(x\_k) g_k= f(x_k);
  14. \State compute Polak-Ribiere parameter  β _ k = g _ k T ( g _ k − g _ k − 1 ) ∥   g _ k − 1   ∥ 2 \beta\_k=\frac{g\_k^{T}(g\_k-g\_{k-1})}{\parallel g\_{k-1} \parallel^{2}} β_k= g_k1 2g_kT(g_kg_k1);
  15. \State compute the conjugate directions  d _ k = − g _ k + β _ k   d _ k − 1 d\_k=-g\_k+\beta\_k d\_{k-1} d_k=g_k+β_k d_k1;
  16. \State compute the step size  α _ k = s / ∥   d _ k   ∥ _ 2 \alpha\_k=s/\parallel d\_k \parallel\_{2} α_k=s/ d_k _2;
  17. \Until{( f ( x _ k ) > f ( x _ k − 1 ) f(x\_k)>f(x\_{k-1}) f(x_k)>f(x_k1))}
  18. \end{algorithmic}
  19. \end{algorithm}

example 4

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \makeatletter
  2. \def\BState{\State\hskip-\ALG@thistlm}
  3. \makeatother
  4. \begin{algorithm}
  5. \caption{My algorithm}\label{euclid}
  6. \begin{algorithmic}[1]
  7. \Procedure{MyProcedure}{}
  8. \State  stringlen   ←  length of  string \textit{stringlen} \gets \text{length of }\textit{string} stringlen  length of string
  9. \State  i   ←   patlen i \gets \textit{patlen} i  patlen
  10. \BState \emph{top}:
  11. \If { i   >   stringlen i > \textit{stringlen} i > stringlen} \Return false
  12. \EndIf
  13. \State  j   ←   patlen j \gets \textit{patlen} j  patlen
  14. \BState \emph{loop}:
  15. \If { string ( i )   =   path ( j ) \textit{string}(i) = \textit{path}(j) string(i) = path(j)}
  16. \State  j   ←   j − 1 j \gets j-1 j  j1.
  17. \State  i   ←   i − 1 i \gets i-1 i  i1.
  18. \State \textbf{goto} \emph{loop}.
  19. \State \textbf{close};
  20. \EndIf
  21. \State  i   ←   i + max ⁡ ( delta _ 1 ( string ( i ) ) , delta _ 2 ( j ) ) i \gets i+\max(\textit{delta}\_1(\textit{string}(i)),\textit{delta}\_2(j)) i  i+max(delta_1(string(i)),delta_2(j)).
  22. \State \textbf{goto} \emph{top}.
  23. \EndProcedure
  24. \end{algorithmic}
  25. \end{algorithm}

algorithm2e例子

algorithm2e包可能会与其它包产生冲突,一个常见的错误提示是“Too many }'…”。为了解决这个问题,要在引入algorithm2e包之前加入下面的命令:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \makeatletter
  2. \newif\if@restonecol
  3. \makeatother
  4. \let\algorithm\relax
  5. \let\endalgorithm\relax

所以前期准备:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \makeatletter
  2. \newif\if@restonecol
  3. \makeatother
  4. \let\algorithm\relax
  5. \let\endalgorithm\relax
  6. \usepackage[linesnumbered,ruled,vlined]{algorithm2e}%[ruled,vlined]{
  7. \usepackage{algpseudocode}
  8. \usepackage{amsmath}
  9. \renewcommand{\algorithmicrequire}{\textbf{Input:}}  % Use Input in the format of Algorithm
  10. \renewcommand{\algorithmicensure}{\textbf{Output:}} % Use Output in the format of Algorithm

example 1

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}
  2. \caption{identify Row Context}
  3. \KwIn{ r _ i r\_i r_i B a c k g r d ( T _ i ) Backgrd(T\_i) Backgrd(T_i)= T _ 1 , T _ 2 , …   , T _ n {T\_1,T\_2,\ldots ,T\_n} T_1,T_2, ,T_n and similarity threshold  θ _ r \theta\_r θ_r}
  4. \KwOut{ c o n ( r _ i ) con(r\_i) con(r_i)}
  5. c o n ( r _ i ) =   Φ con(r\_i)= \Phi con(r_i)= Φ;
  6. \For{ j = 1 ; j   ≤   n ; j   ≠   i j=1;j \le n;j \ne i j=1;j  n;j = i}
  7. {
  8. float  m a x S i m = 0 maxSim=0 maxSim=0;
  9. r m a x S i m = n u l l r^{maxSim}=null rmaxSim=null;
  10. \While{not end of  T _ j T\_j T_j}
  11. {
  12. compute Jaro( r _ i , r _ m r\_i,r\_m r_i,r_m)( r _ m ∈   T _ j r\_m\in T\_j r_m T_j);
  13. \If{ ( J a r o ( r _ i , r _ m )   ≥   θ _ r ) ∧   ( J a r o ( r _ i , r _ m ) ≥   r m a x S i m ) (Jaro(r\_i,r\_m) \ge \theta\_r)\wedge (Jaro(r\_i,r\_m)\ge r^{maxSim}) (Jaro(r_i,r_m)  θ_r) (Jaro(r_i,r_m) rmaxSim)}
  14. {
  15. replace  r m a x S i m r^{maxSim} rmaxSim with  r _ m r\_m r_m;
  16. }
  17. }
  18. c o n ( r _ i ) = c o n ( r _ i ) ∪   r m a x S i m con(r\_i)=con(r\_i)\cup {r^{maxSim}} con(r_i)=con(r_i) rmaxSim;
  19. }
  20. return  c o n ( r _ i ) con(r\_i) con(r_i);
  21. \end{algorithm}

example 2

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}
  2. \caption{Service checkpoint image storage node and routing path selection}
  3. \LinesNumbered
  4. \KwIn{host server  P M _ s PM\_s PM_s that  S e r I m g _ k SerImg\_k SerImg_k is fetched from,  s u b n e t _ s subnet\_s subnet_s that  P M _ s PM\_s PM_s belongs to,  p o d _ s pod\_s pod_s that  P M _ s PM\_s PM_s belongs to}
  5. \KwOut{Service image storage server  s t o r a g e s e r v e r storageserver storageserver,and the image transfer path  p a t h path path}
  6. s t o r a g e s e r v e r storageserver storageserver = Storage node selection( P M _ s PM\_s PM_s S e r I m g _ k SerImg\_k SerImg_k, s u b n e t _ s subnet\_s subnet_s, p o d _ s pod\_s pod_s);
  7. \If{  s t o r a g e s e r v e r storageserver storageserver  ≠ \neq = null}
  8. {
  9. select a path from  s t o r a g e s e r v e r storageserver storageserver to  P M _ s PM\_s PM_s and assign the path to  p a t h path path;
  10. }
  11. \textbf{final} ;
  12. \textbf{return}  s t o r a g e s e r v e r storageserver storageserver and  p a t h path path;
  13. \end{algorithm}

example 3

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}
  2. \caption{Storage node selection}
  3. \LinesNumbered
  4. \KwIn{host server  P M _ s PM\_s PM_s that the checkpoint image  I m g Img Img is fetched from,  s u b n e t _ s subnet\_s subnet_s that  P M _ s PM\_s PM_s belongs to,  p o d _ s pod\_s pod_s that  P M _ s PM\_s PM_s belongs to}
  5. \KwOut{Image storage server  s t o r a g e s e r v e r storageserver storageserver}
  6. \For{ each host server  P M _ i PM\_i PM_i in the same subnet with  P M _ s PM\_s PM_s }
  7. {
  8. \If{  P M _ i PM\_i PM_i is not a service providing node or checkpoint image storage node of  S _ k S\_k S_k }
  9. {
  10. add  P M _ i PM\_i PM_i to  c a n d i d a t e L i s t candidateList candidateList ;
  11. }
  12. }
  13. sort  c a n d i d a t e L i s t candidateList candidateList by reliability desc;
  14. init  s t o r a g e s e r v e r storageserver storageserver ;
  15. \For{ each  P M _ k PM\_k PM_k in  c a n d i d a t e L i s t candidateList candidateList}
  16. {
  17. \If{  S P ( P M _ k ) SP(PM\_k) SP(PM_k)  ≥ \geq   E ( S P ) E(SP) E(SP) of  p o d _ i pod\_i pod_i and  B M _ k BM\_k BM_k  ≤ \le  size of  I m g Img Img }
  18. {
  19. assign  P M _ k PM\_k PM_k to  s t o r a g e s e r v e r storageserver storageserver;
  20. goto final;
  21. }
  22. }
  23. clear  c a n d i d a t e L i s t candidateList candidateList;
  24. add all other subnets in  p o d _ s pod\_s pod_s to  n e t L i s t netList netList;
  25. \For{ each subnet  s u b n e t _ j subnet\_j subnet_j in  n e t L i s t netList netList}
  26. {
  27. clear  c a n d i d a t e L i s t candidateList candidateList;
  28. \For {each  P M _ i PM\_i PM_i in  s u b n e t _ j subnet\_j subnet_j }
  29. {
  30. \If{  P M _ i PM\_i PM_i is not a service providing node or checkpoint image storage node of  S _ k S\_k S_k }
  31. {
  32. add  P M _ i PM\_i PM_i to  c a n d i d a t e L i s t candidateList candidateList;
  33. }
  34. }
  35. sort all host in  c a n d i d a t e L i s t candidateList candidateList by reliability desc;
  36. \For{ each  P M _ k PM\_k PM_k in  c a n d i d a t e L i s t candidateList candidateList}
  37. {
  38. \If{ S P ( P M _ k ) SP(PM\_k) SP(PM_k)  ≥ \geq   E ( S P ) E(SP) E(SP) of  p o d _ i pod\_i pod_i and  B M _ k BM\_k BM_k  ≤ \le  size of  I m g Img Img}
  39. {
  40. assign  P M _ k PM\_k PM_k to  s t o r a g e s e r v e r storageserver storageserver ;
  41. goto final;
  42. }
  43. }
  44. }
  45. \textbf{final} ;
  46. \textbf{return}  s t o r a g e s e r v e r storageserver storageserver;
  47. \end{algorithm}

example 4

代码:

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \begin{algorithm}
  2. \caption{Delta checkpoint image storage node and routing path selection}
  3. \LinesNumbered
  4. \KwIn{host server  P M _ s PM\_s PM_s that generates the delta checkpoint image  D I m g _ k t DImg\_{kt} DImg_kt s u b n e t _ s subnet\_s subnet_s that  P M _ s PM\_s PM_s belongs to,  p o d _ s pod\_s pod_s that  P M _ s PM\_s PM_s belongs to}
  5. \KwOut{Delta image storage server  s t o r a g e s e r v e r storageserver storageserver,and the image transfer path  P a t h Path Path}
  6. s t o r a g e s e r v e r storageserver storageserver = Storage node selection( P M _ s PM\_s PM_s D I m g _ k t DImg\_{kt} DImg_kt, s u b n e t _ s subnet\_s subnet_s, p o d _ s pod\_s pod_s);
  7. \If{  s t o r a g e s e r v e r storageserver storageserver  ≡ \equiv  null}
  8. {
  9. the delta checkpoint image is stored in the central storage server;
  10. goto final;
  11. }
  12. construct weighted topological graph  g r a p h _ s graph\_s graph_s of  p o d _ s pod\_s pod_s;
  13. calculate the shortest path from  s t o r a g e s e r v e r storageserver storageserver to  P M _ s PM\_s PM_s in  g r a p h _ s graph\_s graph_s by using the Dijkstra algorithm;
  14. \textbf{final} ;
  15. \textbf{return}  s t o r a g e s e r v e r storageserver storageserver and  p a t h path path;
  16. \end{algorithm}

example 5

[plain] 
view plain
 copy

外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传
外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传

  1. \documentclass[8pt,twocolumn]{ctexart}
  2. \usepackage{amssymb}
  3. \usepackage{bm}
  4. \usepackage{textcomp} %命令\textacutedbl的包,二阶导符号
  5. % Page length commands go here in the preamble
  6. \setlength{\oddsidemargin}{-0.25in} % Left margin of 1 in + 0 in = 1 in
  7. \setlength{\textwidth}{9in}   % 纸张宽度Right margin of 8.5 in - 1 in - 6.5 in = 1 in
  8. \setlength{\topmargin}{-.75in}  % Top margin of 2 in -0.75 in = 1 in
  9. \setlength{\textheight}{9.2in}  % Lower margin of 11 in - 9 in - 1 in = 1 in
  10. \setlength{\parindent}{0in}
  11. \makeatletter
  12. \newif\if@restonecol
  13. \makeatother
  14. \let\algorithm\relax
  15. \let\endalgorithm\relax
  16. \usepackage[linesnumbered,ruled,vlined]{algorithm2e}%[ruled,vlined]{
  17. \usepackage{algpseudocode}
  18. \renewcommand{\algorithmicrequire}{\textbf{Input:}}
  19. \renewcommand{\algorithmicensure}{\textbf{Output:}}
  20. \begin{document}
  21. \begin{algorithm}
  22. \caption{component matrices computing}
  23. \LinesNumbered
  24. \KwIn{ X ∈ R l _ 1 ×   l _ 2 × ⋯ ×   l _ N , ε , λ , δ , R \mathcal{X}\in\mathbb{R}^{l\_1\times l\_2\times\cdots\times l\_N},\varepsilon,\lambda,\delta,R XRl_1× l_2×× l_N,ε,λ,δ,R}
  25. \KwOut{ A ( j ) s A^{(j)}s A(j)s for  j = 1 j=1 j=1 to  N N N}
  26. \textbf{Initialize} all  A ( j ) s A^{(j)}s A(j)s //which can be seen as the  0 t h 0^{th} 0th round iterations;
  27. { l l l\hspace*{-1pt}\textacutedbl} = L =L =L //if we need to judge whether  ( 11 ) (11) (11) is true then { l l l\hspace*{-1pt}\textacutedbl} denotes  L ∣ _ t − 1 L|\_{t-1} L∣_t1;
  28. \For{ each  A _ i _ j r j ( 1 ≤   j ≤   N , 1 ≤   i _ j ≤   I _ j , 1 ≤   r ≤   R ) A\_{i\_jr}^{{j}}(1\le j\le N,1\le i\_j\le I\_j,1\le r\le R) A_i_jrj(1 j N,1 i_j I_j,1 r R) }
    \renewcommand{\algorithmicensure}{\textbf{Output:}}
  29. \begin{document}
  30. \begin{algorithm}
  31. \caption{component matrices computing}
  32. \LinesNumbered
  33. \KwIn{ X ∈ R l _ 1 ×   l _ 2 × ⋯ ×   l _ N , ε , λ , δ , R \mathcal{X}\in\mathbb{R}^{l\_1\times l\_2\times\cdots\times l\_N},\varepsilon,\lambda,\delta,R XRl_1× l_2×× l_N,ε,λ,δ,R}
  34. \KwOut{ A ( j ) s A^{(j)}s A(j)s for  j = 1 j=1 j=1 to  N N N}
  35. \textbf{Initialize} all  A ( j ) s A^{(j)}s A(j)s //which can be seen as the  0 t h 0^{th} 0th round iterations;
  36. { l l l\hspace*{-1pt}\textacutedbl} = L =L =L //if we need to judge whether  ( 11 ) (11) (11) is true then { l l l\hspace*{-1pt}\textacutedbl} denotes  L ∣ _ t − 1 L|\_{t-1} L∣_t1;
  37. \For{ each  A _ i _ j r j ( 1 ≤   j ≤   N , 1 ≤   i _ j ≤   I _ j , 1 ≤   r ≤   R ) A\_{i\_jr}^{{j}}(1\le j\le N,1\le i\_j\le I\_j,1\le r\le R) A_i_jrj(1 j N,1 i_j I_j,1 r R) }
Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐