This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <functional> | |
#include <algorithm> | |
#include <iostream> | |
#include <sstream> | |
#include <complex> | |
#include <numeric> | |
#include <cstring> | |
#include <vector> | |
#include <string> | |
#include <cstdio> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.TimeUnit; | |
import org.openjdk.jmh.annotations.*; | |
@State(Scope.Benchmark) | |
@BenchmarkMode(Mode.AverageTime) | |
@OutputTimeUnit(TimeUnit.NANOSECONDS) | |
@Timeout(time = 10) | |
@Warmup(time = 1, iterations = 10) | |
@Measurement(time = 1, iterations = 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Numerics; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Globalization; | |
public class MergeLong { | |
/** A copy of the mergesort for "long" **/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Config(n: Int, k: Int, onePlusOne: Boolean, init: Int, rlAlgorithm: Option[Agent[Int, Int]]) | |
extends OptConfiguration[BitSet, IndexedSeq[Int]] | |
{ | |
require(n % k == 0) | |
private implicit val multiple: MultipleCriteria[IndexedSeq[Int]] = MultipleCriteria.fromIndexedSeqWithElementOrdering("XdivK", "OneMax") | |
private implicit val comparator: EARLCodomainComparator[IndexedSeq[Int]] = EARLCodomainComparator().fromMultipleCriteria(init) | |
private implicit val evaluator: Evaluator[BitSet, IndexedSeq[Int]] = Evaluator().usingFunction { v: BitSet => | |
val oneMax = v.size | |
val xDivK = oneMax / k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Config(n: Int, k: Int, onePlusOne: Boolean, init: Int, rlAlgorithm: Option[Agent[Int, Int]]) | |
extends OptConfiguration[BitSet, IndexedSeq[Int]] | |
{ | |
require(n % k == 0) | |
private implicit val multiple = MultipleCriteria.fromIndexedSeqWithElementOrdering("XdivK", "OneMax") | |
private implicit val comparator = EARLCodomainComparator().fromMultipleCriteria(init) | |
private implicit val evaluator = Evaluator().usingFunction { v: BitSet => | |
val oneMax = v.size | |
val xDivK = oneMax / k |