Skip to content

avalonlll/Combinatorial-Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Combinatorial-Algorithms

Some combinatorial algorithms for my thesis
About White-Williamson algorithm:
Given a set (for example: {2, 3, 7, 8}), let the set be a, we do the following process:
We append as first term of the set the number 0 (for example: {0, 2, 3, 7, 8})
Then, we do the following: we calculate the expression a[i]-2i for every i=0, 1, ..., length of a
From all the calculation, we keep the i' such that the expression a[i]-2
i is minimum
After that, we append to the set a the number 1+a[i']

About Green-Kleitman/Leeb algorithm:
We take as input the whole set (for example {1, 2, 3, 4, 5, 6, 7, 8, 9}) and our initial set (for example {2, 3, 4, 7, 8})
We represent our initial set with parentheses. We put ")" if the element exists in the initial set, "(" otherwise.
for example: {2, 3, 4, 7, 8} -> {(,),),),(,(,),),(}
For all the closed parentheses, we keep the right elements (here: {2, 7, 8}). These are the basic elements.
Also, we keep the unpaired right elements of our set (here: {3, 4})
And finally, we keep the unpaired left elements of our set (here: {9})
If we append to the basic elements, the unpaired right elements and the unpaired left parentheses we have the symmetric chain decomposition.

About

Some combinatorial algorithms for my thesis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages