Sign In
New User? Register
Statisticians_group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
You can search the group for older messages.

Messages

  Messages Help
Advanced
I need a help for All possible permutation   Message List  
Reply | Forward Message #2180 of 4079 |
Re: [Statisticians_group] I need a help for All possible permutation

I think you can do in the following way:
 
do i=1 to 5;
    put i;
    do j=1 to 5;
        if j=i then continue;
               else put j;
           do k=1 to 5;
               if k in (i j) then continue;
                  else put k;
                 do l=1 to 5;
                     if l in (i j k) then continue;
                        else put l;
                       do m=1 to 5;
                            if l in (i j k l) then continue;
                                  else put l;
                       end;
                 end;
           end;
    end;
end;
       
Hope from the above program you will get some idea.

kamalakar jadhav <kamlakar.jadhav@...> wrote:
Dear all
 
I need a help for writting a program for all possible combination for permutation
 
e.g. if n=5 then  then  5! combination of no 1 to 5
 
how to genetate this all possible combination ........
 
 
Thanks in  advance .
 
 
Thanks & Ragards,
 
Kamalakar
 
 
 


Want to look great? Get expert opinion on beauty and skin care. Ask the expert!



--------------

Madan Gopal Kundu
Biostatistician I, i3 Statprobe
Gurgaon, Haryana
India
mobile: 91-9868788406
 
Click
here to join Statisticians_group
Click to join Statisticians_group


Download prohibited? No problem. CHAT from any browser, without download.

Fri Jun 22, 2007 10:06 am

madan4331
Online Online
Send Email Send Email

Forward
Message #2180 of 4079 |
Expand Messages Author Sort by Date

Dear all I need a help for writting a program for all possible combination for permutation e.g. if n=5 then then 5! combination of no 1 to 5 how to genetate...
kamalakar jadhav
ksj_stat
Offline Send Email
Jun 22, 2007
7:39 am

I think you can do in the following way: do i=1 to 5; put i; do j=1 to 5; if j=i then continue; else put j; do k=1 to 5; if k in (i j) then continue; else put...
Madan Kundu
madan4331
Online Send Email
Jun 22, 2007
10:07 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help