How to write this algorithm pseudocode in latex:
Algorithm 1 Channel Assignment using Random Ordering (RO)
K←Set of channels
C(v)←0,∀v∈V
root← Root Selection(V)
C(root)← Channel Selection(root,K)
Permutate(V\\{root})
while (V!=Empty)
v← Removehead(V)
C(v)←Channel Selection (v,K)
V←V−1
end while
Return(C)
Best Answer
Here is an implementation of an algorithm in pseudocode using
algorithm2e
: