Skip to content

Conversation

@cprudhom
Copy link
Member

Consider this as a fresh start of #1066.

I will add some graphs when I found enough time to run benchmarks.
So, the idea here is as much about the feature itself and about not losing it on my computer 😄

Reverts #1068

@cprudhom cprudhom added this to the 4.11.0 milestone Oct 23, 2023
public DomOverWDegRef(V[] variables, long seed) {
super(variables, seed);
public DomOverWDegRef(V[] variables) {
this(variables, (v1, v2) -> 0, 32);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'aurais mis la lambda dans une constante pour que ce soit plus lisible / réutilisé

public final static Comparator<V> NO_TIE_BREAK = (v1, v2) -> 0;

Ou plutôt LEX_TIE_BREAK si par conséquence on a un résultat ordonné en lexico (j'ai eu un doute).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je vois que le 32 est utilisé à différents endroits, je l'aurais aussi mis en variable static (pas final) DEFAULT_FLUSH_RATE

Pour le suivi des modifications, si demain on passe à 50, c'est plus simple d'associer cela à un nom...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Harmoniser avec SearchParams

public DomOverWDeg(V[] variables, long seed) {
this(variables, seed, Integer.MAX_VALUE);
public DomOverWDeg(V[] variables) {
this(variables, (v1, v2)->0, 32);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idem

switch (tiebreaker) {
default:
case LEX:
tie = (v1, v2) -> 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too

@cprudhom cprudhom modified the milestones: 4.10.14, 4.11.0 Oct 27, 2023
@cprudhom cprudhom modified the milestones: 4.10.15, unknown Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants