/* permutation generation */ #include #define N 5 int val[N], id; writeperm() { int i; for(i=0; i