Autor Beitrag
violinenspieler1000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Fr 26.09.08 15:19 
Hallo,

ich suche eine möglichst kurze Delphi-Umsetzung eines Algorithmuses, der bei einer gegebene Zahl X alle Zahlen miteinander in allen Möglichkeiten kombiniert und das Ergebnis in ein 2 dimensionales Array speichert:

Bsp:

x=3:

1-2-3
1-3-2
2-1-3
2-3-1
3-1-2
3-2-1


So und das soll jetzt möglichst einfach in eine Delphi-Prozedur umgesetzt werden (für variable X).
Irgendwelche Vorschläge?

Danke,
Thomas
Horst_H
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1652
Erhaltene Danke: 243

WIN10,PuppyLinux
FreePascal,Lazarus
BeitragVerfasst: Fr 26.09.08 15:29 
Hallo,

suche mal nach permutation

Gruß Horst
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Fr 26.09.08 17:37