Do 𝑖 1 = 1 to 𝑘 1 ;
    Do 𝑖 2 = 1 to 𝑘 2 ;
      Do 𝑖 3 = 1 to 𝑘 3 ;
    𝐴 1 ( 𝑖 1 , 𝐼 2 , 𝑖 3 , . . . , 𝑖 𝑛 )     = 𝐴 1 ( 𝑖 1 , 𝐼 2 , 𝑖 3 1 , . . . , 𝑖 𝑛 ) ;//broadcast in 𝑖 2 direction
                                            (1a)
    𝐴 2 ( 𝑖 1 , 𝑖 2 , 𝐼 3 , . . . , 𝑖 𝑛 )     = 𝐴 2 ( 𝑖 1 1 , 𝑖 2 , 𝐼 3 , . . . , 𝑖 𝑛 ) ;//broadcast in 𝑖 1 direction
    𝐴 3 ( 𝐼 1 , 𝑖 2 , 𝑖 3 , . . . , 𝑖 𝑛 ) = 𝐴 3 ( 𝐼 1 , 𝑖 2 , 𝑖 3 1 , . . . , 𝑖 𝑛 ) broadcast in 𝑖 3 direction
    𝐴 𝑛 1 ( 𝑖 1 , 𝑖 2 , 𝑖 3 , 𝐼 4 , . . . , 𝑖 𝑛 ) = 𝐴 𝑛 1 ( 𝑖 1 , 𝑖 2 , 𝑖 3 1 , 𝐼 4 , . . . , 𝑖 𝑛 ) ;
         𝐶 [ 𝐈 ] = 𝑓 2 (C[ 𝐈 𝐝 ], 𝑓 1 ( 𝐴 1 𝐴 2 [ 𝐈 ] ))          (2)
        or
         𝐶 [ 𝑖 1 , 𝑖 2 , 𝑖 3 , . . . , 𝑖 𝑛 ] = 𝐶 [ 𝐼 1 , 𝐼 2 , 𝑖 3 , . . . , 𝑖 𝑛 1 ]+ 𝐴 1 ( 𝑖 1 , 𝐼 2 , 𝑖 3 , . . . , 𝑖 𝑛 ) × 𝐴 2 ( 𝐼 1 , 𝑖 2 , 𝑖 3 , . . . , 𝑖 𝑛 )
                                           (3)
        End Do 𝑖 𝑛 ; .;
        End Do   𝑖 2 ;
    End Do   𝑖 1 ;
Listing 1: 𝑛 -D multidimensional algorithm in URE form.