Because of a lapse in government funding, the information on this website may not be up to date, transactions submitted via the website may not be processed, and the agency may not be able to respond to inquiries until appropriations are enacted. The NIH Clinical Center (the research hospital of NIH) is open. For more details about its operating status, please visit cc.nih.gov. Updates regarding government operating status and resumption of normal operations can be found at OPM.gov.
SPT - Permutation Design
I. Introduction
This section describes the method to find all permutations with synonyms from pattern permutation results from the previous section.
II. Algorithm
III. Java Classes & Method
public Vector<String> GetPermutation(Vector<Vector<String>> inList)
IV. Examples
Pattern 1 |
---|
word|synonyms |
who| |
let| |
dog|canine|k9|bull dog| |
and| |
cat|feline| |
out| |
Pattern 2 |
---|
word|synonyms |
who| |
let| |
dog and cat|pets|puppy and kitty| |
out| |
Pattern-Step | current element | permutation |
---|---|---|
1-1 | out| |
|
1-2 | cat|feline| |
|
1-3 | and| |
|
1-4 | dog|canine|k9|bull dog| |
|
1-5 | let| |
|
1-6 | who| |
|
Pattern-Step | current element | permutation |
---|---|---|
2-1 | out| |
|
2-2 | dog and cat|pets|puppy and kitty| |
|
2-3 | let| |
|
2-4 | who| |
|