Debian Codegraph @

docs/manual/Permutation__Previous.html

raw symbols SCIP
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>Permutation: Previous</title>
3 <style>
4 td { padding-left: 5pt; padding-right: 5pt; }
5 th { padding-left: 5pt; padding-right: 5pt; }
6 code { white-space: pre-wrap; }
7 dd { white-space: pre-wrap; }
8 </style>
9 </head><body bgcolor="#FFFFFF">
10
11 <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b>
12 Permutation: Previous
13 </b></font></table></table>
14 <p>Get the previous <a href="Permutation.html">permutation</a> in <a href="lexicographic_permutation_order.html">lexicographic permutation order</a>. The previous permutation is obtained from the selected permutation by swapping values <i>at only two positions</i>. If no further permutation is available, i.e. the current permutation is at the lexicographic start position (1, 2, 3, ..., n-1, n), the current permutation will not change anymore. </p>
15 <p>The <b>Previous</b> operation follows the opposite order of <a href="Permutation__Next.html">Permutation: Next</a>.</p>
16 <hr>
17 <address>
18 <p>© djmw 20140131</p>
19 </address>
20 </body>
21 </html>