I need a function that would take a number from the first set and convert it to the corresponding pair in the second.
e.g. n=4 then the first set would be {1,...6} and the second: {{1,2},{1,3},{1,4},{2,3},{2,4},{3,4}}
Is there even an algorithm for that?
{1,2..., n*(n-1)/2 } -> {all the pairs in the {1,2...,n}}
Started by Bat0u89, Dec 13 2010 06:54 AM
1 reply to this topic


Sign In
Create Account


Back to top









