# permutation

sam liya

Ranch Hand

Posts: 1240

sam liya

Ranch Hand

Posts: 1240

sam liya

Ranch Hand

Posts: 1240

posted 7 years ago

This looks like a Homework problem, so better try to do it yourself. Here are some hints about How to proceed.

1. S0.....Sn, is a string to permutations

2. Get all the possible permutations for S0, then combining with S1 up to combining Sn

eg

ABC

1. A -> A

2. AB -> AB , BA

3. ABC -> A BC, B A C, BC A

aruna sameera wrote:my problem is ,i need to

Write a program to display permutations & combination of one string

This looks like a Homework problem, so better try to do it yourself. Here are some hints about How to proceed.

1. S0.....Sn, is a string to permutations

2. Get all the possible permutations for S0, then combining with S1 up to combining Sn

eg

ABC

1. A -> A

2. AB -> AB , BA

3. ABC -> A BC, B A C, BC A