Skip to content

Commit

Permalink
Merge pull request #886 from gc-garcol/impove/char-store
Browse files Browse the repository at this point in the history
Improve CharStore sort
  • Loading branch information
jenetics committed Sep 27, 2023
2 parents c8851ae + 7d32df6 commit 13b9774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -144,11 +144,12 @@ The previous image shows the GUI after evolving the default image for about 4,00

<details>
<summary>
Julien Amblard, Robert Filman, Gabriel Kopito. <a href="https://doi.org/10.1145/3583133.3596369">GPStar4: A flexible framework for experimenting with genetic programming.</a> <em> OGECCO '23 Companion: Proceedings of the Companion Conference on Genetic and Evolutionary Computation. </em> July 2023.
Syed Juned Ali, Jan Michael Laranjo, Dominik Bork. <a href="https://model-engineering.info/publications/papers/EDOC23-GGMF-web.pdf">A Generic and Customizable Genetic Algorithms-based Conceptual Model Modularization Framework.</a> <em> 27th International EDOC Conference (EDOC 2023) - Enterprise Design, Operations and Computing.</em> Sep. 2023.

...
</summary>

1) Syed Juned Ali, Jan Michael Laranjo, Dominik Bork. <a href="https://model-engineering.info/publications/papers/EDOC23-GGMF-web.pdf">A Generic and Customizable Genetic Algorithms-based Conceptual Model Modularization Framework.</a> <em> 27th International EDOC Conference (EDOC 2023) - Enterprise Design, Operations and Computing.</em> Sep. 2023.
1) Julien Amblard, Robert Filman, Gabriel Kopito. <a href="https://doi.org/10.1145/3583133.3596369">GPStar4: A flexible framework for experimenting with genetic programming.</a> <em> OGECCO '23 Companion: Proceedings of the Companion Conference on Genetic and Evolutionary Computation. </em> July 2023.
1) Garmendia, A., Bork, D., Eisenberg, M., Ferreira, T., Kessentini, M., Wimmer, M. <a href="https://doi.org/10.1007/978-981-19-9948-2_4">Leveraging Artificial Intelligence for Model-based Software Analysis and Design.</a> <em> Optimising the Software Development Process with Artificial Intelligence. Natural Computing Series. Springer, Singapore. </em> July 2023.
1) Sikora, M., Smołka, M. <a href="https://doi.org/10.1007/978-3-031-35995-8_16">An Application of Evolutionary Algorithms and Machine Learning in Four-Part Harmonization.</a> <em> Computational Science – ICCS 2023. ICCS 2023. Lecture Notes in Computer Science, vol 14073. Springer </em> June 2023.
Expand Down
Expand Up @@ -67,13 +67,13 @@ public void sort(
if (comparator == null) {
Arrays.sort(array, from, until);
} else {
final Character[] chars = new Character[array.length];
for (int i = 0; i < array.length; ++i) {
chars[i] = array[i];
final Character[] chars = new Character[until - from];
for (int i = from; i < until; ++i) {
chars[i - from] = array[i];
}
Arrays.sort(chars, from, until, comparator);
for (int i = 0; i < array.length; ++i) {
array[i] = chars[i];
Arrays.sort(chars, comparator);
for (int i = from; i < until; ++i) {
array[i] = chars[i - from];
}
}
}
Expand Down

0 comments on commit 13b9774

Please sign in to comment.