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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2017-09-02T06:06:26.4127851</Date> | |
<Author>DESKTOP-IHM8F2V\Kevin</Author> | |
<URI>\Chocolatey update</URI> | |
</RegistrationInfo> | |
<Triggers> | |
<CalendarTrigger> | |
<Repetition> |
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.lang.reflect.Array; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.stream.Collectors; | |
public class RadixSort { | |
private int key(Integer element, int digit) throws IllegalArgumentException { | |
if (element < 0) throw new IllegalArgumentException("element was negative"); |
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.Collections.Generic; | |
using System.Linq; | |
using System.Diagnostics; | |
using SharpDX.DirectWrite; | |
using Turbo.Plugins.Default; | |
namespace Turbo.Plugins.Naalunth | |
{ | |
public class EliteTrackerPlugin : BasePlugin, IInGameWorldPainter, IMonsterKilledHandler, IInGameTopPainter, ICustomizer, INewAreaHandler |
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
/* | |
Current implemenetation (v4): | |
Based on version 3: | |
- combines the equal calculations between parameters into a single calculation and therefore has to calculate a lot less | |
- Computational time: O(k*N) (loop -> ( std::partial_sum, loop ) ) ( + sort O(k*log(k)), k is usually a lot smaller than N so that doesn't matter) | |
- Memory: O(N+k) (a lot of data can be ignored while going on) | |
- boils down to adding a lot of numbers repeatedly together | |
- code becomes totally unclear and unintuitive, but works extremely quickly | |
- slightly optimized for sorted input (see constructor) | |
- two container optimization removed, it wasn't doing anything anymore, other than adding complexity |
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
#pragma once | |
#include <map> | |
/* | |
This is an implementation of the disjoint-set data structure according to https://en.wikipedia.org/wiki/Disjoint-set_data_structure. | |
T must be equal-comparable and copy-constructible. | |
*/ | |
template<typename T> | |
class disjoint_set |