This file contains hidden or 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 <iostream> | |
#include <algorithm> | |
#include <chrono> | |
#include <omp.h> | |
#include <pthread.h> | |
#define N 50000000 | |
using std::swap; | |
using std::cout; |
This file contains hidden or 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
package com.github.coderodde.util; | |
import java.util.Arrays; | |
import java.util.Random; | |
public final class Quicksort { | |
private static final int MIN_PARALLEL_RANGE = 2 << 16; | |
private static final class SortingThread extends Thread { |
This file contains hidden or 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
package fi.helsinki.rodionef.msc.research; | |
public class FignerArrangementAccessWork { | |
public static void main(String[] args) { | |
for (int listSize = 10; listSize <= 100; listSize++) { | |
double bestAccessWork = Double.POSITIVE_INFINITY; | |
int bestFingerIndex = 0; | |
This file contains hidden or 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.Arrays; | |
import java.util.HashSet; | |
import java.util.Random; | |
import java.util.Set; | |
public class FingerOptimization { | |
public static void main(String[] args) { | |
boolean flagDebugOutput = false; |
This file contains hidden or 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
package com.yourcompany.fun.middlefingerresearch; | |
public class MiddleFingerResearch { | |
public static void main(String[] args) { | |
final int n = 4; | |
for (int a = 10; a <= 20; a++) { | |
for (int b = 30; b <= 40; b++) { |
This file contains hidden or 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
package com.github.coderodde.game.connect4.benchmark; | |
import com.github.coderodde.game.connect4.ConnectFourBoard; | |
import com.github.coderodde.game.connect4.ConnectFourHeuristicFunction; | |
import com.github.coderodde.game.zerosum.impl.AlphaBetaPruningSearchEngine; | |
import com.github.coderodde.game.zerosum.impl.ConnectFourAlphaBetaPruningSearchEngine; | |
public class ConnectFourSearchEngineComparison { | |
private static final int DEPTH = 9; |
This file contains hidden or 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
package fi.helsinki.cs.rodionef.msc; | |
import com.github.coderodde.util.IndexedLinkedList; | |
import java.util.Map; | |
import java.util.TreeMap; | |
import java.util.concurrent.ConcurrentSkipListMap; | |
public class IndexListVsSkipListComparison { | |
private static long durationTm = 0L; |
This file contains hidden or 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
package fi.helsinki.cs.rodionef; | |
import com.github.coderodde.util.SkipListMap; | |
import java.util.Comparator; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.TreeMap; | |
import java.util.concurrent.ConcurrentSkipListMap; |
This file contains hidden or 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
2024-5-13 (ma): | |
1. 17 päivää sitten luvattu käynti kaupungilla kariutui tunti/pari ennen sovittua lähtöä. Syy: saatava hoitaja oli sairastunut. Henkilökunta voivotteli ja pesi kätensä: sijaista ei löytynyt edes nk. poolista. | |
2024-5-15 (ke): | |
1. Hoitaja Ari kutsui tarkoituksella minua nimellä, joka ei ole minun. | |
2024-5-19 (su): | |
1. Kysyin hoitajaa Timoa antamaan minulle puhelimeni ja kannettavani latauskaapista, johon hän vastasi, että "kestää hetken". Hänyellä oli siviilipuhelin kädessään, ja hän kirjoitti noin 4 minuuttia sillä ennen kuin suostui avaamaan latauskaapin. | |
2024, kesäkuun loppu: |
This file contains hidden or 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
type Matrix = list[list[int]] | |
""" | |
This class is responsible for generating snail matrices of dimensions n * n. | |
""" | |
class SnailMatrixGenerator: | |
""" | |
Constructs this generator. | |
""" |