Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

mdp_permutations.h File Reference

Go to the source code of this file.

Functions

long mdp_permutations (int n)
void mdp_permutation_sort (int map[], int k)
int mdp_permutation (int n, int k, int i)


Detailed Description

Version:
3-1-2005
Author:
Massimo Di Pierro <mdipierro@cs.depaul.edu>
Functions to compute permutations

This file is copyrighted by MetaCryption LLC Read attached license in file mdp_license.pdf This file cannot be distributed without file mdp_license.pdf


Function Documentation

int mdp_permutation int  n,
int  k,
int  i
 

Returns j-th element of the k-th permutations of n numbers For example if n=4 [0123] k=0 [0132] k=1 ... [3210] k=23 Returns -1 on error when (i>n || k>n_permutations(n))


Generated on Sun Feb 27 15:12:23 2005 by  doxygen 1.4.1