getting all possible ordering of vector


hello
I need to find all possible order of a set of vector I mean if I have the following:
0
1
2
all posssible would be:
0 1 2, 1 0 2, 2 1 0, 1 2 0, 2 0 1, 0 2 1

I have tried to use the swap but I didn't get all possible set
I have used the following code:
Java Code: for( int x=0;x
Posted On: Thursday 25th of October 2012 01:51:43 AM Total Views:  73
View Complete with Replies

RELATED TOPICS OF Java PROGRAMMING LANGUAGE